laurens Posted December 28, 2012 Share Posted December 28, 2012 (edited) Bonjour, je ne connait rien en prog mais grâce au nombreux topic et avec de la patiente j'avance doucement mais la je bute sur un décalage entre une remise faite en % et une remise en € je vous joint mes bouts de code qui j'espère ne sont pas trop horrible ainsi que la capture d'ecran Merci fichier tpl <div class="specific_prices"> {if $product.specific_prices} {assign var='specific_prices' value=$product.specific_prices} {if $specific_prices.from == $specific_prices.to OR ($smarty.now|date_format:'%Y-%m-%d %H:%M:%S' <= $specific_prices.to && $smarty.now|date_format:'%Y-%m-%d %H:%M:%S' >= $specific_prices.from)} {if $specific_prices.reduction_type == 'percentage'} <span id="class="reduction">-{$specific_prices.reduction * 100|floatval}%</span> {else} <span id="class="reduction">-{displayWtPrice p=$specific_prices.reduction}</span> {/if} {/if} {/if} </div> fichier css ul#product_list li div.specific_prices { float:left; position:absolute; text-align:left; color: white; font-weight: bold; width:auto; text-transform: uppercase; -moz-transform: rotate(-45deg); -webkit-transform: rotate(-45deg); -o-transform:rotate(-45deg); -ms-transform: rotate(-45deg); margin-top:-265px; padding-left:6px; font-size: 15px; } décalage.bmp Edited December 30, 2012 by laurens (see edit history) Link to comment Share on other sites More sharing options...
YopixelAE Posted December 29, 2012 Share Posted December 29, 2012 Bonjour, vous devriez d'abord corriger votre code <span id="class="reduction"> Link to comment Share on other sites More sharing options...
laurens Posted December 30, 2012 Author Share Posted December 30, 2012 (edited) Bonjour Félix le problème c'est que je débute est je n'ai pas encore la maitrise des codes, c'est pour cela que je demande de l'aide à la communauté Je ne l'avais même pas vu , quand on débute on veut tellement faire bien que l'on fait n'importe quoi voila j'ai modifie j'espère que la c'est bon <span class="reduction"> mais ça résout pas mon décalage résolu il manquer un widht Edited December 30, 2012 by laurens (see edit history) 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