Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] osc2ebay - oscommerce to ebay synchronization


hozone

Recommended Posts

I have been using this for about a month and am very impressed with it.

 

I was hoping someone could point me in the right direction in regards to what happens after eBay quantity =0 and the listing ends. On my site, the listing will remain in view, but will loose the item ID and the linking. If we get more stock in and our website updates to above zero, we will then need to manually re-add the listing on ebay and make the link between them with the new ebay item ID.

 

Is there a simple way to make make it automatically relist an item once the quantity on the site, goes to 1+, similarly to the way it ends the listing when quantity = 0... perhaps via a SKU?

 

Cheers,

Greg

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 months later...

Hi i have been trying to get this to work and am hitting all sorts of hurdles :-s

 

the newest one is

 

PHP Fatal error:  SOAP-ERROR: Parsing WSDL: Couldn't load from 'eBaySvc.wsdl' : failed to load external entity "eBaySvc.wsdl", referer: http://mysite.com/admin/ebay_getcategories.php

 

And also

 

in /home/sites/mysite.com/public_html/ebay_common.php on line 244, referer: http://mysite.com/admin/ebay_getcategories.php

 

Please help as i'd love to get this working.....

 

thanks

Link to comment
Share on other sites

Hi, I trying to implement this add on, there are some problems. I am able to get ebay categories and my ebay store categories but i m unable to add items to ebay store through api.

 

My request is

 

<?xml version="1.0" encoding="UTF-8"?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:ebay:apis:eBLBaseComponents">

<SOAP-ENV:Header>

<ns1:RequesterCredentials>

<ns1:eBayAuthToken>**....TOken.....**/ns1:eBayAuthToken>

<ns1:Credentials>

<ns1:AppId>My APP ID</ns1:AppId>

<ns1:DevId>My DEV ID</ns1:DevId>

<ns1:AuthCert>MY AUTH CERT ID</ns1:AuthCert>

</ns1:Credentials>

</ns1:RequesterCredentials>

</SOAP-ENV:Header>

<SOAP-ENV:Body>

<ns1:VerifyAddItemRequest>

<ns1:Version>801</ns1:Version>

<ns1:Item>

<ns1:Country>US</ns1:Country>

<ns1:Currency>USD</ns1:Currency>

<ns1:Description>ebay test</ns1:Description>

<ns1:ListingDuration>Days_30</ns1:ListingDuration>

<ns1:ListingType>FixedPriceItem</ns1:ListingType>

<ns1:Location>Location</ns1:Location>

<ns1:PaymentMethods>PayPal</ns1:PaymentMethods>

<ns1:PaymentMethods>MoneyXferAcceptedInCheckout</ns1:PaymentMethods> ;

<ns1:PayPalEmailAddress>**.....My email addres....**</ns1:PayPalEmailAddress>

<ns1:PrimaryCategory>

<ns1:CategoryID>73464</ns1:CategoryID>

</ns1:PrimaryCategory>

<ns1:Quantity>10</ns1:Quantity>

<ns1:RegionID>0</ns1:RegionID>

<ns1:ShippingDetails>

<ns1:ShippingServiceOptions>

<ns1:ShippingService>USPSExpressMail</ns1:ShippingService>

<ns1:ShippingServiceCost>8.5</ns1:ShippingServiceCost>

<ns1:ShippingServiceAdditionalCost>0</ns1:ShippingServiceAdditionalCos t>

<ns1:ShippingServicePriority>1</ns1:ShippingServicePriority>

</ns1:ShippingServiceOptions>

<ns1:ShippingServiceOptions>

<ns1:ShippingService>Pickup</ns1:ShippingService>

<ns1:ShippingServiceCost>0</ns1:ShippingServiceCost>

<ns1:ShippingServiceAdditionalCost>0</ns1:ShippingServiceAdditionalCos t>

<ns1:ShippingServicePriority>2</ns1:ShippingServicePriority>

</ns1:ShippingServiceOptions>

<ns1:ShippingType>Flat</ns1:ShippingType>

</ns1:ShippingDetails>

<ns1:ShipToLocations>US</ns1:ShipToLocations>

<ns1:Site>USA</ns1:Site>

<ns1:StartPrice>55</ns1:StartPrice>

<ns1:Storefront>

<ns1:StoreCategoryID>492517</ns1:StoreCategoryID>

