You are here:  » Ebay results and currency


Ebay results and currency

Submitted by IG on Thu, 2017-11-02 08:23 in

Hi David

I have finally managed to make ebay work. I am using EBAY-CH as ebayGlobalId, but the results are from UK and Germany as you can see here ({link saved}). And worse, the prices shown in CHF on my site are in pound or euro on the respective ebay site.

Ideally, I would like to have Swiss results in Swiss Francs. If that's not possible, it would be great to either show the correct currency (pound, euro etc.) on my site or to use the calculated equivalent value in chf from ebay's site. What are the options?

On another note, how difficult would it be to integrate the results of switzerland's leading online market place ricardo.ch? https://help.ricardo.ch/hc/de/categories/115000567485-Developers-Home

Kind regards,
IG

Submitted by support on Thu, 2017-11-02 10:01

Hi,

I'll look at incorporating this into the download but show currency ID from the feed instead of the site $config_currencyHTML, for search results edit searchresults_ebay.php and look for the following code at line 56:

    $product["name"] = $item["TITLE"];

...and REPLACE with:

    $product["name"] = $item["TITLE"];
    $product["currency"] = $item["SELLINGSTATUS/CURRENTPRICE-CURRENCYID"];

Edit searchresults_table.php and look for the following code at line 3:

  <?php foreach($searchresults["products"] as $product): ?>

...and REPLACE with:

  <?php foreach($searchresults["products"] as $product): ?>
    <?php if (isset($product["currency"])) $config_currencyHTML $product["currency"];  ?>

And for product page, edit prices_ebay.php and look for the following code at line 28:

    $product["name"] = $item["TITLE"];

...and REPLACE with:

    $product["name"] = $item["TITLE"];
    $product["currency"] = $item["SELLINGSTATUS/CURRENTPRICE-CURRENCYID"];

Edit prices_table.php and look for the following code at line 62:

      <?php foreach($prices["products"] as $product): ?>

...and REPLACE with:

      <?php foreach($prices["products"] as $product): ?>
        <?php if (isset($product["currency"])) $config_currencyHTML $product["currency"];  ?>

Cheers,
David.
--
PriceTapestry.com

Submitted by IG on Thu, 2017-11-02 12:04

Hi David

Thank you very much for your superbe support as always.

Having said that,I am still wondering why a Swiss Ebay ID won't deliver Swiss results. This somehow defeats the purpose of having this id in the first place.

Cheers,
IG

Submitted by IG on Wed, 2018-11-21 20:22

Hi David

For the sake of consistency, I would like to have a gap between the currency the price. How can I do that with the above modification?

Cheers,
IG

Submitted by support on Thu, 2018-11-22 08:03

Hi,

The SPACE can be added to $config_currencyHTML, so in the above modifications where you have the following code:

     <?php if (isset($product["currency"])) $config_currencyHTML $product["currency"];  ?>

...REPLACE with:

     <?php if (isset($product["currency"])) $config_currencyHTML $product["currency"]." ";  ?>

Cheers,
David.
--
PriceTapestry.com

Submitted by IG on Thu, 2018-11-22 08:44

I had one dot too many. Thanks, David.