algomp Posted June 10, 2014 Share Posted June 10, 2014 Bonjour, je cherche un moyen d'arrondir ma remise voici ce que j'ai dans mes catégories et une fois dans la fiche produit, le nombre de chiffres après la , augmente. Je voudrais une remise à 2 chiffres, sans décimale. J'ai lu un post précédent, mais c'était pour la version 1.4 et j'ai la dernière version de prestashop à savoir la 1.6.0.6 Merci Link to comment Share on other sites More sharing options...
algomp Posted June 12, 2014 Author Share Posted June 12, 2014 Quelqu'un aurait la solution? Link to comment Share on other sites More sharing options...
algomp Posted June 23, 2014 Author Share Posted June 23, 2014 Up Link to comment Share on other sites More sharing options...
S-HAMMANI Posted June 23, 2014 Share Posted June 23, 2014 Bonjour ; Dans le fichier product.js remplacer la ligne suivante: $('#reduction_percent_display').html('-' + parseFloat(selectedCombination['specific_price'].reduction_percent) + '%'); par: $('#reduction_percent_display').html('-' + parseFloat(selectedCombination['specific_price'].reduction_percent).toFixed(0) + '%'); Link to comment Share on other sites More sharing options...
algomp Posted June 23, 2014 Author Share Posted June 23, 2014 Bonjour, merci pour votre aide mais cela n'a rien changé. Link to comment Share on other sites More sharing options...
algomp Posted July 11, 2014 Author Share Posted July 11, 2014 Up, je cherches toujours Link to comment Share on other sites More sharing options...
algomp Posted July 17, 2014 Author Share Posted July 17, 2014 Je reviens à la charge car je n'arrive pas à régler ce bug. Sur ma page d'accueil et de catégorie j'ai des remises avec des décimales, or sur ma fiche produit les remises sont arrondies pour obtenir un chiffre rond. Link to comment Share on other sites More sharing options...
Nico34 Posted March 18, 2015 Share Posted March 18, 2015 Merci, cela fonctionne sur mon PS 1.6.0.9 ! 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