<ns1:StoreCategory2ID>492517</ns1:StoreCategory2ID>

</ns1:Storefront>

<ns1:Title>ebay test</ns1:Title>

<ns1:SKU>8225</ns1:SKU>

<ns1:PostalCode>000000</ns1:PostalCode>

<ns1:ShippingTermsInDescription>true</ns1:ShippingTermsInDescription&g t;

<ns1:PictureDetails>

<ns1:GalleryType>Gallery</ns1:GalleryType>

<ns1:GalleryURL>Image URL</ns1:GalleryURL>

<ns1:PictureURL>Image URL</ns1:PictureURL>

</ns1:PictureDetails>

<ns1:DispatchTimeMax>2</ns1:DispatchTimeMax>

<ns1:SellerContactDetails>

<ns1:Street>via Test, 00</ns1:Street>

<ns1:PhoneCountryCode>US</ns1:PhoneCountryCode>

<ns1:PhoneAreaOrCityCode>01</ns1:PhoneAreaOrCityCode>

<ns1:PhoneLocalNumber>1212123</ns1:PhoneLocalNumber>

<ns1:CompanyName>Test Company</ns1:CompanyName>

</ns1:SellerContactDetails>

<ns1:ReturnPolicy>

<ns1:ReturnsAcceptedOption>ReturnsAccepted</ns1:ReturnsAcceptedOption& gt;

<ns1:Description>Return Policy</ns1:Description>

</ns1:ReturnPolicy>

<ns1:ConditionID>1000</ns1:ConditionID>

</ns1:Item>

</ns1:VerifyAddItemRequest>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

 

 

 

 

Response from ebay is

 

 

Response:

<?xml version="1.0" encoding="UTF-8"?>

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<soapenv:Body>

<soapenv:Fault>

<faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:Server</faultcode>

<faultstring>Input data is invalid.</faultstring>

<faultactor>http://www.ebay.com/ws/websvc/eBayAPI</faultactor>

<detail>

<FaultDetail>

<ErrorCode>37</ErrorCode>

<Severity>Error</Severity>

<DetailedMessage>Input data for tag <Item.Site> is invalid or missing. Please check API documentation.</DetailedMessage>

</FaultDetail>

</detail>

</soapenv:Fault>

</soapenv:Body>

</soapenv:Envelope>

 

Please help me to solve this.

Link to comment
Share on other sites

Hi i have been trying to get this to work and am hitting all sorts of hurdles :-s

 

the newest one is

 

PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'eBaySvc.wsdl' : failed to load external entity "eBaySvc.wsdl", referer: http://mysite.com/admin/ebay_getcategories.php

 

And also

 

in /home/sites/mysite.com/public_html/ebay_common.php on line 244, referer: http://mysite.com/admin/ebay_getcategories.php

 

Please help as i'd love to get this working.....

 

thanks

 

I think there is no eBaySvc.wsdl file on your server or wrong path for it. Upload eBaySvc.wsdl as it is, do not upload it as xml.

Edited by johnjj
Link to comment
Share on other sites

  • 1 month later...

Hi

I need some help with this. Have stumbled through a few errors/differences between IT and UK ebay, but one thing is stumping me now. It keeps throwing up an error of

<LongMessage>Condition is required for this category.</LongMessage>

when quite clearly the item condition id is there with the value of 1000

 

What am I doing wrong?

Link to comment
Share on other sites

  • 2 weeks later...

Has anyone got the Update all Quantity button to work?

 

When I try this button it makes no changes to quantity either on sandbox or on the site (but if I use the change quantity button on each item they work)

 

If i print the request & responses it lists the correct item numbers and quantity but does not make any changes?

 

Also the cron does nothing but I see this uses the same 'updateebayquantityall' action as the button does so this would explain why the cron does nothing.

Link to comment
Share on other sites

Its okay schoolboy error I had edited the addproducts to submit model number instead of PID so it could not link the two together. :)

 

 

Anyone got the cron to work?

 

I get a blank response from the cron

 

<html>

<head></head>

<body>

 

 

</body>

</html>

0K

 

???

Link to comment
Share on other sites

  • 1 month later...

I have installed and configured this addon, but am having some problems. I can get ebay categories and my ebay store categories but i m unable to add items to the ebay store.

 

When debugging, output is:-

 

<?xml version="1.0" encoding="UTF-8"?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:ebay:apis:eBLBaseComponents">

