Hello
i want to add product tags for product listings on category view
i want to add product for each product visible on that list
how?
Posted 16 May 2014 - 11:09 AM
in product-list.tpl file you can use this code:
<ul class="producttags"> {foreach from=Tag::getProductTags($product.id_product) key=k item=v} {foreach from=$v item=value} <li><a href="{$link->getPageLink('search', true, NULL, "tag={$value|urlencode}")}">{$value|escape:html:'UTF-8'}</a></li> {/foreach} {/foreach} </ul>
place this code there where you want to dispaly tags
voila ;-)
free tutorials, free templates, free addons, prestashop modules
Posted 16 December 2016 - 09:43 AM
in product-list.tpl file you can use this code:
<ul class="producttags"> {foreach from=Tag::getProductTags($product.id_product) key=k item=v} {foreach from=$v item=value} <li><a href="{$link->getPageLink('search', true, NULL, "tag={$value|urlencode}")}">{$value|escape:html:'UTF-8'}</a></li> {/foreach} {/foreach} </ul>place this code there where you want to dispaly tags
voila ;-)
Hi Vekia!
It is possibe to works with prestashop 1.6.1.4 and 1.6.1.7?
My 1.6.1.4. shop have a leo fashion theme, and it seems not work, but no errors.
I used your article: https://mypresta.eu/...oduct-page.html
Thank you!
Posted 16 December 2016 - 11:50 AM
Hi Vekia!
It is possibe to works with prestashop 1.6.1.4 and 1.6.1.7?
My 1.6.1.4. shop have a leo fashion theme, and it seems not work, but no errors.
I used your article: https://mypresta.eu/...oduct-page.html
Thank you!
where exactly you want to display tags?
free tutorials, free templates, free addons, prestashop modules
Posted 16 May 2018 - 02:04 AM
I like it to show on the product list category page by the homefeatured module.
If it will be appear on the top of the product image, It will be genius!
it is difficult like that? I am not a programmer...
How did you do that in the end? I need to solve the same problem...