Jump to content

Tags in Product List (1.6)


jaywaters

Recommended Posts

Hi all,

 

This has been asked before but i can't find any mention of the topic recently (therefore relating to 1.6) and none of the info I've uncovered so far seems to work for me.

 

I'm building a book store and using Tags for Authors, so therefore need the author to appear directly below the book name throughout the store, especially in product lists. The following tutorial by Nemo does exactly what I want but with Features:

 

http://nemops.com/features-to-product-list-prestashop-16/#.VfmmfmRVhBc

 

I just need someone to help me out doing the same but for Tags.

 

Any pointers greatly appreciated.

 

Thanks,

 

Jay

Link to comment
Share on other sites

Hi Jay,

 

Based on the tutorial of Nemo, the code needs some changes to deal with tags.

For global.js, do the same, just modify "features" by "tags".

Hope it will be useful!

<div class="tags">         
	{foreach from=Tag::getProductTags($product.id_product) key=k item=v}
		{if $k != $lang_id}
			{continue}
		{/if}
		{foreach from=$v item=value}
			<div>
			<span style="color:green;">{$value}</span>
			</div>
		{/foreach}
	{/foreach}
</div>

Link to comment
Share on other sites

  • 7 months later...

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