jherbaux Posted December 30, 2009 Share Posted December 30, 2009 Bonjour, bonjour,Alors voila je voudrai faire une multiplication dans un fichier tpl mes variable, je les prend de la bdd. C'est $product.wholesale_price qui est égale a 25 et $product.rate qui est égale a 19.6Donc j'ai fait {assign var="prix_achat_ht" value="`$product.wholesale_price`"*"`$product.rate`"} Mais il m'a écrit "25"*"19.6" au lieu de faire mon calcul ...Un tit peu d'aide s'il vous plait. Link to comment Share on other sites More sharing options...
Cédric - Groupe SITTI Posted December 30, 2009 Share Posted December 30, 2009 Bonjour,Essayez en enlevant les guillemet {assign var="prix_achat_ht" value=$product.wholesale_price*$product.rate} Link to comment Share on other sites More sharing options...
jherbaux Posted December 30, 2009 Author Share Posted December 30, 2009 ben merci c'était sa....J'étais pourtant sur d'avoir essayer....Enfin sa marche tant mieux 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