Jump to content

Show attribute on Product-List


jd250

Recommended Posts

Hi!! I would like to show choosen features on product-list.tpl I want to show it on line 120 of product-list.tpl

For instance if free shiping or not with an image.

Here is part of product.tpl code that works on my web:

<td>{if $feature.id_feature==32}
{if $feature.value=='Free Shipping'}{html_image file='https://www.web.com/freeshipping.gif'}

I want to do something in product-list.tpl. I think I must load the product id to show feature.value with an image. I don't know how to do this...

 

 

post-815150-0-81266300-1486555065_thumb.jpg

 

Thank you so much!

Link to comment
Share on other sites

I've found this code: 

{if isset($product.features)}
    <div class="features">
         
            {foreach from=$product.features item=feature}
                <div>
                    {$feature.name}: <span>{$feature.value}</span>
                </div>
            {/foreach}
         
         
    </div>
{/if}  

That works but I only want to show one value...

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