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

Open in your IDE?
  1. {##
  2.  # Product stock
  3.  #}
  4. <div class="product-stock {{ this.getFingerprint() }}">
  5.   {% if this.getItemsInCart() %}
  6.     <p class="product-added-note">
  7.       <i class="icon-ok-mark"></i>
  8.       {{ this.getItemsInCartMessage() | raw}}
  9.     </p>
  10.   {% endif %}
  11.   {% if this.isInStock() %}
  12.     <span class="stock-level product-in-stock">
  13.       {% if this.isShowStockWarning() %}
  14.         <span class="product-items-available low-stock">{{ t('Only X left in stock', {'X': this.getAvailableAmount()}) }}</span>
  15.       {% else %}
  16.         <span class="in-stock-label">{{ t('In stock') }}</span>
  17.         <span class="product-items-available">({{ t('X items available', {'count': this.getAvailableAmount()}) }})</span>
  18.       {% endif %}
  19.     </span>
  20.   {% else %}
  21.     {% if this.isOutOfStock() %}
  22.       <span class="stock-level product-out-of-stock">{{ this.getOutOfStockMessage() }}</span>
  23.     {% endif %}
  24.   {% endif %}
  25.   {{ widget_list('product.stock.info') }}
  26. </div>