templates/ECommerce/App/Product/partials/product_amount.html.twig line 1

Open in your IDE?
  1. {% trans_default_domain 'ECommerceBundle' %}
  2. <div class="row align-items-center"
  3. data-depot-quantity="{{ depotProduct.quantity }}"
  4. data-depot="{{ depotProduct.depot.name }}">
  5. {#- STOCK INFO, WAREHOUSE -#}
  6. {% if depotProduct.depot.country is same as 'RS' %}
  7. <div class="mr-4">
  8. <p>{{ 'product.now'|trans }}</p>
  9. </div>
  10. {% else %}
  11. <div class="mr-4">
  12. <p>{{ 'product.for-later-shipment'|trans }}</p>
  13. </div>
  14. {% endif %}
  15. {# <div class="col-product-stock-info">#}
  16. {# <strong>{{- 'product.piece'|trans( {'%count%': depotProduct.quantity})|upper -}}</strong>#}
  17. {# </div>#}
  18. {#- ADD TO CART -#}
  19. <div class="col-product-add-to-cart">
  20. {% if is_granted('ROLE_CLIENT') %}
  21. {% if depotProduct.price > 0 %}
  22. {% include 'ECommerce/App/Product/form_add_to_cart.html.twig' %}
  23. {% else %}
  24. <a class="btn btn-link float-right ml-2 mr-2"
  25. data-toggle="tooltip"
  26. data-html="true"
  27. {% if app.user and app.user.client %}
  28. title="call: {{ app.user.client.firm.phones|first }}"
  29. href="tel:{{ app.user.client.firm.phones|first }}"
  30. {% endif %}
  31. >
  32. <i class="material-icons">call</i>
  33. </a>
  34. {% endif %}
  35. {% else %}
  36. {% include 'ECommerce/App/Product/form_add_to_individual_order.html.twig' %}
  37. {% endif %}
  38. </div>
  39. </div>