Skip to content
Advertisement

Prestashop – Add multiple categories to a product

I’m trying to add more categories in my product but once created, the product keeps only the id_cetegory_default.

My code :

JavaScript

Result :

enter image description here

Thanks in advance!

Advertisement

Answer

You need to call updateCategories function to add product into multiple categories. So once your product get saved; you can call this funtion.

For example:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement