@rthur Posted February 26, 2021 Share Posted February 26, 2021 (edited) Salut. J'ai besoin de remplacer 2 valeurs en même temps. J'y arrive pour remplacer 1 élément mais pour 2... Dans cet exemple j'aimerais remplacer le "-" par "(rien)" et le "." par "," {($variable/1.20)|string_format:"%d"|replace:"-":""} Une idée? Merci Prestashop 1.7.5 Edited February 26, 2021 by @rthur (see edit history) Link to comment Share on other sites More sharing options...
Eolia Posted February 26, 2021 Share Posted February 26, 2021 mettez-les à la suite {($variable/1.20)|string_format:"%d"|replace:"-":""|replace:".":","} Link to comment Share on other sites More sharing options...
@rthur Posted February 26, 2021 Author Share Posted February 26, 2021 1 minute ago, Eolia said: mettez-les à la suite {($variable/1.20)|string_format:"%d"|replace:"-":""|replace:".":","} Je comprends pas j'ai essayé tout à l'heure et ca m'a généré une erreur 500... J'ai du faire une erreur de saisie. Merci beaucoup ca fonctionne 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