Skip to content
This repository has been archived by the owner on Mar 17, 2020. It is now read-only.

EAN to ebay #27

Open
poonc opened this issue Jul 30, 2015 · 11 comments
Open

EAN to ebay #27

poonc opened this issue Jul 30, 2015 · 11 comments

Comments

@poonc
Copy link

poonc commented Jul 30, 2015

Hey, i made some modifications to submit EAN13 Number into ebay API!

@bumarius
Copy link

Hello Poonc.

what are those modifications ?

marius

@poonc
Copy link
Author

poonc commented Jul 31, 2015

just added some ean13 datas into arrays, i attached some patch files in
this mail, also the whole modules folder (http://terrasensis.de/wp-content/uploads/2015/07/Ebay_1.11._EAN_modded.zip) , installed onto a 1.6.09 Prestashop
i am testing some more around, but now EAN ist passed to ebay and ebay
likes it! Ebay Germany needs EAN mandatory since 01.07 in some
categories, so i had no choice, because our customers were about to get
angry...

Greets Dani

--- /home/lenovo/Downloads/ebay-master/ebay.php
+++ /home/lenovo/Downloads/Ebay_1.11._EAN_modded/ebay/ebay.php
@@ -1918,6 +1918,7 @@
$data = array(
'price' => $product['price'],
'price_without_reduction' => '',

  •       'EAN' => $product['ean13'],  
        'reduction' => $product['reduction'],
        'name' => $product['name'],
        'description' => $product['description'],
    
    @@ -2065,4 +2066,4 @@
    exit;
    }
    }
    -}+}

