Pixtor Posted November 9, 2015 Share Posted November 9, 2015 Bonjour la communauté ! Je suis actuellement entrain de créer ma boutique Presta et je cherche à afficher les champs "package width" "package height" et "package depth" à mes pages produits. Je ne sais pas comment récuperer et du coup afficher la variable. Quelqu'un sait comment faire ? Merci d'avance ! Link to comment Share on other sites More sharing options...
Kimchii Posted November 9, 2015 Share Posted November 9, 2015 (edited) Inspirer d'un topic anglais : show product weight on product page Il faut ajouter dans ton template product.tpl {l s='Largeur paquet: ' js=1}{$product->width|string_format:"%.2f"} {l s='Hauteur paquet: ' js=1}{$product->height|string_format:"%.2f"} {l s='Profondeur paquet: ' js=1}{$product->depth|string_format:"%.2f"} {l s='Poids: ' js=1}{$product->weight|string_format:"%.2f"} Dans cet exemple, les valeurs sont formatées jusqu'à 2 décimales. Edited November 9, 2015 by Kimchii (see edit history) Link to comment Share on other sites More sharing options...
Pixtor Posted November 9, 2015 Author Share Posted November 9, 2015 ça marche parfaitement ! Merci beaucoup Kimchii ! Bonne journée 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