tiagosilva Posted July 29, 2010 Share Posted July 29, 2010 Hello, I would like to implement a logic in my pages of products when the product price is equal to 0 (== 0) would not show the price, and when it is greater than 0 (> 0) show the price normally ..Anyone have one suggestion? Link to comment Share on other sites More sharing options...
tiagosilva Posted July 29, 2010 Author Share Posted July 29, 2010 anyone can help?Please Link to comment Share on other sites More sharing options...
tiagosilva Posted July 30, 2010 Author Share Posted July 30, 2010 I need this help, please anyone have one suggestion? Link to comment Share on other sites More sharing options...
tomerg3 Posted July 30, 2010 Share Posted July 30, 2010 Edit /themes/prestashop/product.tplLook for and replace it with getPrice(true, $smarty.const.NULL, 2) == 0}style="display:none"{/if}> Link to comment Share on other sites More sharing options...
tiagosilva Posted July 30, 2010 Author Share Posted July 30, 2010 Thanks, this work good..I try to put same code in product-list.tpl but this fail, this deleted all information, including the button to see the product.. Can help me in code for product-list.tpl? Link to comment Share on other sites More sharing options...
tomerg3 Posted August 1, 2010 Share Posted August 1, 2010 Instead of $product->getPrice(true, $smarty.const.NULL, 2)Use$product.price Link to comment Share on other sites More sharing options...
tiagosilva Posted August 9, 2010 Author Share Posted August 9, 2010 i try to insert this code but dont have work..anyone can help to insert this logic here in product-list.tpl {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc} {/if} {if ($product.allow_oosp OR $product.quantity > 0)}{l s='Available'}{else}{l s='Available'}{/if} Link to comment Share on other sites More sharing options...
tiagosilva Posted August 10, 2010 Author Share Posted August 10, 2010 i need help please, you can help me? Link to comment Share on other sites More sharing options...
tomerg3 Posted August 11, 2010 Share Posted August 11, 2010 Link to comment Share on other sites More sharing options...
tiagosilva Posted August 12, 2010 Author Share Posted August 12, 2010 Thanks, this work good..;Di will change title for solved.. 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