Jump to content

Afficher le prix HT avant promo sur product-list, avec catalogue en TTC


Recommended Posts

Bonjour,

 

Je suis sur prestashop 1.6

J'ai l'ensemble de mon site affichant des prix TTC.

 

Dans ma page product-list.tpl :

Je souhaiterais afficher le prix avant réduction en HT et TTC

pour le TTC, j'y suis parvenu avec le bloc suivant :

<span class="old-price product-price">
{displayWtPrice p=$priceWithoutReduction_tax_excl} TTC
</span>

 

Dans ma page produit.tpl, je suis parvenu à faire ce double affichage grace à ce bloc :

  {assign var='productPriceWithoutReductionNoTax' value=$product->getPriceWithoutReduct(true, $smarty.const.NULL)}

<span class="price-box-display-ht">
  {convertPrice price=$productPriceWithoutReductionNoTax} {l s='tax excl.'}
</span>
<span class="price-box-display-ttc">
  {convertPrice price=$productPriceWithoutReduction} {l s='tax incl.'}
</span>

Mais impossible de reproduire ce comportement dans product-list.tpl

 

Merci par avance pour votre aide précieuse

Edited by Numero50 (see edit history)
Link to comment
Share on other sites

  • 1 year later...

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