jma Posted October 16, 2013 Share Posted October 16, 2013 Bonjour, Sur mon thème pour prestashop 1.5.3, je souhaite afficher dans le fiche produit (product.tpl) la remise en pourcentage (%) faite sur mon produit depuis le back office "prix spécifiques" J'ai placé ceci dans product.tpl : $product->specificPrice.reduction mais cela me donne 0% Auriez vous un bout de code pour m'aider de toute urgence Merci JMA Link to comment Share on other sites More sharing options...
Rauck Posted October 21, 2013 Share Posted October 21, 2013 {if $product->specificPrice AND $product->specificPrice.reduction AND $product->specificPrice.reduction_type == 'percentage'} <span class="price-reduction">-{round(($product->specificPrice.reduction*100), 0)}%</span> {/if} 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