yaya Posted August 25, 2011 Share Posted August 25, 2011 Bonjour a vous, je suis sur une version 1.2.5 de prestashop, et je voudrais savoir comment faire afin de ne pas afficher le prix si celui-ci est égale a 0€ {if $price=0 ..... apres je ne sais pas merci pour votre aide Link to comment Share on other sites More sharing options...
Patrick21 Posted August 25, 2011 Share Posted August 25, 2011 Bonjour tu peux t'inspirer de ce sujet http://www.prestashop.com/forums/topic/119687-resolu-afficher-nous-consulter-a-la-place-du-prix-sur-ps-14x/page__view__findpost__p__589940__fromsearch__1 Patrick Link to comment Share on other sites More sharing options...
yaya Posted August 25, 2011 Author Share Posted August 25, 2011 Bonjour et merci de votre réponse; je ne sais pas ou insérer ce code dans product.tpl Pour info je suis sur prestashop 1.2.5 et non 1.4 merci {if $product->price == 0} {l s='Prix: nous contacter'} {/if} <div class="no-real-price"> <p class="price"> <span class="our_price_display"> {if !$priceDisplay || $priceDisplay == 2} <span id="our_price_display"> {convertPrice price=$product->getPrice(true, $smarty.const.NULL, 2)} </span> {/if} {if $priceDisplay == 1} <span id="our_price_display"> {convertPrice price=$product->getPrice(false, $smarty.const.NULL, 2)} </span> {/if} </span> {if $priceDisplay == 2} <br /> <span id="pretaxe_price"><span id="pretaxe_price_display">{convertPrice price=$product->getPrice(false, $smarty.const.NULL, 2)}</span> {l s='tax excl.'} </span> {/if} <br /> </p> </div> Link to comment Share on other sites More sharing options...
yaya Posted August 26, 2011 Author Share Posted August 26, 2011 petit up ;-) merci 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