Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Froogle converting prices from euro to usd for listing ?


willows

Recommended Posts

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.

free is often better than cheap

Link to comment
Share on other sites

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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...