Jump to content


Corporate Sponsors


Latest News: (loading..)

Customer_Discount v1.3 Taxes incorrect


  • You cannot reply to this topic
No replies to this topic

#1 pcsadmin

  • Community Member
  • 1 posts
  • Real Name:unknown
  • Gender:Male

Posted 26 May 2010, 19:41

I just installed the Customer_Discount contribution and noticed that the tax calculation is still being performed on the subtotal prior to the discount instead of after as needed. I don't know that this is a contribution issue or that that is just what brought it to light.

I have search the forum, and tried to follow the code, but I have been unable to determine where the actual tax calculation takes place. There is a tep_calculate_tax function in general.php but I can not find from where it is called.

The subtotal is updated properly, and the display order is right. It seems the ot_tax.php is using $order->info['total'] instead of $order->info['subtotal']

Any and all help is appreciated