Jump to content

i want to hide the price when my stock is zero


Recommended Posts

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

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}

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...