Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

where is the total order cost variable?


oscommerceuser5

Recommended Posts

Posted

Hi,

 

I am working on a heavily modified oscommerce. The tax feature is not working, and instead of spending 3 weeks debugging why its not I thought i would just add a certain percent to the order based on the state of the buyer.

 

Only one big question I have spent like 5 hours and cannot find the variable where I can have add the value to / percent of the order + to the total, a makeshift way of doing a tax but this needs to be done asap.

 

 

Any help here would be great, thanks again

Posted

All of the tax functions can be found in 'includes/functions/general.php'. Just search for 'tax' and you should jump straight to the first of 4 functions (tep_get_tax_rate, tep_get_tax_description, tep_add_tax and tep_calculate_tax).

 

You may want to compare your tax functions with the tax functions from an unmodified OSC install to see if there are any differences. You may also want to compare the file 'includes/classes/currencies.php' to see if there are any differences there as well.

 

Even with a heavily modified OSC install these functions and that class file never really need to be changed.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...