Jump to content


New post - Currency option

  • Please log in to reply
No replies to this topic

#1 fazzfarrell

  • Members
  • PipPipPip
  • Advanced Member
  • 154 posts

Posted 18 October 2006 - 02:14 PM

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?

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users