Jump to content


szilaszlo's Content

There have been 2 items by szilaszlo (Search limited from 21-May 23)


By content type

See this member's

Sort by                Order  

#13644 Display tags on product list in category view

Posted by szilaszlo on 19 January 2017 - 01:43 PM in PrestaShop theme development & modifications

where exactly you want to display tags?

 

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...




#13274 Display tags on product list in category view

Posted by szilaszlo on 16 December 2016 - 09:43 AM in PrestaShop theme development & modifications

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!