Jump to content

Supprimer affichage du poucentage de la page product.tpl


Recommended Posts

Bonjour,

Je souhaiterais supprimer le pourcentage ou le montant du rabais dans la fiche produit?

J'aimerais afficher uniquement le nouveau prix et l'ancien prix barré

Est-ce possible?

J'ai essayé de le faire mais l'ancien tarif disparait...

 

Merci de votre aide.

 

   <p id="reduction_percent" {if !$product->specificPrice || $product->specificPrice.reduction_type != 'percentage'} style="display:none;"{/if}>
                             <span id="reduction_percent_display">
                                 {if $product->specificPrice && $product->specificPrice.reduction_type == 'percentage'}-{$product->specificPrice.reduction*100}%{/if}
                              </span>
                           </p>
                           <p id="reduction_amount" {if !$product->specificPrice || $product->specificPrice.reduction_type != 'amount' || $product->specificPrice.reduction|floatval ==0} style="display:none" {/if}>
                              <span id="reduction_amount_display">
                              {if $product->specificPrice && $product->specificPrice.reduction_type == 'amount' && $product->specificPrice.reduction|floatval !=0}
                                 -{convertPrice price=$productPriceWithoutReduction-$productPrice|floatval}
                              {/if}
                              </span>
                           </p>
                           <p id="old_price"{if (!$product->specificPrice || !$product->specificPrice.reduction) && $group_reduction == 0} class="hidden"{/if}>
                              {if $priceDisplay >= 0 && $priceDisplay <= 2}
                                 {hook h="displayProductPriceBlock" product=$product type="old_price"}
                                 <span id="old_price_display">{if $productPriceWithoutReduction > $productPrice}{convertPrice price=$productPriceWithoutReduction}{/if}</span>
                                 <!-- {if $tax_enabled && $display_tax_label == 1}{if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if}{/if} -->
                              {/if}
                           </p>

 

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