jokoss Posted March 30, 2011 Share Posted March 30, 2011 Bonjour, J'aimerais mettre le prix " réduction en barré " au-dessus du prix réel, mais lorsque je déplace le code, le code du prix barré ne fonctionne plus.. Quelqu'un pourrai m'aider SVP ??Code ci-dessous : {if $product->show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE} {if $product->specificPrice AND $product->specificPrice.reduction_type == 'percentage'} {l s='(price reduced by'} {$product->specificPrice.reduction*100} %{l s=')'} {/if} """" ENDROIT OU J AIMERAI LE DÉPLACER """""" {if !$priceDisplay || $priceDisplay == 2} {assign var='productPrice' value=$product->getPrice(true, $smarty.const.NULL)} {assign var='productPriceWithoutRedution' value=$product->getPriceWithoutReduct(false, $smarty.const.NULL)} {elseif $priceDisplay == 1} {assign var='productPrice' value=$product->getPrice(false, $smarty.const.NULL)} {assign var='productPriceWithoutRedution' value=$product->getPriceWithoutReduct(true, $smarty.const.NULL)} {/if} {if $priceDisplay >= 0 && $priceDisplay <= 2} {convertPrice price=$productPrice} {if $tax_enabled} {if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if} {/if} {/if} {if $priceDisplay == 2} {convertPrice price=$product->getPrice(false, $smarty.const.NULL)} {l s='tax excl.'} {/if} {if $product->on_sale} {l s='On sale!'} {elseif $product->specificPrice AND $product->specificPrice.reduction AND $productPriceWithoutRedution > $productPrice} {l s='Reduced price!'} {/if} """"" DÉBUT CODE A DÉPLACER """"" {if $product->specificPrice AND $product->specificPrice.reduction} {if $priceDisplay >= 0 && $priceDisplay <= 2} {if $productPriceWithoutRedution > $productPrice} {convertPrice price=$productPriceWithoutRedution} {if $tax_enabled} {if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if} {/if} {/if} {/if} {/if} """""" FIN CODE """""" etc... Link to comment Share on other sites More sharing options...
jokoss Posted April 1, 2011 Author Share Posted April 1, 2011 Please.. Un coup de main ;-) 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