Jump to content


Photo

Display tags on product list in category view

tags product category

  • Please log in to reply
5 replies to this topic

#1 DEFTONES

DEFTONES

    Advanced Member

  • Members
  • PipPipPip
  • 46 posts

Posted 09 May 2014 - 01:16 PM

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?



looking for the best presta addons with outstanding support? check this: PrestaShop Modules

#2 vekia

vekia

    Advanced Member

  • Members
  • PipPipPip
  • 10166 posts

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 MndfRK4.png  lpHMrZ5.png  gtKHYO7.png  google-48.png


#3 szilaszlo

szilaszlo

    Newbie

  • Members
  • Pip
  • 2 posts

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!



#4 vekia

vekia

    Advanced Member

  • Members
  • PipPipPip
  • 10166 posts

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 MndfRK4.png  lpHMrZ5.png  gtKHYO7.png  google-48.png


#5 szilaszlo

szilaszlo

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 19 January 2017 - 01:43 PM

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



#6 MotifSky

MotifSky

    Member

  • Members
  • PipPip
  • 11 posts

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