Jump to content

{resolu} Bug sur le HT : 6 chiffres après la virgule ?


Recommended Posts

Bonjour à tous,

Sur un prestashop 1.7.2.4 j'ai besoin d'afficher le prix en HT et TTC sur les fiches produits.

- dans le BO j'affiche 2 chiffres après la virgule, sur le front il y en a 6 qui s'affichent alors que j'en voudrais que 2 ... ?

- Dans le TPL voici la ligne qui affiche le HT :

 <p class="product-without-taxes">{l s='%price% tax excl.' d='Shop.Theme.Catalog' sprintf=['%price%' => $product.price_tax_exc]}</p>

J'ai tenté d'ajouter une condition du style :

<p class="product-without-taxes">{l s='%price% tax excl.' d='Shop.Theme.Catalog' sprintf=['%price|string_format:"%d"' => $product.price_tax_exc]}</p>

Mais ça ne fonctionne pas, en front ça affiche : %price% HT

Sur le forum j'ai vu plusieurs sujets qui traite du problème, mais aucune solution n'a fonctionné chez moi.

Des suggestions please ? 🙂

Merci

 

Capture d’écran 2020-02-14 à 18.05.38.png

Edited by Thierry Création (see edit history)
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...