nico78180 Posted May 14, 2014 Share Posted May 14, 2014 (edited) bonjour, Je suis en 1.5.6.2, avec le thème par défaut modifié. Lorsque j'ajoute une promo, la promo s'affiche bien sur la page produit, mais pas sur la page d'accueil, dans la partie produit phare. Comment modifier le tpl des produits phares, ou y a t il un parametre dans le BO pour que cela s'affiche automatiquement ? j'ai essayé : http://www.prestashop.com/forums/topic/206524-promo-et-prix-barre-sur-image-produits-phares/?&p=1018324&do=findComment&comment=1018324 mais cela ne fonctionne pas : -> le bandeau vert s'affiche, mais pas le prix ! Edited May 14, 2014 by nico78180 (see edit history) Link to comment Share on other sites More sharing options...
nico78180 Posted May 14, 2014 Author Share Posted May 14, 2014 A partir de l'exemple donné en lien ci-dessue et de l'autre exemple http://www.zentitude.com/?p=125, j'ai trouvé une solution et modifier le if : {if $page_name == 'index'} <a href="{$product.link|escape:'html'}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'large_default')|escape:'html'}" height="178" width="178" alt="{$product.name|escape:html:'UTF-8'}" /> {if isset($product.new) && $product.new == 1}<span class="new">{l s='New' mod='homefeatured'}</span>{/if} <!-- en promo --> {if !$PS_CATALOG_MODE AND isset($product.reduction) && $product.reduction}<span class="prixbarinfo">{l s='EN PROMO' mod='homefeatured'}</span>{/if} <!-- /en promo --> <!-- prix barré --> {if $product.show_price AND !$PS_CATALOG_MODE AND isset($product.reduction) && $product.reduction && !isset($restricted_country_mode)}<span class="prixbar" style="display:inline;">{if $priceDisplay}{convertPrice price=$product.price_without_reduction}{else}{convertPrice price=$product.price_without_reduction_tax_exc}{/if}</span>{/if} <!-- /prix barré --> </a> {/if} 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