<SOAP-ENV:Header>

<ns1:RequesterCredentials>

<ns1:eBayAuthToken>My Auth Token</ns1:eBayAuthToken>

<ns1:Credentials>

<ns1:AppId>My App ID</ns1:AppId>

<ns1:DevId>My Dev ID</ns1:DevId>

<ns1:AuthCert>My Cert ID</ns1:AuthCert>

</ns1:Credentials>

</ns1:RequesterCredentials>

</SOAP-ENV:Header>

<SOAP-ENV:Body>

<ns1:VerifyAddItemRequest>

<ns1:Version>813</ns1:Version>

<ns1:Item>

<ns1:Country>UK</ns1:Country>

<ns1:Currency>GBP</ns1:Currency>

<ns1:Description>PRINCE HEATED TOWEL RAIL , is beautifully designed and finished in a Polished Chrome. Practical and aesthetically pleasing. Can be fitted with central heating valves, All tappings are 3/4"BSP, and comes with fixing screws. Its recommended that when installing new radiators make sure a a suitable inhibitor is used.</ns1:Description>

<ns1:ListingDuration>Days_30</ns1:ListingDuration>

<ns1:ListingType>FixedPriceItem</ns1:ListingType>

<ns1:Location>UK</ns1:Location>

<ns1:PaymentMethods>PayPal, MoneyXferAcceptedInCheckout</ns1:PaymentMethods>

<ns1:PayPalEmailAddress>my paypal</ns1:PayPalEmailAddress>

<ns1:PrimaryCategory>

<ns1:CategoryID>20442</ns1:CategoryID>

</ns1:PrimaryCategory>

<ns1:Quantity>3</ns1:Quantity>

<ns1:RegionID>3</ns1:RegionID>

<ns1:ShippingDetails>

<ns1:ShippingServiceOptions>

<ns1:ShippingService>ShippingMethodStandard</ns1:ShippingService>

<ns1:ShippingServiceCost>35.95</ns1:ShippingServiceCost>

<ns1:ShippingServiceAdditionalCost>0</ns1:ShippingServiceAdditionalCost>

<ns1:ShippingServicePriority>1</ns1:ShippingServicePriority>

</ns1:ShippingServiceOptions>

<ns1:ShippingServiceOptions>

<ns1:ShippingService>LocalDelivery</ns1:ShippingService>

<ns1:ShippingServiceAdditionalCost>0</ns1:ShippingServiceAdditionalCost>

<ns1:ShippingServicePriority>2</ns1:ShippingServicePriority>

</ns1:ShippingServiceOptions>

<ns1:ShippingType>Flat</ns1:ShippingType>

</ns1:ShippingDetails>

<ns1:ShipToLocations>UK</ns1:ShipToLocations>

<ns1:Site>United Kingdom</ns1:Site>

<ns1:StartPrice>215</ns1:StartPrice>

<ns1:Storefront>

<ns1:StoreCategoryID>501897</ns1:StoreCategoryID>

<ns1:StoreCategory2ID>501897</ns1:StoreCategory2ID>

</ns1:Storefront>

<ns1:Title>(3 ONLY) Prince heated towel rail</ns1:Title>

<ns1:SKU>7451</ns1:SKU>

<ns1:PostalCode>000000</ns1:PostalCode>

<ns1:ShippingTermsInDescription>true</ns1:ShippingTermsInDescription>

<ns1:PictureDetails>

<ns1:GalleryType>Gallery</ns1:GalleryType>

<ns1:GalleryURL>//images/HT305_l.jpg</ns1:GalleryURL>

<ns1:PictureURL>//images/HT305_l.jpg</ns1:PictureURL>

</ns1:PictureDetails>

<ns1:DispatchTimeMax>2</ns1:DispatchTimeMax>

<ns1:SellerContactDetails>

<ns1:Street>My Street</ns1:Street>

<ns1:PhoneCountryCode>UK</ns1:PhoneCountryCode>

<ns1:PhoneAreaOrCityCode>0123</ns1:PhoneAreaOrCityCode>

<ns1:PhoneLocalNumber>123123</ns1:PhoneLocalNumber>

<ns1:CompanyName>My Company</ns1:CompanyName>

</ns1:SellerContactDetails>

<ns1:ReturnPolicy>

