Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

eBay Categories - My thoughts on how to best sync M2E/Magento & eBay categories together
mark starzynski

Not so New
May 4, 2015 - 6:18 pm
Member Since: July 30, 2014
Forum Posts: 10
sp_UserOfflineSmall Offline

Hi guys,

after dealing with larger and larger Magento product collections, its become pretty apparent to me how much I would love M2E to sync the Magento category list with eBays (and populate products). I know its fairly simple to do categories by putting their ID number into a custom attribute, but for many retailers who have a large product list, taking on this task of assigning an ebay Cat ID to every product is daunting.

I have been working on a new integration of 2000 products this weekend, and wanted to come up with a way to tackle this. I am only a medium level PHP developer so I already know this can be done much better (and probably could be 100% synced via some fancy eBay API integration), but this is the way I have tackled it that, I think, might save people a lot of time.

In summary, I came to the conclusion that it would be better if you could assign each Magento category an eBay category ID, and then sync this data to the products. This would mean that the ID’s only need to be entered once onto the Magento category, rather than onto each product. So here is the process I have come up with:

1. Manually create your Magento categories
2 . Manually create your eBay categories to reflect the Magento categories
3. Add a custom attribute to your Magento categories called ‘ebaycatid’. Follow these instructions to see how its done:
4. Enter your EBAY CATEGORY ID into the ‘ebaycatid’ field on each Magento category
5. Create & assign two product attributes to your products called ‘ebayshopcat1’ & ‘ebayshopcat2’
6. Upload the attached PHP file to the root of your website
7. Run the file and watch it work some magic,…..gories.php

1. This script may put a strain on your server if you have a lot of products. Be aware of this.

Number (2) is important. If an eBay category has sub-categories, it doesn’t allow you to list a product in the parent category. So you shouldn’t enter an eBay ID for the parent category, or M2E will report and error and put the product into eBay’s ‘other’ category, rather than the correct one. Example:

Ebay Category: LIGHTING > 1000W LIGHTS
Magento Category: LIGHTING > 1000W LIGHTS

DO NOT assign an eBay ID to ‘lighting’ in Magento. Only assign the eBay ID for the ‘1000w lights’ category.

I hope this makes sense and at least saves 1 person some time!

Tested on Magento 1.9.1… I’m not responsible for any errors that may be experienced :)

The following users say thank you to mark starzynski for this useful post:

Dave Furness


Why Should You Join UnderstandingE?

  • Access to over 500 step-by-step video tutorials
  • +20 video courses available
  • Magento, M2E Pro, Magmi, eBay, Amazon & Design all covered
  • Everything is in 100% Plain English
  • Learn how to build your own multi-channel software for eBay & Amazon
  • Access to the community forums, meet fellow business owners like yourself

Join Now with 2 Clicks


Join now for less that £1 per day you can gain access to over 400 step-by-step video tutorials & learn how to build your very own multi-channel software.


Forum Timezone: Europe/London

Most Users Ever Online: 1012

Currently Online:
19 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Jim @ Moogento: 688

Steve Froggatt: 514

Badeth - UE: 513

Jimbob: 453

Paul Cartwright: 414

Forum Stats:

Groups: 6

Forums: 37

Topics: 5223

Posts: 27502

Administrators: Matthew Ogborne: 4565, Dave Furness: 4606