Jump to content

Display category associations on product list (1.6)

Ismael Arguedas

Recommended Posts



I tried to show category associations on each product listed on product list. (Presta, default bootstrap)


I tried insert this code in product-list.tpl  but nothing changed:

     {foreach from=Product::getProductCategoriesFull($product.id_product) item=category}
                     <div itemprop="category" itemscope itemtype="http://schema.org/Product">
                         <meta itemprop="name" content="{$category.name|escape:'html':'UTF-8'}" />
                         <meta itemprop="url" content="{$link->getCategoryLink($category.id_category, $category.link_rewrite)|escape:'html':'UTF-8'}" />

Anyone knows how I can do it?



Edited by Ismael Arguedas (see edit history)
  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...