Introduction
This article provides you with a description of how to return the categories used in your Magento webshop.
Problem
You’re using:
- A Magento v2.0 or higher webshop using Categories in your Product Catalog
- BPA Platform (formerly “TaskCentre”) v4.6 or higher
- Magento Integration tool v1.0.11 or higher
When performing a GET CATEGORY
operation on the Catalog: Category
object, only the default category is returned.
Solution
To return other categories, you must map the category’s root ID in the Integration tool’s Mapping tab.
To get the category’s root ID, do the following:
- Log into your Magento client.
- Click on the required category.
- Note the new URL that opens in your browser. At the end of the URL is the root ID, for example:
http://<hostname>/admin/catalog/category/edit/key/<key_guid>/id/3/
- Map this value in the Magento Integration task step.