Jump to content


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


New post - Currency option

Recommended Posts

I have a database with prices and one with the currency rates for UK, USD and Euros.

On my page I have the prices in UK

I am trying to create a formula that will convert the prices when going into the shoping cart. brlow (did not work!)

$HTTP_SESSION_VARS["icJag"]->Price = $HTTP_SESSION_VARS["icJag"]->Price * $row_rsCurrency['Rate']; // price x currency

The '$HTTP_SESSION_VARS["icJag"]->Price' is the session the price goes in to for the cart '$row_rsCurrency['Rate']; ' is the rate from the data base.

Uk is Set to 1.0000 so it keeps it's value and the others are changed daily in the database.

I need a script that will multiply this on the page, any ideas?

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.