Iglober Posted March 1, 2015 Share Posted March 1, 2015 Bonjour, Je cherche à enlever le "% promo" ainsi que le nouveau prix pour ne laisser que l'ancien prix barré dans la partie Prix unitaire du récapitulatif de commande. J'ai bien été dans le code de shopping-cart.tpl, mais je n'ai trouvé quoi retirer. Merci de votre aide :-) Link to comment Share on other sites More sharing options...
fred-vinapresta Posted March 1, 2015 Share Posted March 1, 2015 Bonjour, il faut aller dans le fichier shopping-cart-product-line.tpl Link to comment Share on other sites More sharing options...
Iglober Posted March 1, 2015 Author Share Posted March 1, 2015 Merci pour votre retour, J'ai bien été aussi dans ce fichier mais j'ai un doute sur les lignes à retirer, car ce que j'ai essayé n'a pas fonctionné. J'avais retiré cela : {if !$priceDisplay} {if isset($product.reduction_type) && $product.reduction_type == 'amount'} {assign var='priceReduction' value=($product.price_wt - $product.price_without_specific_price)} {assign var='symbol' value=$currency->sign} {else} {assign var='priceReduction' value=(($product.price_without_specific_price - $product.price_wt)/$product.price_without_specific_price) * 100 * -1} {assign var='symbol' value='%'} {/if} {else} {if isset($product.reduction_type) && $product.reduction_type == 'amount'} {assign var='priceReduction' value=($product.price - $product.price_without_specific_price)} {assign var='symbol' value=$currency->sign} {else} {assign var='priceReduction' value=(($product.price_without_specific_price - $product.price)/$product.price_without_specific_price) * 100 * -1} {assign var='symbol' value='%'} {/if} {/if} {if $symbol == '%'} {$priceReduction|round:2|string_format:"%.2f"|regex_replace:"/[^\d]0+$/":""}{$symbol} {else} {convertPrice price=$priceReduction} {/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