{if $resBuyboxProd|count>0}
    {if $type neq 'viewmore'}
        <ul class="hd row p-3 m-0 list-unstyled">
                <li class="col-4">{$language.lblSellerInfo}</li>
                <li class="col-2">{$language.lblRating}</li>
                <li class="col-2">{$language.lblDeliveryTime}</li>
                <li class="col-4">{$language.lblPriceCap}</li>
            </ul>
        <div class="bd">
        {/if}
        {foreach $resBuyboxProd as $buyBoxProd}
            {assign var="newProductToJs" value=${"productsToJs_"|cat:{$buyBoxProd['productID']}}} 
            {assign var="productDefaultCurrency" value=$buyBoxProd.productDefaultCurrency}
            <script type="text/javascript">
                {if $newProductToJs|default:''!=''}
                var products_{$buyBoxProd['productID']} = {$newProductToJs};
                {/if}
            </script>
            {if $buyBoxProd['busRating'].ratingTotal>0 && $buyBoxProd['busRating'].ratingCount>0}
                {assign var="avgRating" value=$buyBoxProd['busRating'].ratingTotal/$buyBoxProd['busRating'].ratingCount}
                {assign var="avgRating" value=$avgRating|round:1}
            {else}
                {assign var="avgRating" value=0}
            {/if}
             <ul class="row border-bottom m-0 p-3 list-unstyled">
                        <li class="col-sm-4 col-12 sellersinfo buy-col pb-2 pb-md-0">
                            <h4 class="ttl h5 font-rglr text-dark">{html->anchor href="/store/{$buyBoxProd['businessKey']}/" history="yes" class="business-name text-muted" caption=$buyBoxProd['businessName'] title="{$buyBoxProd['businessName']}"}</h4> 
                                    <div class="cod-avail text-secondary font-bold h6">
                                        {if $cod_available eq 'Yes'}
                                            {$language.lblCODAvailable} 
                                        {else}
                                            {$language.lblCODNAvailable}
                                        {/if} 
                                    </div>
                                    
                                    <div class="m-3">
                                        {if $buyBoxProd.productReturnable eq 'Yes' && $buyBoxProd.productReturnPeriod>0}
                                        {$buyBoxProd.productReturnPeriod}   {$language.lbldaysReturnPolicy}
                                        {else}
                                        {$language.lblNoReturnPolicyAvailable}
                                        {/if}
                                    </div>
                        </li>
                        <li class="col-sm-2 col-12 buy-col pb-2 pb-md-0">
                           {if $buyBoxProd['busRating'].ratingCount>0}
                            <div class="starRating">
                                <div class="rated" style="width:{13 * $avgRating}px;"></div>
                            </div>
                                <div class="rate-text">{$language.lblBasedOn} {$buyBoxProd['busRating'].ratingCount} {$language.lblRatingsNew}</div>
                                {/if}
                        </li>
                        <li class="col-sm-2 col-12 buy-col pb-2 pb-md-0">
                            {if $buyBoxProd['dispatchTime'] neq ''}
                                {$language.lblDispatchedIn} {$buyBoxProd['dispatchTime']} {$language.lblBusinessDays}
                            {else}
                                {$language.lblNoDispatchTime}
                            {/if}
                        </li>
                        <li class="col-sm-4 col-12">
                            <div class="row">
                                <div class="col-6">
                                        <div class="price">
                                            <h5 class="font-semibold pb-2">{$buyBoxProd.offerPrice|price:'':$productDefaultCurrency:$currentCurrencyID}</h5>
                                            {if $buyBoxProd.productOptionOfferDiscount > 0} 
                                            <span class="off offerPrice btn-secondary px-2 py-1">{$buyBoxProd.productOptionOfferDiscount}% off</span> 
                                            {/if}
                                            {if $buyBoxProd.offerPrice neq $buyBoxProd.productOptionRegularPrice}
                                                <div class="pt-3">
                                                    <del class="p-0">{$buyBoxProd.productOptionRegularPrice|price:'':$productDefaultCurrency:$currentCurrencyID}</del>
                                                </div>
                                            {/if}
                                        </div>
                                </div>
                                <div class="col-6">
                                        <div class="buyBlock float-right">
                                            {assign var="redeemslotID" value=$redeemslotID|default:''}
                                            {assign var="quantitySum" value=$buyBoxProd.productOptionQuantity+$buyBoxProd.productQuantityUnlimited}
                                            {assign var="InventoryTrackLevel" value=$buyBoxProd.InventoryTrackLevel}
                                            {if $quantitySum<1}
                                                <div class="notify">
                                                    {if $InventoryTrackLevel=='Product'}
                                                        <span class="soldout">{$language.lblOutOfStock|upper}</span>
                                                    {else}
                                                        <div class="mr-2 soldout"  id="buynow-btn">

                                                                {assign var="relData" value=$buyBoxProd.productID|cat:"-"|cat:$buyBoxProd.productOptionID|cat:$redeemslotID}
                                                                {$language.lblCombinationNotFound|upper}
                                                        </div>
                                                        <div id="combination-not-avilable" class="comb-nt-avail font-small" style=" display:none;">          
                                                            {$language.lblCombinationNotFound|upper}
                                                        </div>
                                                        <div id="stock-not-avilable" class="soldout font-small" style="display:none;">          
                                                            {$language.lblCombinationHaveNoQty|upper}
                                                        </div>
                                                    {/if}
                                                </div>  
                                            {else}
                                                <div class="grp-btn right algnV soldout"  id="buynow-btn">
                                           {assign var="relData" value=$buyBoxProd.productID|cat:"-"|cat:$buyBoxProd.productOptionID|cat:$redeemslotID}
                                                        {html->anchor buybox="yes" basepar="{$productID}" class="buynow_link btn-secondary btn btn-md mb-2" caption=$language.lblBuyNow rel=$relData title="{$language.lblBuyNow}"}
                                                </div>
                                                <div id="stock-not-avilable" class=" font-small" style="display:none;">          
                                                    <span class="soldout">{$language.lblCombinationHaveNoQty|upper}</span>
                                                </div>
                                                <div id="combination-not-avilable" class="comb-nt-avail font-small" style=" display:none;">          
                                                    {$language.lblCombinationNotFound|upper}
                                                </div>
                                            {/if}
                                        </div> 
                                </div>
                            </div>
                        </li>
                    </ul>
        {/foreach}
        {if $type neq 'viewmore'}
        </div>
    {/if}
{/if}   
