custom/plugins/SwagCmsExtensions/src/Resources/views/storefront/component/product/card/box-standard.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/component/product/card/box-standard.html.twig' %}
  2. {% set quickview = block.extensions.swagCmsExtensionsQuickview %}
  3. {% set productIsActive = product is not null and product.active %}
  4. {% set quickviewIsActive = (quickview is not null and quickview.active) or config('SwagCmsExtensions.config.enableSearchQuickview') %}
  5. {% set quickviewOptions = {
  6.     productId: product.id,
  7.     sectionId: block.sectionId
  8. } %}
  9. {% block component_product_box %}
  10.     {% if productIsActive and quickviewIsActive %}
  11.         <div data-swag-cms-extensions-quickview-box="true"
  12.              data-swag-cms-extensions-quickview-box-options="{{ quickviewOptions|json_encode }}">
  13.             {{ parent() }}
  14.         </div>
  15.     {% else %}
  16.         {{ parent() }}
  17.     {% endif %}
  18. {% endblock %}