Andreas2003 Posted December 20, 2007 Share Posted December 20, 2007 For all out there, who are still looking for the answer: In the file ot_cod_fee.php, you have to change the following: Comment these two lines out : $order->info['tax_groups']["{$tax}"] += tep_calculate_tax($cod_cost, $tax); $order->info['total'] += $cod_cost + tep_calculate_tax($cod_cost, $tax); Below paste the following in: // BOF correct calculation of tax with COD $tax_description = tep_get_tax_description(MODULE_ORDER_TOTAL_COD_TAX_CLASS, $order->delivery['country']['id'],$order->delivery['zone_id']); $order->info['tax_groups']["$tax_description"] += tep_calculate_tax($cod_cost, $tax); $order->info['total'] += $cod_cost + tep_calculate_tax($cod_cost, $tax); // EOF correct calculation of tax with COD If (in the invoice order / total in the end of invoice) the COD-fee is before the tax, the tax will be calculated with the tax for the COD-fee. Regards Andreas Quote Link to comment Share on other sites More sharing options...
bombix Posted November 3, 2010 Share Posted November 3, 2010 Hi, Thanks for you great addon. Im having a problem. When i click checkout i get this error: Fatal error: Call to undefined function: quote() in /home/solarmod/public_html/includes/classes/shipping.php on line 81 What im i doing wrong? Thanks in advance Fernando Quote Link to comment Share on other sites More sharing options...
bombix Posted November 3, 2010 Share Posted November 3, 2010 solve... place it in the wrong place :( Hi, Thanks for you great addon. Im having a problem. When i click checkout i get this error: Fatal error: Call to undefined function: quote() in /home/solarmod/public_html/includes/classes/shipping.php on line 81 What im i doing wrong? Thanks in advance Fernando 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.