
Originally Posted by
lolwaut
I'm about to pull my hair out! I just installed this mod and cannot get it to calculate properly. I have attached a screenshot of my checkout screen with the debug option enables. The screenshot explains it all... the local tax is not being applied to shipping (yes, the tax rate option "Apply this tax to shipping charges?" is set to True) AND my total is completely wrong. I have no idea where its getting that number from.
ANY HELP is appreciated. I really need this mod to work.
Thanks!
An update to my situation.... I finally got the order total to display correctly. it is actually adding in the shipping tax now and including it in the order total but it is still not reflected on the local tax rate line in checkout... that line only displays the tax of the subtotal.
How I fixed the order total:
i edited includes/modules/order_total/ot_local_sales_taxes.php
i edited this code:
Code:
if($apply_tax_to_shipping){
$shipping_tax = zen_calculate_tax($order->info['shipping_cost'], $taxrec['tax']);
$order->info['shipping_tax'] += $shipping_tax;
and removed the "+" sign from the last line so it reads as:
Code:
$order->info['shipping_tax'] = $shipping_tax;
i hope that + sign wasnt important... all i know is that removing it made my order total correct.
unfortunately, i still cant figure out how to get the shipping tax to be reflected in the local tax rate.
Bookmarks