Jump to content

[résolu] Comment afficher le % de reduction d'un produit dans les produits phares ?


Recommended Posts

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 by nico78180 (see edit history)
Link to comment
Share on other sites

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

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