oblik Posted April 25, 2013 Share Posted April 25, 2013 (edited) Bonjour, Je souhaite afficher des caractéristiques sur des produits "accessoires" au produit principal, dans la fiche product.tpl Je suis en prestashop 1.5.4 Voici ce que j'ai ajouté à product.tpl : <!-- Caracteristiques --> {foreach from=$accessory->features item=feature} <!-- type de vin --> {if $feature.id_feature eq 7} <p class="type-de-vin"><a href="{$accessory->product_link}" title="{$accessory->name|escape:html:'UTF-8'}">{$feature.value|escape:'htmlall':'UTF-8'}</a></p> {/if} {/foreach} Rien ne s'affiche. Une idée ? Merci ! Edited April 25, 2013 by oblik (see edit history) Link to comment Share on other sites More sharing options...
MichałM Posted June 6, 2013 Share Posted June 6, 2013 Try this code: {foreach from=$accessory.features item=feature name=features} Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now