
<h3 class="font-semibold h5 mb-3 mt-3 mt-md-0 pl-3 pl-md-0">{$language.lblRecommendationsForYou}</h3>



{if isset($recmmdPtds) && !empty($recmmdPtds)}
	<div class="slider-block light-bg">    
	<div class="recommend-slick"> 
		{foreach from=$recmmdPtds item="recmmd" key=i } 
		
		  <div class="imageBox p-3">
			<div class="image-thumb position-relative">
                <figure class="text-center">
				{assign var="catalog" value=$catalog|default:''}
				{html->anchor href="{$recmmd.productID|sef_path:'product':$catalog}" caption="<img src='{$view_public_path}/uploads/catalog/product/thumb/{$recmmd.productImage}' width='200' height='200'  alt='{$recmmd.productTitle|truncate:50}'/>"}
                    </figure>
			</div>
           
			<div class="product-info-block ">
                <h2 class="productTitle h6">{html->anchor href="{$recmmd.productID|sef_path:'product':$catalog}" class="text-dark mb-1 d-block" caption="{$recmmd.productTitle|truncate:50}"}</h2>
                 <div> {if $recmmd.sellAsBatch eq 'Yes'}<span class="font-small text-medium">{$language.lblSetof}
                                        {$recmmd.qtyPerBatch}   {$recmmd.batchType} </span>{/if} </div>
				<div class="price-box">
		{if $recmmd.productOptionRegularPrice neq $recmmd.offerPrice}
				<del>{$recmmd.productOptionRegularPrice|price:'':$recmmd.productDefaultCurrency:$currentCurrencyID}</del> 
				{/if}
				<strong>{$recmmd.offerPrice|price:'':$recmmd.productDefaultCurrency:$currentCurrencyID}</strong>
				</div>
                <!-- review starts -->
            {if $recmmd['productReviewsCount']|default:0 > 0}
            <div class="ratingBx">
					{assign var="avgRating" value=$recmmd['ratingTotal']/$recmmd['productReviewsCount']}
					{assign var="avgRating" value=$avgRating|number_format:1}
				<div class="starRating"><div class="rated" style="width:{$avgRating * 20}%"></div></div>[ {$recmmd['productReviewsCount']} {$language.lblReviews}  ]
			 </div>{/if}
             <!-- review ends -->
			</div>
			
             
	      </div>   
		
		{/foreach}
	</div>
	</div>
	
{else}
	<div class="warning">{$language.lblNoRecommendationsFound}</div> 
{/if}