--- /home/lenovo/Downloads/ebay-master/classes/EbaySynchronizer.php
+++ /home/lenovo/Downloads/Ebay_1.11._EAN_modded/ebay/classes/EbaySynchronizer.php
@@ -105,6 +105,7 @@
$data = array(
'price' => $price,
'quantity' => $quantity_product,

  •               'ean13' => (string)$ean13,
                'categoryId' => $ebay_category->getIdCategoryRef(),
                'variations' => $variations,
                'pictures' => $pictures['general'],
    

--- /home/lenovo/Downloads/ebay-master/ebay/api/AddFixedPriceItem.tpl
+++ /home/lenovo/Downloads/Ebay_1.11._EAN_modded/ebay/ebay/api/AddFixedPriceItem.tpl
@@ -94,9 +94,11 @@

{/if}

+         {$ean13}
+    


{$ebay_auth_token}

-+

--- /home/lenovo/Downloads/ebay-master/classes/EbayRequest.php
+++ /home/lenovo/Downloads/Ebay_1.11._EAN_modded/ebay/classes/EbayRequest.php
@@ -391,6 +391,7 @@
'title' => Tools::substr(self::prepareTitle($data), 0, 80),
'pictures' => isset($data['pictures']) ? $data['pictures'] : array(),
'description' => $data['description'],

  •       'ean13'=> $data['ean13'],
        'category_id' => $data['categoryId'],
        'condition_id' => $data['condition'],
        'price_update' => !isset($data['noPriceUpdate']),
    

@@ -440,6 +441,7 @@
'dispatch_time_max' => $this->ebay_profile->getConfiguration('EBAY_DELIVERY_TIME'),
'listing_duration' => $this->ebay_profile->getConfiguration('EBAY_LISTING_DURATION'),
'quantity' => $data['quantity'],

  •       'ean13'=> $data['ean13'],
        'price_update' => !isset($data['noPriceUpdate']),
        'start_price' => $data['price'],
        'resynchronize' => ($this->ebay_profile->getConfiguration('EBAY_SYNC_OPTION_RESYNC') != 1),
    

@@ -503,6 +505,7 @@
'country_currency' => $currency->iso_code,
'description' => $data['description'],
'condition_id' => $data['condition'],

  •       'ean13'=> $data['ean13'],
        'dispatch_time_max' => $this->ebay_profile->getConfiguration('EBAY_DELIVERY_TIME'),
        'listing_duration' => $this->ebay_profile->getConfiguration('EBAY_LISTING_DURATION'),
        'pay_pal_email_address' => $this->ebay_profile->getConfiguration('EBAY_PAYPAL_EMAIL'),
    

{*
revisefixedpriceitem:
{if isset($ebay_store_category_id)}

{$ebay_store_category_id}


{/if}

         {$ean13}
    


{$ebay_auth_token}

@bumarius
Copy link

bumarius commented Aug 1, 2015

Hello Dani,

thanks a lot. it is working fine.

Yes the EAN it will be mandatory for all countries since 01.09

Thanks a lot
Best regards
Marius

@bumarius
Copy link

bumarius commented Aug 1, 2015

hello again

we have an issue with this version (ebay v1.11.0)
When we go into the "category tab / show categories" and we click on showproducts there are no products displayed

do you have a multistore or a single store site?

best regards
marius

@poonc
Copy link
Author

poonc commented Aug 6, 2015

This problem was also in older versions, see https://www.prestashop.com/forums/topic/396794-ebay-modul-kategorien-werden-nicht-angezeigt/

especially this solution:
The fix for the moment is the following. In EbayStoreCategoryConfiguration.php change these two lines with the second.

Quote

Quote

// Line 38
'ebay_category_id' => (int)$ebay_category_id,
'ebay_category_id'    => (string)$ebay_category_id,

// Line 52
Db::getInstance()->Execute("UPDATE "._DB_PREFIX_."ebay_store_category_configuration SET ebay_category_id = '".(int)$ebay_category_id."' WHERE id_ebay_store_category_configuration = '".(int)$id."'");
Db::getInstance()->Execute("UPDATE "._DB_PREFIX_."ebay_store_category_configuration SET ebay_category_id = '".(string)$ebay_category_id."' WHERE id_ebay_store_category_configuration = '".(int)$id."'");

After this, go in your database, table ps_ebay_store_category and change the type of data of ebay_category_id and ebay_parent_category_id from INT to VARCAR.

In the table ps_ebay_store_category_configuration change the type of data of ebay_category_id from INT to VARCAR.

@bumarius
Copy link

bumarius commented Aug 6, 2015

Hello Poonc,

Thank you for your reply.

We have problems in Categories for the moment, not in store_category.

Please find attached one image.

Best regards
Marius
sans titre-1

@poonc
Copy link
Author

poonc commented Aug 6, 2015

webshop

Works only, if there is at least one Product inside this category, so try click on Special-PRO on choisier produits... Remember only the standard-category of each article will be used here.

If it is only a Javascript Problem, you could try to use another browser to test

@bumarius
Copy link

bumarius commented Aug 6, 2015

sans titre-1
hmmmm same problem in IE chrome and firefox.

Now I put 2 products in special-pro :(

best regards
marius
sans titre-1

@poonc
Copy link
Author

poonc commented Aug 6, 2015

Maybe first try to assign a ebay category, save and try again? Not sure
as my system works quite well.... if you have got the credentials to a
test-account, you can mail me to [email protected]

Am 06.08.2015 um 12:01 schrieb Marius:

hmmmm same problem in IE chrome and firefox.

Now I put 2 products in special-pro :(

best regards
marius
sans titre-1
https://cloud.githubusercontent.com/assets/11003699/9109019/cc639fda-3c32-11e5-9817-9fd77f3321a9.jpg


Reply to this email directly or view it on GitHub
#27 (comment).

@nickfromtq
Copy link

Hi,

Currently I have around 150 ebay listings that have been sync'd from prestashop using version 1.1, also many of these have variations.

I would like to know how do I install the Ebay_1.11._EAN_modded.zip ?

Do I just overwrite the folder module/ebay or do I have to uninstall the current version and install the Ebay_1.11._EAN_modded.zip version.

Will this have an impact on our current listings and will these continue to work.

Any help regarding this would be very much appreciated.

Many Thanks
Nick

@Frankie6677
Copy link

Hi there. Is there any progress on this issue?
We urgently need to be able to send new sales lists to Ebay but these products have no EAN, so we cannot submit them.
Ebay either needs the EAN or "Does not apply" in order to accept an item for sale.
So there urgently needs to be an option in the sales profile to activate "EAN: does not apply".

Without this issue fixed we are stuck now and cannot submit these products to Ebay :-(
And there must be many others with same issue, too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants