Adigon89 Posted April 19, 2010 Share Posted April 19, 2010 i have a problem, i need to show category's name in product-list.tpl...how can i solve this problem? how can i get category's name from id product?thx for your help.. Link to comment Share on other sites More sharing options...
choussamaster Posted July 13, 2011 Share Posted July 13, 2011 this is how to get it from product.tpl {$cat = $product->id_category_default} {if $cat == 1} Retour au catalogue {else} getcategorylink($cat)|escape:'htmlall':'UTF-8'}" class="btn_bleu">Retour au catalogue {/if} Link to comment Share on other sites More sharing options...
vivek tripathi Posted July 21, 2011 Share Posted July 21, 2011 Hiif you want to place category name in product list.tp foreach product just replace {foreach from=$products item=product name=products} 1 Link to comment Share on other sites More sharing options...
carlbug Posted July 21, 2011 Share Posted July 21, 2011 I saw that it works... try with the above code Link to comment Share on other sites More sharing options...
Liebre Posted April 19, 2012 Share Posted April 19, 2012 thanks, this was very usefull to my (= 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