<ns1:ReturnsAcceptedOption>ReturnsAccepted</ns1:ReturnsAcceptedOption>

<ns1:Description>Return Policy</ns1:Description>

</ns1:ReturnPolicy>

<ns1:ConditionID>1000</ns1:ConditionID>

</ns1:Item>

</ns1:VerifyAddItemRequest>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

 

 

Response:

<?xml version="1.0" encoding="UTF-8"?>

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<soapenv:Body>

<soapenv:Fault>

<faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:Server</faultcode>

<faultstring>Input data is invalid.</faultstring>

<faultactor>http://www.ebay.com/ws/websvc/eBayAPI</faultactor>

<detail>

<FaultDetail>

<ErrorCode>37</ErrorCode>

<Severity>Error</Severity>

<DetailedMessage>Input data for tag <Item.Country> is invalid or missing. Please check API documentation.</DetailedMessage>

</FaultDetail>

</detail>

</soapenv:Fault>

</soapenv:Body>

</soapenv:Envelope>

 

Anybody?

Edited by davewebwalker
Link to comment
Share on other sites

  • 4 weeks later...
  • 2 months later...

I think there is no eBaySvc.wsdl file on your server or wrong path for it. Upload eBaySvc.wsdl as it is, do not upload it as xml.

 

Thanks, it was a naming convention of all things!.... file should be 'eBaySvc.wsdl' i have 'ebaySvc.wsdl' who'd have thought in todays age of the internet it would be case sensitive :-s

 

now have a new problem not it brings up something:

 

get categories error

get store categories error

 

Please help.

 

thanks

Link to comment
Share on other sites

  • 1 month later...

I am in the process of installing this contrib but looks like i do not have Soap installed on the server, hopefully this will be done over the weekend

 

but i am not entirely sure what the contrib does i can see i can select catergories for ebay which i assume in turn will select all the products within that category to upload to a ebay shop but will it also use the back end of the osc store to manage sales.

 

what i mean will the sale made on ebay link to my osc store, so the invoice and other details will be sync to my store so i do not have to log into ebay or is it just to upload the products

 

thank you for any assistance

David

Link to comment
Share on other sites

  • 4 weeks later...

I am having an issues with a couple of the variables that are being defined. Does anyone know where you can get the ones that are relevant to the US?

 

I can seems to find where the variables are documented to add ones for flat rate shipping, or shipping with shipper calculated.

 

I believe these first variables are set correct, but not sure so just looking for some guidance.

 

Thanks for any help!

 

$ebay_siteId = "0";

$ebay_siteCode = "US";

$ebay_siteName = "United States";

$ebay_compatibilityLevel = 551;

 

//add product

$ebay_printcategoriestree_default = "14968";

$IT_ExpressCourier_Cost_Default = "8.50";

$ebay_viewlink = "http://cgi.ebay.it/";

Link to comment
Share on other sites

  • 4 weeks later...

Hi

 

I installed this contrib on a test 2.2 site. The pages on admin side are blanc. ebay_common.php file, when loaded shows 500 internal error

 

This is probably because my server doesn't have PHP SOAP, but it has Perl SOAP

 

Is there a simple way to convert these SOAP commands into Perl? Or the only solution is to change servers?

Link to comment
Share on other sites

  • 5 months later...

Anyone have this up & running on 2.3 yet? Seems to be quite a bit of adaptation required, for example:

 

catalog/admin/includes/boxes/catalog.php

 

'<a href="' . tep_href_link("ebay_syncitems.php", '', 'NONSSL') . '" class="menuBoxContentLink">ebay Sync Items</a><br>' .

'<a href="' . tep_href_link("ebay_getcategories.php", '', 'NONSSL') . '" class="menuBoxContentLink">ebay Get Categories</a><br>' .

 

needs to change to

 

array(

'code' => "ebay_syncitems.php",

'title' => "eBay Sync Items",

'link' => tep_href_link("ebay_syncitems.php")

),

array(

'code' => "ebay_getcategories.php",

'title' => "eBay Get Categories",

'link' => tep_href_link("ebay_getcategories.php")

),

 

or something like that. Would be nice to get more detailed documentation.

Link to comment
Share on other sites

  • 3 weeks later...

Hi, I trying to implement this add on, there are some problems. I am able to get ebay categories and my ebay store categories but i m unable to add items to ebay store through api.

 

My request is

 

