binshops / prestashop-rest

PrestaShop REST API module to expose your PrestaShop website's REST endpoints
https://www.binshops.com/prestashop-api
Academic Free License v3.0
95 stars 33 forks source link

Add categories on product data #36

Closed giorgiopogliani closed 1 year ago

giorgiopogliani commented 1 year ago

Hello, I am not sure this is the best way to do it but with this new param all the product categories are available. Also, it will be possible to create breadcrumbs on product page.

samberrry commented 1 year ago

@giorgiopogliani Hello, thanks for your contribution. Please change your base branch from master to develop, thank you

samberrry commented 1 year ago

@giorgiopogliani it's a nice contribution, as it's necessary. Please take a look at this: https://github.com/PrestaShop/PrestaShop/blob/7f739ee0bc0917e86babc321a804dda99c901064/controllers/front/ProductController.php#L1308

this is how the Core is building breadcrumbs, so let us just copy that :) I changed it, and pushed.