{if $resultRelatedProducts|count > 0}	
    <div id="related-product">
		{if $type=='related'}
			<h3>{$language.lblRelatedProductsTitle}</h3>
		{else if $type=='upsell'}
			<h3>{$language.lblUpsellProducts}</h3>	
		{else if $type=='crossel'}
			<h3>{$language.lblCrossProducts}</h3>
		{/if}
       <div class="rightBx recent-view">
			{assign var="relatedProductCount" value=$resultRelatedProducts|count}
			{foreach $resultRelatedProducts as $RelatedProductProduct key="key"}			
			<div class="seprator clearfix {if $key eq $relatedProductCount-1}noborder{/if}">
					<div class="tumbImgbx">
						{html->anchor href="{$RelatedProductProduct.productID|sef_path:'product'}" caption="<img src='{$view_public_path}/uploads/catalog/product/small/{$RelatedProductProduct.productImage}' width='50' />"}
					</div>
					<div class="tumbimgCaption">
					{html->anchor href="{$RelatedProductProduct.productID|sef_path:'product'}" caption="{$RelatedProductProduct.productTitle|truncate:30}"}<br>
					{if $RelatedProductProduct.productOptionRegularPrice neq $RelatedProductProduct.offerPrice}
					<del>{$RelatedProductProduct.productOptionRegularPrice|price:'':$RelatedProductProduct.productDefaultCurrency:$RelatedProductProduct.productDefaultCurrency}</del> 
					{/if}
					<span>{$RelatedProductProduct.offerPrice|price:'':$RelatedProductProduct.productDefaultCurrency:$RelatedProductProduct.productDefaultCurrency}</span>
				</div>
				</div>
			{/foreach}
			</div>	
    </div>
	{/if}
	
	
	
	