laurens Posted December 18, 2012 Share Posted December 18, 2012 Bonjour, j'ai mis ce bout de code dans le fichier product-list.tpl afin d'afficher le taux de remise, mais quand je fais une remise de Exp: 25 € ça me marque -2500% j'ai beau tourner dans tout les sens j'arrive pas à afficher le montant correct Quelqu'un peut maider Merci <div class="onsaleloc"> {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE} <span class="on_sale">{l s='En Solde !'}</span> {if $product.specific_prices.reduction > 0} {assign var='knowpercent' value=$product.specific_prices.reduction*100} <span class="knowpercent">- {$knowpercent}%</span> {/if} {/if} </div> 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