stack/src/components/sections/product-variants-section/product-variants-section.twig line 1

Open in your IDE?
  1. {% set com_props = props %}
  2. {% set section_props = {
  3.   name: "s-product-variants",
  4.   extra_class: props.extra_class,
  5.   is_container: props.is_container,
  6.   spacing: props.spacing,
  7. } %}
  8. {% embed "@Components/base-section/base-section.twig" with {props: section_props} %}
  9.   {% block content %}
  10.     {% if com_props.header %}
  11.       {% include "@Components/base-header/base-header.twig" with {props: com_props.header} %}
  12.     {% endif %}
  13.     {% if com_props.filter %}
  14.       {% include "@Components/forms/filtration-form/filtration-form.twig" with {props: com_props.filter} %}
  15.     {% endif %}
  16.     {% if com_props.table %}
  17.       {% include "@Components/product-detail/variants-table/variants-table.twig" with {props: {
  18.         items: com_props.table.items,
  19.         limit: com_props.limit
  20.       }} %}
  21.     {% endif %}
  22.     {% if com_props.pagination %}
  23.       <div class="s-product-variants__pagination d-flex justify-content-center justify-content-md-end mt-2 --js-pagination-wrap">
  24.         {% include "@Components/pagination/pagination.twig" with {props: com_props.pagination} %}
  25.       </div>
  26.     {% endif %}
  27.   {% endblock %}
  28. {% endembed %}