Jump to content

[SOLVED]Is there any no-more stock icon to be shown if quantity hit to zero?


seldon.paul2
 Share

Recommended Posts

Is there any no-more stock icon to be shown if quantity hit to zero?
Please let me know -

I kind of have an idea but instead of showing available, go to the logic part and then
show this image instead of showing "available or not available"
right?

Share this post


Link to post
Share on other sites

Try changing line 19 of product-list.tpl (in PrestaShop v1.3.2) from:

{if ($product.allow_oosp OR $product.quantity > 0)}{l s='Available'}{else}{l s='Out of stock'}{/if}



to:

{if ($product.allow_oosp OR $product.quantity > 0)}<img src="{$img_dir}icon/available.gif" alt="{l s='Available'}" width="14" height="14" />{else}<img src="{$img_dir}icon/unavailable.gif" alt="{l s='Out of stock'}" width="14" height="14" />{/if}

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More