Jump to content

New post - Currency option


fazzfarrell

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!)

[code]
<?php
{
$HTTP_SESSION_VARS["icJag"]->Price = $HTTP_SESSION_VARS["icJag"]->Price * $row_rsCurrency['Rate']; // price x currency
}
?>[/code]

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?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.