PrestaShopCorp / ebay

This eBay module is not supported anymore. Please use eBay module version 2: https://addons.prestashop.com/en/marketplaces/27282-ebay-20-marketplace.html Or see a public fork of this code here: https://github.com/tarmogr/Prestashop-Ebay-Free
11 stars 32 forks source link

EAN to ebay #27

Open poonc opened 9 years ago

poonc commented 9 years ago

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

bumarius commented 9 years ago

Hello Poonc.

what are those modifications ?

marius

poonc commented 9 years ago

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' => '',

--- /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,

--- /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 @@

         </Storefront>

{/if}

--- /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'],

@@ -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'],

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

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

{$ebay_store_category_id}
    {/if}  
    <ProductListingDetails>

         {$ean13}
    

{$ebay_auth_token}

bumarius commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 info@terrasensis.de

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 https://github.com/PrestaShop/ebay/issues/27#issuecomment-128313319.

nickfromtq commented 8 years ago

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 commented 8 years ago

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.