CeriseLPDC Posted June 5, 2014 Share Posted June 5, 2014 Hi folks, I looking ofr a way to have ALL the category for a product. i can use id_category_default to have the defaut catégory, but how can I have ALL category? Any idea? regards Link to comment Share on other sites More sharing options...
csschopper.com Posted June 5, 2014 Share Posted June 5, 2014 Hi, Do you want to assign all categories to a product? If yes then what is problem with product module from there you can associate all categories. Look at screenshot http://awesomescreenshot.com/06a2xhg694 Link to comment Share on other sites More sharing options...
CeriseLPDC Posted June 5, 2014 Author Share Posted June 5, 2014 hi csschoper. This is not what I need. the silution seemes to be : $product->getProductCategories($product->id) but it dont works well on index.tpl Link to comment Share on other sites More sharing options...
vekia Posted June 5, 2014 Share Posted June 5, 2014 check this guide: all product categories on product page Link to comment Share on other sites More sharing options...
CeriseLPDC Posted June 5, 2014 Author Share Posted June 5, 2014 (edited) This is the answer : {assign var=itemsX value=Product::getProductCategoriesFull($product.id_product)} {foreach $itemsX as $v} {$v["link_rewrite"]} {/foreach} Thks Edited June 5, 2014 by CeriseLPDC (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted June 5, 2014 Share Posted June 5, 2014 thank you :-) i marked topic title as [solved] with regards, Milos 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