{if (isset($layoutType)) && ($layoutType == 'list')}
	{assign var="viewBtnClass" value="qkView btnBg1 buyBtn"}
{else}
	{assign var="viewBtnClass" value="qkView buyButton"}
{/if}
{if $productOptionQuantitySum >0 ||  $resProduct.InventoryTrackLevel=='No'}
		{if !($productOptionsCount >1 || (isset($resProduct.customOptionCount) && $resProduct.customOptionCount > 4))}
			{html->anchor class="iconappend2 {$viewBtnClass} " productid={$productID} rel="{$productID}-{$options.0.productOptionID|default:0}" caption=$language.lblQuickview|upper}
		{else}
			{html->anchor class="iconappend2 {$viewBtnClass} " href="{$resProduct.productID|sef_path:'product':$originCatalogID|default:0}"  caption=$language.lblViewDetails|upper}
		{/if}
	
{/if}

