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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.