Jump to content

AFFICHER LE POIDS SUR LA FICHE ARTICLE


Recommended Posts

Bonjour, j'aimerai afficher le poids sur la fiche article

 

j'ai écris ce code, mais j'obtient 0.500000 Kg à la place de 0.5 kg 

 

comment faire pour supprimer les 0.000000 derrière ?

Cordialement

<!-- products weight --> <p>Poids : <span id="product_weight">{$product->weight}</span> {$weightUnit}kg</p>
Link to comment
Share on other sites

  • 4 months later...

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