templates/bundles/SyliusShopBundle/Product/Show/_inventory.html.twig line 1

Open in your IDE?
  1. {% if product.variants.empty() or product.simple and not sylius_inventory_is_available(product.variants.first) %}
  2. {% include '@SyliusShop/Product/Show/_outOfStock.html.twig' %}
  3. {% else %}
  4. {{ render(url('sylius_shop_partial_cart_add_item', {'template': '@SyliusShop/Product/Show/_addToCart.html.twig', 'productId': product.id})) }}
  5. {% endif %}