dannybest Posted May 14, 2013 Share Posted May 14, 2013 Hy I'm Daniel and I want to make a little change in default theme. When I set price to 0 I want to display "Pleace call us for price" but. I find the code but I don't know how to implement. <div class="price"> <p class="our_price_display"> {if $priceDisplay >= 0 && $priceDisplay <= 2} <span id="our_price_display">{convertPrice price=$productPrice}</span> <!--{if $tax_enabled && ((isset($display_tax_label) && $display_tax_label == 1) OR !isset($display_tax_label))} {if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if} {/if}--> {/if} </p> {if $product->on_sale} <img src="{$img_dir}onsale_{$lang_iso}.gif" alt="{l s='On sale'}" class="on_sale_img"/> <span class="on_sale">{l s='On sale!'}</span> {elseif $product->specificPrice AND $product->specificPrice.reduction AND $productPriceWithoutReduction > $productPrice} <span class="discount">{l s='Reduced price!'}</span> {/if} {if $priceDisplay == 2} <br /> <span id="pretaxe_price"><span id="pretaxe_price_display">{convertPrice price=$product->getPrice(false, $smarty.const.NULL)}</span> {l s='tax excl.'}</span> {/if} </div> Can anyone help me, thank you very much. Link to comment Share on other sites More sharing options...
vekia Posted May 14, 2013 Share Posted May 14, 2013 you should try with something like {if $productPrice<=0} your communicate here {/else} // HERE HERE PUT THE CODE WITH PRICES THAT YOU PASTE {/if} Link to comment Share on other sites More sharing options...
langbianiam Posted July 23, 2013 Share Posted July 23, 2013 Yes, I want too every body help us Thanks Link to comment Share on other sites More sharing options...
vekia Posted July 23, 2013 Share Posted July 23, 2013 but what you exactly expect? Link to comment Share on other sites More sharing options...
langbianiam Posted July 23, 2013 Share Posted July 23, 2013 HI, I want, when I recorded a value of $0 will display "Call for Pricing" My previous website using prestashop v1.3.6 I can fix to the "Call for Pricing", but with prestashop v1.5.4.1 I can not fix it. Thanks for reading Link to comment Share on other sites More sharing options...
vekia Posted July 23, 2013 Share Posted July 23, 2013 {if $productPrice==0}YOUR INFORMATION HERE{/if} Link to comment Share on other sites More sharing options...
langbianiam Posted July 23, 2013 Share Posted July 23, 2013 Thanks alot, i add this code if (price == 0) return 'Call for price'; in to tools.js & classes/tools.php Solved Link to comment Share on other sites More sharing options...
KevLas Posted November 17, 2013 Share Posted November 17, 2013 Hi Langbianiam, What did you do exactly ? I'm looking for do this please! Link to comment Share on other sites More sharing options...
jbeltran Posted December 24, 2013 Share Posted December 24, 2013 thank you works perfect! Link to comment Share on other sites More sharing options...
Recommended Posts