Get category types at product export
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Get category types at product export
Hi Aimeos team,
we declared a category type "main" to store a main category in each product.
When exporting the products to a CSV file, we use the index manager to search for all relevant products, add the "category" domain and are able to use $item->getCatalogItems() to get all categories the product is listed in.
However, we can't find a good way to retrieve the category type (eg. "default", "promotion" or "main").
What is the best way to get this information?
we declared a category type "main" to store a main category in each product.
When exporting the products to a CSV file, we use the index manager to search for all relevant products, add the "category" domain and are able to use $item->getCatalogItems() to get all categories the product is listed in.
However, we can't find a good way to retrieve the category type (eg. "default", "promotion" or "main").
What is the best way to get this information?
Re: Get category types at product export
You have to use the catalog/lists manager to get the products associated to the categories including their list type as the list type is not available when using getCatalogItems() of the product.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star