{assign var="productOptionQuantity" value=$option['productOptionQuantity']}
{assign var="showQuantityAvailable" value=$option['showQuantityAvailable']}
{assign var="InventoryTrackLevel" value=$option['InventoryTrackLevel']}


<div class="clearfix">
  {form->hidden name="selectedProductOption" value=$option.productOptionID}	
  
 {*<!--------------------------------- Buy now section start here --------------------------------------------------->*}

   <div class="margin-top margin-bottom">
    {assign var="redeemslotID" value=$redeemslotID|default:''}
    {assign var="quantitySum" value=$option.productOptionQuantity+$option.productQuantityUnlimited}
    {if $quantitySum<1}
    <div class="notify">
      {if $InventoryTrackLevel=='Product'}
      <span class="soldout">{$language.lblOutOfStock|upper}</span>
      {else}
      <div class="soldout message_error error-xs"  id="buynow-btn">
       {assign var="relData" value=$productID|cat:"-"|cat:$option.productOptionID|cat:$redeemslotID}
        {$language.lblCombinationNotFound|upper}
      </div>
      <div id="combination-not-avilable" class="message_error error-xs" style=" display:none;">          
        {$language.lblCombinationNotFound|upper}
      </div>
      <div id="stock-not-avilable" class="soldout font-sml curve-r5" style="display:none;">          
        {$language.lblCombinationHaveNoQty|upper}
      </div>
      {/if}
    </div>
    {else}
    <div class="soldout buyNow-fixedBlock row"  id="buynow-btn">
      {assign var="relData" value=$productID|cat:"-"|cat:$option.productOptionID|cat:$redeemslotID}
   
         <div class="col-xs-6">{html->anchor class="buynow  btn btn-primary buynow_link btn-lg btn-block buynowCart" caption=$language.lblBuyNow rel=$relData}
      {html->anchor class="buynow  btn btn-primary buynow_link btn-lg btn-block buynowCart buttonDisable"  id="completeLoader" caption=$language.lblBuyNow disabled="disabled" style="display:none"}
        </div>
         <div class="col-xs-6">
      {if $wishlistProducts|default:'' == 0}
								{html->anchor href="" class="wish-list icon-wish-list btn btn-default btn-lg btn-block" id ="wish-req" title="{$language.lblAddToWishlist}" wishlist="0" productid=$productID user=$regUserID}
							{/if}
							<span id="wishlist-div" {if $wishlistProducts|default:'' == 0}class="hide"{/if}>
								{html->anchor href="user/wishlist/" id ="wish-added" class="wish-list btn btn-default icon-wish-list-fill btn-lg btn-block"  title="{$language.lblAddedTo}  {$language.lblWishlist}"}
							</span>
        </div>
     
    </div>
    
    <div id="stock-not-avilable" class=" font-sml curve-r5" style="display:none;">
      <h6>{$language.lblCombinationHaveNoQty}</h6>
    </div>
    <div id="combination-not-avilable" class="message_error error-xs" style=" display:none;">          
      {$language.lblCombinationNotFound|upper}
    </div>
    {/if}
  </div>
    {*<!--------------------------------- Buy now section Ends here --------------------------------------------------->*}

</div>