Jump to content

Product availability whe using combinations


DARKF3D3

Recommended Posts

I'm showing products availability on product listing with a code like this:

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

In this way if a products is out of stock the user will see a red cross on the product.

 

The problem is that if the product has combinations like colors or other attributes, and the main attributes it's out of stock, the red cross is showed also if theres other color available.

 

 

There's a way to show the red cross only if all combinations have quantity = to zero?

 

  • Like 1
Link to comment
Share on other sites

  • 4 weeks later...
×
×
  • Create New...