<?xml version="1.0" encoding="UTF-8"?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:ebay:apis:eBLBaseComponents">

<SOAP-ENV:Header>

<ns1:RequesterCredentials>

<ns1:eBayAuthToken>**....TOken.....**/ns1:eBayAuthToken>

<ns1:Credentials>

<ns1:AppId>My APP ID</ns1:AppId>

<ns1:DevId>My DEV ID</ns1:DevId>

<ns1:AuthCert>MY AUTH CERT ID</ns1:AuthCert>

</ns1:Credentials>

</ns1:RequesterCredentials>

</SOAP-ENV:Header>

<SOAP-ENV:Body>

<ns1:VerifyAddItemRequest>

<ns1:Version>801</ns1:Version>

<ns1:Item>

<ns1:Country>US</ns1:Country>

<ns1:Currency>USD</ns1:Currency>

<ns1:Description>ebay test</ns1:Description>

<ns1:ListingDuration>Days_30</ns1:ListingDuration>

<ns1:ListingType>FixedPriceItem</ns1:ListingType>

<ns1:Location>Location</ns1:Location>

<ns1:PaymentMethods>PayPal</ns1:PaymentMethods>

<ns1:PaymentMethods>MoneyXferAcceptedInCheckout</ns1:PaymentMethods> ;

<ns1:PayPalEmailAddress>**.....My email addres....**</ns1:PayPalEmailAddress>

<ns1:PrimaryCategory>

<ns1:CategoryID>73464</ns1:CategoryID>

</ns1:PrimaryCategory>

<ns1:Quantity>10</ns1:Quantity>

<ns1:RegionID>0</ns1:RegionID>

<ns1:ShippingDetails>

<ns1:ShippingServiceOptions>

<ns1:ShippingService>USPSExpressMail</ns1:ShippingService>

<ns1:ShippingServiceCost>8.5</ns1:ShippingServiceCost>

<ns1:ShippingServiceAdditionalCost>0</ns1:ShippingServiceAdditionalCos t>

<ns1:ShippingServicePriority>1</ns1:ShippingServicePriority>

</ns1:ShippingServiceOptions>

<ns1:ShippingServiceOptions>

<ns1:ShippingService>Pickup</ns1:ShippingService>

<ns1:ShippingServiceCost>0</ns1:ShippingServiceCost>

<ns1:ShippingServiceAdditionalCost>0</ns1:ShippingServiceAdditionalCos t>

<ns1:ShippingServicePriority>2</ns1:ShippingServicePriority>

</ns1:ShippingServiceOptions>

<ns1:ShippingType>Flat</ns1:ShippingType>

</ns1:ShippingDetails>

<ns1:ShipToLocations>US</ns1:ShipToLocations>

<ns1:Site>USA</ns1:Site>

<ns1:StartPrice>55</ns1:StartPrice>

<ns1:Storefront>

<ns1:StoreCategoryID>492517</ns1:StoreCategoryID>

<ns1:StoreCategory2ID>492517</ns1:StoreCategory2ID>

</ns1:Storefront>

<ns1:Title>ebay test</ns1:Title>

<ns1:SKU>8225</ns1:SKU>

<ns1:PostalCode>000000</ns1:PostalCode>

<ns1:ShippingTermsInDescription>true</ns1:ShippingTermsInDescription&g t;

<ns1:PictureDetails>

<ns1:GalleryType>Gallery</ns1:GalleryType>

<ns1:GalleryURL>Image URL</ns1:GalleryURL>

<ns1:PictureURL>Image URL</ns1:PictureURL>

</ns1:PictureDetails>

<ns1:DispatchTimeMax>2</ns1:DispatchTimeMax>

<ns1:SellerContactDetails>

<ns1:Street>via Test, 00</ns1:Street>

<ns1:PhoneCountryCode>US</ns1:PhoneCountryCode>

<ns1:PhoneAreaOrCityCode>01</ns1:PhoneAreaOrCityCode>

<ns1:PhoneLocalNumber>1212123</ns1:PhoneLocalNumber>

<ns1:CompanyName>Test Company</ns1:CompanyName>

</ns1:SellerContactDetails>

<ns1:ReturnPolicy>

<ns1:ReturnsAcceptedOption>ReturnsAccepted</ns1:ReturnsAcceptedOption& gt;

<ns1:Description>Return Policy</ns1:Description>

