Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

need $order->delivery['state'] in function


mhunter

Recommended Posts

hi all

 

I am needing 4 variables in the get_tax_rate function in order to call my sales tax software:

 

subtotal

city

state

zip

 

To get the subtotal, I made a global var in the process() function in

/catalog/includes/modules/order_total/ot_subtotal.php and assigned $order->info['subtotal'] to it, and it is now available to me in the tax function.

 

I am having more trouble with

$order['postcode']

$order['state']

$order['city']

as they seem to be handled differently.

 

I see where they are initiialized in the class order.php but I am not sure the best way to obtain the value and use it. Should I grab the value from the query() within the class and make a global var ?

 

If there are also suggestions to better use the subtotal as well, I would greatly receive your advice.

 

Any thoughts or ideas are appreciated.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...