Refactor addToProduct's and change Quantity scripts and i added a way to get the product's quickView

This commit is contained in:
Christophe Laffont
2014-06-11 10:15:05 +02:00
parent 5279cc72ce
commit d2dfbbf4b2
7 changed files with 13629 additions and 134 deletions

View File

@@ -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}