We sell several items that are offered with many combinations of options. We can also sell any combination of any items we offer, in 22 different colors. However, setting up and cleaning down the spray equipment (after each color), forces us to charge a one time 'SETUP FEE' for each unique color ordered.
Example1:
(1) x model AAA (red) = $1.00 + $.50 (setup)
(5) x model DDD (red)= $2.00
___________________________________________
Total=$11.50
Example2:
(1) x model AAA (red) = $1.00 + $.50 (red setup)
(5) x model DDD (red)= $2.00
(2) x model AAA (blue) = $1.00 + $.50 (blue setup)
(1) x model AAA (green)= $1.00 + $.50 (green setup)
___________________________________________
Total=$15.50
Because the setup fee need only apply once (after total number of unique colors have been calculated), it seems logical to be a ot_loworderrfee hack. The problem (as you were about to point out) is ot_loworderrfee calls from
if ( ($pass == true) && ( ($order->info['total'] - $order->info['shipping_cost']) < MODULE_ORDER_TOTAL_LOWORDERFEE_ORDER_UNDER) ) {
Assuming our colors are an option value, maybe we need
if ( ($pass == true) && ( ($order->info['options_values_id'] == 107) ) {
Unless, (as you were pointing out again) we are calling from the cart, maybe?
if ( ($pass == true) && ($this->contents['products_options_value_id'] == '107') ){
Am I re-inventing the wheel, maybe ot_loworderrfee is not the way to go. I looked at the CC (build custom computer mod) and it seems over kill. Any direction would be extremely appreciated.














