My current Product url is in this format : example.com/product_slug . I need to append the category and subcategory URLs along with this URL. The site is implemented using magento,which i am not much familiar with. Is there any option to do this via admin side ?
2
Answers
I have not checked it but you need to set Category Id on Product Object. Try the code below:
I am quite sure that it will work for you.
Thanks
You can reuse magento’s catalog url rewrite module.
You’ll just have to pass the category and the store id as parameters.