optionsmegastore Posted January 19 Share Posted January 19 hi guys, i have 1.6 prestashop version, and i've seen this have been discussed before yet on different versions like 1.8 or 1.7 yet never on 1.6.0.9 anyone have any clue what should i edit? so that the price is hidden when my stock is zero? this worked for me somehow when i see the product in the category. the price is hidden, yet when i click on the product page itself, the price is still shown. i appreciate your help, thank you. Link to comment Share on other sites More sharing options...
Eolia Posted January 19 Share Posted January 19 modify the product.tpl and product-list.tpl with condition {if $product->quantity > 0} ... {/if} before your price div in product.tpl for example: {if $product->quantity > 0} <div class="pb-right-column col-xs-12 col-sm-4 col-md-3" > ... // existing code </div> {/if} 1 Link to comment Share on other sites More sharing options...
optionsmegastore Posted January 19 Author Share Posted January 19 hello, thank you for your response, will try and let you know. Link to comment Share on other sites More sharing options...
vipier Posted August 5 Share Posted August 5 On 1/19/2024 at 7:12 AM, Eolia said: modify the product.tpl and product-list.tpl with condition {if $product->quantity > 0} ... {/if} before your price div in product.tpl for example: {if $product->quantity > 0} <div class="pb-right-column col-xs-12 col-sm-4 col-md-3" > ... // existing code </div> {/if} this worked perfectly on prestashop 1.7.8.8 thank youuu!! Link to comment Share on other sites More sharing options...
Eolia Posted August 5 Share Posted August 5 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