fazzfarrell Posted October 18, 2006 Share Posted October 18, 2006 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 UKI 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 https://forums.phpfreaks.com/topic/24333-new-post-currency-option/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.