sebsimappus Posted July 8, 2020 Share Posted July 8, 2020 Bonjour à tous, Je viens vers vous suite à un problème, dans la fiche produit, je souhaites faire un calcule simple avec les déclinaisons, le principe fonctionne avec une partie des déclinaisons, vraiment bizarre. Le principe est d'obtenir un prix unitaire, pour cela voici le calcule : <span class="cbnt-name">Par {$combination.title nofilter}</span> {if $combination.price} <span class="cbnt-price product-price">{$combination.price}</span> <em>{($combination.price/$combination.title)|round:2} € l'unité</em> {/if} Comme vous pourrez le voir dans l'imprime écran , les calcule des trois premier est correct. Merci d'avance Link to comment Share on other sites More sharing options...
Eolia Posted July 8, 2020 Share Posted July 8, 2020 un price divisé par un title ????? Link to comment Share on other sites More sharing options...
coeos.pro Posted July 8, 2020 Share Posted July 8, 2020 il y a 30 minutes, sebsimappus a dit : Comme vous pourrez le voir dans l'imprime écran , les calcule des trois premier est correct. 26 / 50 = 0.52 => OK 32 / 75 = 0.43 => OK 1200 / 3 000 = 0.4 => pas OK essaye déjà de remplacer 3 000 par 3000 Link to comment Share on other sites More sharing options...
sebsimappus Posted July 8, 2020 Author Share Posted July 8, 2020 Bonsoir, Mille mercis pour votre retour, nous avons déjà fait 3000, cela ne change rien malheureusement. Cordialement Link to comment Share on other sites More sharing options...
coeos.pro Posted July 8, 2020 Share Posted July 8, 2020 sinon essaye d'utiliser math Link to comment Share on other sites More sharing options...
sebsimappus Posted July 8, 2020 Author Share Posted July 8, 2020 Comment faire la formule, j'ai jamais fait. Link to comment Share on other sites More sharing options...
sebsimappus Posted July 9, 2020 Author Share Posted July 9, 2020 Bonjour, Je reviens vers vous suite au test avec math, malheureusement il n’affiche plus rien, nous avons fait dans différente manière mais aucun résultat. Merci d'avance 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