Juandbbam Posted March 11, 2013 Share Posted March 11, 2013 Hello! Is there any way of getting the list of categories of a product in its own product's page? In product's page you can only get its default category, but not the list of categories that the product belongs to. Thank you in advance. Link to comment Share on other sites More sharing options...
Valérie Assetskaya Posted March 11, 2013 Share Posted March 11, 2013 Hi, Please, take a look at our module Product Links. The module provides tools for displaying product links to multiple catalogs they belong to and deriving this links from admin panel to the product page. Best regards. Link to comment Share on other sites More sharing options...
Juandbbam Posted March 11, 2013 Author Share Posted March 11, 2013 Got it {assign var='categories' value=Product::getProductCategoriesFull($product->id, $cookie->id_lang)} {foreach from=$categories key='categoryId' item='category' name='categories'} Category ID: {$categoryId}<br /> Name: {$category['name']}<br /> Link rewrite: {$category['link_rewrite']} {/foreach} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now