templates/bundles/SyliusShopBundle/Product/show.html.twig line 67

Open in your IDE?
  1. {% extends '@SyliusShop/layout.html.twig' %}
  2. {% block content %}
  3. {% include '@SyliusShop/Product/Show/_breadcrumb.html.twig' %}
  4. <div class="ui hidden divider"></div>
  5. <div class="ui two column stackable grid">
  6. <div class="four wide column">
  7. {{ sonata_block_render_event('sylius.shop.product.show.before_images', {'product': product}) }}
  8. {% include '@SyliusShop/Product/Show/_images.html.twig' %}
  9. {{ sonata_block_render_event('sylius.shop.product.show.after_images', {'product': product}) }}
  10. </div>
  11. <div class="column">
  12. {% include '@SyliusShop/Product/Show/_header.html.twig' %}
  13. {{ sonata_block_render_event('sylius.shop.product.show.after_product_header', {'product': product}) }}
  14. {# avis #}
  15. {#
  16. {% include '@SyliusShop/Product/Show/_reviews.html.twig' %}
  17. {{ sonata_block_render_event('sylius.shop.product.show.after_reviews', {'product': product}) }}
  18. #}
  19. <div class="ui stackable grid">
  20. <div class="four wide column">
  21. {# Price #}
  22. {#
  23. {% if not product.variants.empty() %}
  24. {% include '@SyliusShop/Product/Show/_price.html.twig' %}
  25. {% endif %}
  26. #}
  27. </div>
  28. {# avis #}
  29. {#
  30. <div class="twelve wide right aligned column">
  31. <span class="ui sub header">{{ product.code }}</span>
  32. </div>
  33. #}
  34. </div>
  35. {{ sonata_block_render_event('sylius.shop.product.show.after_price', {'product': product}) }}
  36. <div class="ui basic segment">
  37. <p>{{ product.shortDescription }}</p>
  38. </div>
  39. {{ sonata_block_render_event('sylius.shop.product.show.after_description', {'product': product}) }}
  40. {# Price #}
  41. {#
  42. {% if product.isConfigurable() and product.getVariantSelectionMethod() == 'match' and not product.variants.empty() %}
  43. {% include '@SyliusShop/Product/Show/_variantsPricing.html.twig' with {'pricing': sylius_product_variant_prices(product, sylius.channel)} %}
  44. {% endif %}
  45. #}
  46. {% include '@SyliusShop/Product/Show/_inventory.html.twig' %}
  47. <div class="ui hidden divider"></div>
  48. {# ADD CARD #}
  49. {#
  50. {{ sonata_block_render_event('sylius.shop.product.show.after_add_to_cart', {'product': product}) }}
  51. #}
  52. </div>
  53. </div>
  54. {{ sonata_block_render_event('sylius.shop.product.show.before_tabs', {'product': product}) }}
  55. {% include '@SyliusShop/Product/Show/_tabs.html.twig' %}
  56. {{ sonata_block_render_event('sylius.shop.product.show.before_associations', {'product': product}) }}
  57. {% include '@SyliusShop/Product/Show/_associations.html.twig' %}
  58. {% endblock %}
  59. {% block javascripts %}
  60. {{ parent() }}
  61. <script type="text/javascript">
  62. lightbox.option({
  63. 'albumLabel': '{{ 'sylius.lightbox.image_album_label'|trans|escape('js') }}'
  64. });
  65. </script>
  66. {% endblock %}