willows Posted June 19, 2003 Posted June 19, 2003 Hi I have the latest version of the easy populate but my base currency is euro and froogle are complaining that the prices I supply are not the usd prices, which is true. I have added the following line to the easy populate to convert the price to euro but I am getting an error. I am not an php guru so can some one have a quick look at the code and see if there is a glaring error. in the file easypopulate I have added. require('includes/application_top.php'); require(DIR_WS_CLASSES . 'currencies.php'); $currencies = new currencies(); .... ... ... $shop_base_currency = "EUR"; .. ... .. case 'froogle':... echo "froogle prices "; echo "<br> Euro Price = $v_products_price"; ---> $v_products_price = $currencies->format($v_products_price, true, $shop_base_currency ,USD); echo "<b> USD Price = $v_products_price </b>"; I am getting the following error on the line with the arrow. froogle prices Euro Price = Fatal error: Call to a member function on a non-object in /usr/hsphere/local/home/mcevoys/mcevoys.ie/admin/easypopulate2.php on line 1165 As far as I can see I am calling the format currency function correctly but there is some thing else I am missing. Quote free is often better than cheap
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.
Note: Your post will require moderator approval before it will be visible.