Get category id from product in Magento

Last Modified at 2019-06-25 21:29:27

As we all know, that a product can be associated with multiple categories and a category can also be associated with multiple products. So in some cases, we need to Get all the categories of a product by product id. By using below code you can get all the categories that are associated with the current product id.

About Lipku

Categories

In order to optimize our website and to be able to continuously improve it, we use cookies. By continuing to use this website, you agree to the use of cookies. For more information about cookies, please visit our Privacy policy.