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

Open in your IDE?
  1. {##
  2.  # Product low stock label
  3.  #
  4.  # @ListChild (list="itemsList.product.grid.customer.info", weight="31")
  5.  # @ListChild (list="itemsList.product.list.customer.info", weight="2000")
  6.  #}
  7. {% if this.get('product').isShowStockWarning() and this.get('product').getAvailableAmount() > 0 %}
  8.   <span class="product-items-available low-stock {% if this.canBeBackordered() %}can-be-backordered{% endif %}">
  9.     {{ t('Only X left in stock', {'X': this.get('product').getAvailableAmount()}) }}.
  10.     {% include 'modules/QSL/Backorder/product/details/stock/stock-message.twig' %}
  11.   </span>
  12. {% endif %}
  13. {% if this.get('product').isShowStockWarning() and this.get('product').getAvailableAmount() == 0 and this.get('product').getIsAvailableForBackorder() %}
  14.   <span class="product-items-available low-stock can-be-backordered">
  15.     {% include 'modules/QSL/Backorder/product/details/stock/stock-message.twig' %}
  16.   </span>
  17. {% endif %}