 {foreach $arrHighlightGroups as $highlightGroup key="groupKey"}

	{assign var="prodsUnderGroup" value=$resListProducts[$groupKey]|default:array()}
{if $prodsUnderGroup|count>0}   
   <div class="productListing index">
  <h2><span>{$language[$highlightGroup]}</span></h2>
  <ul>
        {foreach $prodsUnderGroup as $resProduct key="key" name="highlt"}
        {assign var="productID" value=$resProduct.productID}
        {assign var="productOptionsCount" value=$resProduct['productOptionCount']|default:''}
        {assign var="offerPrice" value=$resProduct['offerPrice']}
        {assign var="productOptionRegularPrice" value=$resProduct['productOptionRegularPrice']}
        {assign var="productOptionOfferDiscount" value=$resProduct['productOptionOfferDiscount']|round}
        {assign var="productOptionQuantitySum" value=$resProduct.productOptionQuantitySum}
        <li {if $smarty.foreach.highlt.index == 2}class="marginR0"{/if}>{if $productOptionQuantitySum <1} 
			<span class="closed-img"> <span class="middle-text">{$language.lblSoldOut}</span> <span class="right-end"></span> </span> 
		{/if}
      <div class="imageBox"> 
		
		{if $productOptionOfferDiscount >0}
       		<div class="offerPrice">{$productOptionOfferDiscount}<span>%</span></div>
        {/if}
	  
      {html->anchor href="{$resProduct.productID|sef_path:'product'}"  title=$language.lblViewDetails content="<img src='{$view_public_path}/uploads/catalog/product/thumb/{$resProduct.productImage}'   alt='{$resProduct.productTitle}'>"}
            <div class="hoverbx">
          <div class="innerBx1 iconappend">
           
                {include file="{$pageLayout}BuyNowMultiBlock.tpl"}</div>
        </div>
          </div>
      <div class="deatils"> {html->anchor href="{$resProduct.productID|sef_path:'product'}"  content="{$resProduct.productTitle|truncate:28}"}<br />
      <div class="dayLeft right">
					{if $resProduct.daysLeft|default:''>=0 && $resProduct['showCountTimer']=='Yes'} 
					<span class="AjaxProductTimer">
						<span class="time-block">
							<span class="days_dash" >
								<span class="numr" id="timer_days_{$custID}" >
									{if $resProduct.daysLeft>0}
										<span class="digit">{$resProduct.daysLeft}</span>
										{if $resProduct.daysLeft>1}
											<span class="dys-txt">{$language.lblDaysLeft}</span> 
										{else}
											<span class="dys-txt">{$language.lblDayLeft}</span> 
										{/if}
									{else}
										<span class="dys-txt">{$language.lblEndToday}</span> 
									{/if}
								</span>
							</span>
						</span>
					</span>
					{/if}
					
				</div>
            {if $productOptionRegularPrice!=$offerPrice}<strike>{$productOptionRegularPrice|price:'':$resProduct.productDefaultCurrency:$currentCurrencyID}</strike>{/if} 
			<span>{$offerPrice|price:'':$resProduct.productDefaultCurrency:$currentCurrencyID}</span> 
			
			{if $resProduct['tierPrice']>0}
				<div>{$language.lblAsLowAs} {$resProduct['tierPrice']|price:'':$resProduct.productDefaultCurrency:$currentCurrencyID}</div>
			{/if}
			
			</div>
      {if $resProduct['featuredStatus']=='Yes'}
      <div class="featured">Featured</div>
      {/if} </li>
        {/foreach}
      </ul>
  <div class="clear"></div>
</div>
{/if}
{/foreach}
<div id="CategoryPopup"> {form->start name="formProductOptions"}{form->close} </div>
