Jump to content

Ration impact prix unitaire


Recommended Posts

Salut,

 

pour un de mes clients, je dois mettre des déclinaisons avec un impact sur le prix unitaire. 

Ma question est, est'il possible d'attibuer un impact automatique sur le prix unitaire?

 

J'ai essayé de modifier le code comme ceci :

{if !empty($product->unity) && $product->unit_price_ratio > +0.000001}
                                        {math equation="pprice / punit_price"  pprice=$productPrice  punit_price=$product->unit_price_ratio assign=unit_price}
                                        <p class="unit-price" style="text-align: center; color: rgb(17, 17, 17);">{l s='Prix Unitaire : '}
                                            <span id="unit_price_display">{convertPrice price=$unit_price}</span> 
                                            {l s='per'} {$product->unity|escape:'html':'UTF-8'}

 Mais cela ne fonctionne pas !

 

Quelqu'un aurai une piste?

 

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...