Jump to content

Edit History

DARKF3D3

DARKF3D3

/templates/checkout/_partials/cart-detailed-product-line.tpl

    <!-- availability -->
    <div class="cart-product-availability">
      {if $product.stock_quantity<=0}
	<span class="product-not-available"><i class="icon-times"></i> Out of stock</span>
      {elseif $product.stock_quantity < $product.quantity}
	<span class="product-insufficient-stock"><i class="icon-exclamation"></i> Only {$product.stock_quantity} available</span>
      {else}
	<span class="product-available"><i class="icon-check"></i> Available</span>
      {/if}
    </div>

 

DARKF3D3

DARKF3D3

From line 61 you should have this:

   {block name='product_availability'}
      <span id="product-availability">
        {if $product.show_availability && $product.availability_message}
          {if $product.availability == 'available'}
            <i class="material-icons rtl-no-flip product-available">&#xE5CA;</i>
          {elseif $product.availability == 'last_remaining_items'}
            <i class="material-icons product-last-items">&#xE002;</i>
          {else}
            <i class="material-icons product-unavailable">&#xE14B;</i>
          {/if}
          {$product.availability_message}
        {/if}
      </span>
    {/block}

You can replace it with:

    {block name='product_availability'}
      <span id="product-availability">
        {if $product.show_availability && $product.availability_message}
	  {if $product.stock_quantity<=0}
	    <span style="font-weight:700;color:red;">Out of stock</span>
	  {elseif $product.stock_quantity < $product.quantity}
	    <span style="font-weight:700;color:orange;">Non available in the desidered quantity</span>
	  {else}
	    <span style="font-weight:700;color:green;">Available</span>
	  {/if}
      </span>
    {/block}

 

×
×
  • Create New...