</ns1:ReturnPolicy>

<ns1:ConditionID>1000</ns1:ConditionID>

</ns1:Item>

</ns1:VerifyAddItemRequest>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

 

 

 

 

Response from ebay is

 

 

Response:

<?xml version="1.0" encoding="UTF-8"?>

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<soapenv:Body>

<soapenv:Fault>

<faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:Server</faultcode>

<faultstring>Input data is invalid.</faultstring>

<faultactor>http://www.ebay.com/ws/websvc/eBayAPI</faultactor>

<detail>

<FaultDetail>

<ErrorCode>37</ErrorCode>

<Severity>Error</Severity>

<DetailedMessage>Input data for tag <Item.Site> is invalid or missing. Please check API documentation.</DetailedMessage>

</FaultDetail>

</detail>

</soapenv:Fault>

</soapenv:Body>

</soapenv:Envelope>

 

Please help me to solve this.

 

In the configuration file, make sure the Site ID and Site Code are set correctly.

 

 

 

$ebay_siteId	  = "0";
$ebay_siteCode    = "US";
$ebay_siteName    = "US";

 

See: http://developer.ebay.com/DevZone/XML/docs/Reference/ebay/types/SiteCodeType.html - it has a bit more upto date information than before.

Link to comment
Share on other sites

  • 4 months later...
  • 5 months later...
  • 1 year later...

I am hoping ShaGGY sees this. 

 

I saw your post that it was a
"schoolboy" mistake while editing the addproducts that caused the Update all product quantity not to work.

 

 

Of course, if ANYONE could point me in the correct direction, that would be great!  

 

I have the exact same problem as ShaGGY had on the last page.   Update all product quantity does not work, but it works fine if I update individually.

I guess this also causes cron not to work although I have not tried the cron yet.

 

 

It has been a painstaking process getting this to work completely.   I almost have it working on 2.3.4 and have found a way around the ebay requirement for submitting MPN, UPC, and BRAND.

I have also found a way to link listings without having to delete and recreate them in eBay.

 

I'm happy to trade solutions for a fix on this one!!!!!!!!

 

Link to comment
Share on other sites

I don't know if anyone has made this addon work with oscommerce 2.3.4. As I Have limited knowledge in coding, I'll be grateful if someone guide me to adapt the addon to the last version of oscommerce.

 

Regards.

Link to comment
Share on other sites

  • 3 weeks later...

Well, here is everything that I know that should help EVErYONE out greatly.  I am still not getting the cron file to run correctly because it expects cooking.  If I turn cookies off, it seems to run but the sync never happens.

 

I am currently using it with OSC 2.3.4

 

Here goes:

 

Some helpful things I put together that would have saved me hours of time:


-You have to get your ebay tokens from developers.ebay.com.  It is easy to sign up.  
-You must have an eBay Store for this to work.

YOU HAVE TO DELETE ALL OF YOUR  EBAY ITEMS AND RELIST THEM FROM YOUR WEBSITE FOR THIS CONTRIBUTION TO WORK.

I have not figured out how to load more than one picture, and ebay will not let you add more on the listing side.

Any items listed on eBay with this addon can ONLY be modified via XML.  Sales, discounts, international shiupping,

etc...  I have not solved these either...

I have less than a year PHP and coding experience and everything I have learned is because of getting OSCommerce in

the first place (and with help from others)


________________________________________________

To download and install eBaySvc.wsdl

