MikeMike Posted December 16, 2003 Share Posted December 16, 2003 I have installed the low order fee module but I need to let the customer order my printed catalog without the low order fee applies. I changed the code in loworderfee.php to: if ( ( ($order->info['total'] - $order->info['shipping_cost']) !== 3.75) && ( ($order->info['total'] - $order->info['shipping_cost']) <= MODULE_ORDER_TOTAL_LOWORDERFEE_ORDER_UNDER) ) { $tax = tep_get_tax_rate(MODULE_ORDER_TOTAL_LOWORDERFEE_TAX_CLASS); This works great and will not apply the low order fee if the order total is $3.75 (the catalog price). However, if anyone within my state order a catalog, the total includes sales tax and the total is now 3.97 and the low order fee will be added. How can I change or add to the code above, so I can get around this? Regards Mike Quote Link to comment Share on other sites More sharing options...
241 Posted December 16, 2003 Share Posted December 16, 2003 One method would be to use a minus option in the product attribute, however this may be to crude a method for you Quote No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
MikeMike Posted December 16, 2003 Author Share Posted December 16, 2003 I was thinking something like if ( ( ($order->info['total'] - $order->info['shipping_cost'] - $order-info['salestaxstuffhere']) !== 3.75) && ( ($order ......... But I am not sure what the salestaxxstuffhere should be replaced with and if it would work at all Quote Link to comment Share on other sites More sharing options...
MikeMike Posted December 16, 2003 Author Share Posted December 16, 2003 if ( ( ($order->info['total'] - $order->info['shipping_cost'] - $order->info['tax']) !== 3.75) && ( ($order->info['total'] - $order->info['shipping_cost']) <= MODULE_ORDER_TOTAL_LOWORDERFEE_ORDER_UNDER) ) Dadaaaa.... this one worked :P Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.