Jump to content

Product list atributtes statement


cocodeluxe

Recommended Posts

I need to show a text on product-list products with certain combinations of attributes.

 

I need something like this with the appropriate statement

{ if $id_attribute_group = 1}

More sizes availables {/if}

 

 

I have been trying with this tutorial for the features but either have known it to work with combinations

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

Link to comment
Share on other sites

I try in {debug} mode in combinations.tpl to access variables

 

this way

{foreach $combinations as $k=>$v}
{if $v.group_name == 'Size'}
<span class="item-tag-delivery">more sizes</span>
{/if}					
{/foreach}

works well but leaves repeated as many times as has the product combinations

 

How I can do to appear its only once. Without foreach nothing appears

 

 

Thanks

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