Jump to content

Show product availability on product list


Recommended Posts

I added a red cross on product (in product list) that are not available.

 

To do that i use a code like this:

	{if $product.quantity <= 0}
			<p id="oos-badge" class="icon-remove"></p>
	{/if}

Ufortunatelly I have a problem with products with combinations. If the default combination quantity is "0", the red cross is showed, also if there's other attributes available.

 

There's a way to show the red cross only if all attributes are out of stock?

Link to comment
Share on other sites

  • 2 weeks later...
×
×
  • Create New...