2grosiek7 Posted September 22, 2017 Share Posted September 22, 2017 Hi, is there any possibility to get all categories belong to product and display them on product-list? Link to comment Share on other sites More sharing options...
hakeryk2 Posted September 25, 2017 Share Posted September 25, 2017 {assign 'productCats' Product::getProductCategoriesFull($product.id_product|intval)} {foreach from=$productCats item=category} {$category.name|escape:'html':'UTF-8'} {/foreach} List it how you want. Put it whatever You like in product-list.tpl 1 Link to comment Share on other sites More sharing options...
2grosiek7 Posted September 26, 2017 Author Share Posted September 26, 2017 Should it works also in product.tpl? Link to comment Share on other sites More sharing options...
hakeryk2 Posted September 27, 2017 Share Posted September 27, 2017 It should, but You need to change $product.id_product|intval to $product->id|intval 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