Guest Posted June 2, 2008 Share Posted June 2, 2008 This calculation has been wrong since installation! Can someone look at this code and tell me if it is taxing the shipping? (i don't know php) My only problem is that the shipping is being taxed...and that incorrectly high tax (although the correct tax displays on my checkout confirmation form) is being added to the subtotal and shipping. this is giving me an incorrect 'total' that incorrectly includes tax on shipping. I am php stupid but familiar with the oscommerce directory setup...so be gentle with your replies! = ) this is from includes/modules/order total/ot_shipping.php if (tep_not_null($order->info['shipping_method'])) { if ($GLOBALS[$module]->tax_class > 0) { $shipping_tax = tep_get_tax_rate($GLOBALS[$module]->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']); $shipping_tax_description = tep_get_tax_description($GLOBALS[$module]->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']); $order->info['tax'] += tep_calculate_tax($order->info['shipping_cost'], $shipping_tax); $order->info['tax_groups']["$shipping_tax_description"] += tep_calculate_tax($order->info['shipping_cost'], $shipping_tax); $order->info['total'] += tep_calculate_tax($order->info['shipping_cost'], $shipping_tax); if (DISPLAY_PRICE_WITH_TAX == 'true') $order->info['shipping_cost'] += tep_calculate_tax($order->info['shipping_cost'], $shipping_tax); } Link to comment Share on other sites More sharing options...
Lady Sunshine Posted June 2, 2008 Share Posted June 2, 2008 Hi, the code is right, you have in the administration taxes properly defined? regards Diana Link to comment Share on other sites More sharing options...
Guest Posted June 2, 2008 Share Posted June 2, 2008 Hi, the code is right, you have in the administration taxes properly defined? regards Diana I believe so... Can you tell me why anyone would ever tax shipping? I don't think that is common practice to tax shipping, or is it? Steve Link to comment Share on other sites More sharing options...
Guest Posted June 2, 2008 Share Posted June 2, 2008 Hi, the code is right, you have in the administration taxes properly defined? regards Diana I believe so... Can you tell me why anyone would ever tax shipping? I don't think that is common practice to tax shipping, or is it? Steve Link to comment Share on other sites More sharing options...
markg-uk Posted June 3, 2008 Share Posted June 3, 2008 You have to in the UK if the goods are VAT rated, but you don't say where you are ... Link to comment Share on other sites More sharing options...
Guest Posted June 3, 2008 Share Posted June 3, 2008 You have to in the UK if the goods are VAT rated, but you don't say where you are ... My apologies! I am in the United States, CA. (BUT) I just learned that you do calculate tax on shipping here too, if you are lumping shipping with a delivery/handling fee. Thank you for your attention to my issue! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.