Using internet explorer (Firefox won't do it) go to:  http://developer.ebay.com/webservices/latest/ebaysvc.wsdl

It should prompt you to open it or save it.  Save it.
You can also search "eBaySvc.wsdl" in IE.  If the above link pops up, right click and select "Save taget as"
 
Upload it to your catalog and catalog/admin folder roots.

Be sure that the file name is exactly eBaySvc.wsdl - The caps matter

Open eBaySvc.wsdl in Notepad++ or similar.  At the top, find the version number.

Set $ebay_compatibilityLevel in ebay_config.php to that same number

_______________________________________________________________
To modify for a 2.3.4 site:

IN catalog/admin/includes/boxes/catalog.php:

Change:

'<a href="' . tep_href_link("ebay_syncitems.php", '', 'NONSSL') . '" class="menuBoxContentLink">ebay Sync

Items</a><br>' .
'<a href="' . tep_href_link("ebay_getcategories.php", '', 'NONSSL') . '" class="menuBoxContentLink">ebay Get

Categories</a><br>' .

To:
      //osc2ebay BEGIN
      array(
        'code' => FILENAME_EBAY_SYNCITEMS,
        'title' => BOX_CATALOG_EBAY_SYNC_ITEMS,
        'link' => tep_href_link(FILENAME_EBAY_SYNCITEMS)
        ),
        
      array(
        'code' => FILENAME_EBAY_GETCATEGORIES,
        'title' => BOX_CATALOG_EBAY_GET_CATEGORIES,
        'link' => tep_href_link(FILENAME_EBAY_GETCATEGORIES)
        ),
        
      //osc2ebay END

______________________________________

IN catalog/admin/includes/languages/english.php:

ADD (in the box_catalog area...):

//Begin OSC2ebay
define('BOX_CATALOG_EBAY_SYNC_ITEMS', 'Ebay Sync Items');
define('BOX_CATALOG_EBAY_GET_CATEGORIES', 'Ebay Get Categories');
//End OSC2ebay


______________________________
*******  Workaround of UPC, MPN, and Brand requirements:
______________________________
Part 1

In catalog/ebay_config.php - at the end of the file:

Add:

$UPC = "Does Not Apply";
$MPN = "Does Not Apply";
$Manufacturer = "Unbranded";

***Ebay accepts these settings but you will not have the actual UPC, MPN, or Brand.   It would be cool if someone

to modify this to use a DB call for those values

_____________________________
Part 2a

In admin/ebay_addproducts.php

Add after $client = new eBaySOAP($session); but before $params = array(

$nameAndValues = array(
            array('Name' => "Brand", 'Value' => $Manufacturer),
            array('Name' => "MPN", 'Value' => $MPN),
        );

____________________________
Part 2b

Add after 'Description' => $Products_Description,

            'ProductListingDetails' => array(
                'UPC' => $UPC,
                ),

            'ItemSpecifics' => array('NameValueList' => $nameAndValues),

_____________________________
Part 2c

NOTE:
Around line 93 in admin/ebay_addproducts.php

DO NOT uncomment the line //'InventoryTrackingMethod' => "SKU",
LEAVE THIS LINE ALONE!!!!!

Ebay defaults to listing by an item number.  If you choose to list by you own SKU, you CAN'T convert the listing to

use an item number and have to delete and relist

______________________________

Other bugs:

1) Show only items with price discrepancies button doesn't work properly and shows no items even though ALL of mine

have different prices. I have no fox for this

2)Ebay has an "out of stock" setting in "My account/Site Preferences/Selling preferences/Sell Your Item form and

listings" that will allow all GTC (Good Till Cancelled) listings to remain even if stock reaches Zero.  

The osc2Ebay contribution's code will end your eBay listings when quantity reaches zero even with that selected.
To keep it from doing this, you need to:

Change: if($Quantity > 0) {
To:  if($Quantity >= 0) {

In the files (around those lines):
catalog\ebay_syncitemsactions.php
    Line 61:             
    Line 461:
catalog\checkout_confirmation_ebay.php
    Line 188:                             
catalog\checkout_success_ebay.php
    Line 182:
admin\categories.php
    Line 307:

If you use Notepad plus, you can search your modified files for EndItem and the line to change it a few above it.     

                                                    

Note:  Using only GTC (Good Till Canceled) listing types will always keep the same item number.




3) Local price is shown with tax and ebay price is shown without tax - at least in my case.  To adjust, I changed

ebay_common.php
---Or, you may want to keep ebay prices more expensive to compensate for the final value fees.  If so, keep tax.

from:

    Line 88:     return ebay_local_format_price($products_pricetot, $products_tax);
    Line 97: function ebay_local_format_price($products_price, $products_tax) {

To:

    Line 88:     return ebay_local_format_price($products_pricetot);
    Line 97: function ebay_local_format_price($products_price) {

>>>>>OR<<<<<

It may be easier to just modify the line (around line 102)

    return tep_round(tep_round($products_price, 2) + tep_round($products_price * $products_tax / 100, 2) , 2);  

}

changing the 100 to different values can adjust the price given to ebay to sync without changing your own prices

---------This is another thing that is would be amazing for someone to devise
-------> add a text field to increase or decrease the sync price given to ebay by an amount or percent

 

Good luck and I hope this helps :)

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