Refactor addToProduct's and change Quantity scripts and i added a way to get the product's quickView
This commit is contained in:
@@ -107,15 +107,16 @@
|
||||
</div>{/if}
|
||||
</div>
|
||||
|
||||
{* Default value *}
|
||||
{assign var="current_stock_class" value = "in-stock"}
|
||||
{assign var="current_stock_href" value = "http://schema.org/InStock"}
|
||||
|
||||
{loop name="stock_meta" type="product_sale_elements" product="$ID"}
|
||||
{loop name="combi_meta" type="attribute_combination" product_sale_elements="$ID"}
|
||||
{if $LOOP_COUNT == 0}
|
||||
{if $QUANTITY == 0}
|
||||
{assign var="current_stock_class" value = "out-of-stock"}
|
||||
{assign var="current_stock_href" value = "http://schema.org/OutOfStock"}
|
||||
{else}
|
||||
{assign var="current_stock_class" value = "in-stock"}
|
||||
{assign var="current_stock_href" value = "http://schema.org/InStock"}
|
||||
{/if}
|
||||
{/if}
|
||||
{/loop}
|
||||
|
||||
Reference in New Issue
Block a user