modules/QSL/Backorder/templates/web/customer/modules/QSL/Backorder/product/details/stock/body.twig line 1

Open in your IDE?
  1. {##
  2.  # Product stock (Product details page)
  3.  #}
  4. {% if this.isOutOfStock() and this.canBeBackordered() %}
  5.   <div class="product-stock {{ this.getFingerprint() }}">
  6.     {% if this.getItemsInCart() %}
  7.       <p class="product-added-note">
  8.         <i class="icon-ok-mark"></i>
  9.         {{ this.getItemsInCartMessage() | raw}}
  10.       </p>
  11.     {% endif %}
  12.     <span class="stock-level product-out-of-stock">
  13.       {% include 'modules/QSL/Backorder/product/details/stock/stock-message.twig' %}
  14.     </span>
  15.     {{ widget_list('product.stock.info') }}
  16.   </div>
  17.   <div class="clearfix"></div>
  18. {% elseif this.isShowStockWarning() and this.canBeBackordered() %}
  19.   <div class="product-stock {{ this.getFingerprint() }}">
  20.     {% if this.getItemsInCart() %}
  21.       <p class="product-added-note">
  22.         <i class="icon-ok-mark"></i>
  23.         {{ this.getItemsInCartMessage() | raw}}
  24.       </p>
  25.     {% endif %}
  26.     <span class="stock-level product-in-stock">
  27.       <span class="product-items-available low-stock can-be-backordered">
  28.         {{ t('Only X left in stock', {'X': this.getAvailableAmount()}) }}.
  29.         {% include 'modules/QSL/Backorder/product/details/stock/stock-message.twig' %}
  30.       </span>
  31.     </span>
  32.     {{ widget_list('product.stock.info') }}
  33.   </div>
  34.   <div class="clearfix"></div>
  35. {% else %}
  36.   {% include 'product/details/stock/body.twig' %}
  37. {% endif %}