{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') && $resProduct.isProductDeal|default:'' neq 'Yes'}
		{if !($productOptionsCount >1 || (isset($resProduct.customOptionCount) && $resProduct.customOptionCount > 4))}
			{html->anchor class="{$viewBtnClass} " productid={$productID} rel="{$productID}-{$resProduct.productOptionID|default:0}" caption="<i class='icon-eye'></i>"}
		{else}
			{html->anchor class="{$viewBtnClass} " href="{$resProduct.productID|sef_path:'product':$originCatalogID|default:0}" caption="<i class='icon-eye'></i>"  title=$language.lblViewDetails|upper}
		{/if}
{else}
        {html->anchor class="{$viewBtnClass} " href="{$resProduct.productID|sef_path:'product':$originCatalogID|default:0}" caption="<i class='icon-eye'></i>" }
{/if}

