Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to automatically calculate price according to currency


cln73

Recommended Posts

Hi

 

We're changing the setup on our webshop, so product prices are calculated automatically after a currency instead of now where we have a price table in the database for each country's currency except Euros.

 

In OS commerce I have tested it on some product for one foreign currency. It works well when you choose product (in the system it is the file product_info.php) but when I afterwards view the products in the shopping_cart I still get the old price from the standatr table I have chosen in OS Commerce but without the calculation to foreign currency.

 

I can see that it uses the file shopping_cart.php on the root library and here I have tried to search directly in the source code, which did not help much. But I can see that it makes some calculations in the file /includes/classes/shopping_cart.php where the method calculate() makes some currency check. I have played around with this method but whatever I do, it still shows the old price in the shopping cart.

 

 

If you want more details about the problem – dont hesitate to ask.

 

 

Regards Carsten

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...