custom/plugins/CogiThemeTulip/src/Resources/views/storefront/component/product/card/action.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/component/product/card/action.html.twig' %}
  2. {% block component_product_box_action_inner %}
  3. {% if app.request.attributes.get('theme-name') != 'CogiThemeTulip' %}
  4. {{ parent() }}
  5. {% else %}
  6.     {% if not shopware.config.CogiThemeTulip.config.switchBasketDetailButtons %}
  7.         {% if not shopware.config.CogiThemeTulip.config.noBasketButton %}
  8.             {{ parent() }}
  9.         {% endif %}
  10.     {% else %}
  11.         <div class="product-action">
  12.             {% if shopware.config.CogiThemeTulip.config.useQuickView %}
  13.                 <button
  14.                     class="btn btn-block btn-light product-details-button cogi-quickview-btn"
  15.                     data-toggle="modal"
  16.                     data-url="/quickview/{{ id }}"
  17.                     data-modal-class="cogi-quickview"
  18.                     title="{{ "cogi.theme.tulip.quickview"|trans }}">
  19.                     {{ "cogi.theme.tulip.quickview"|trans }}
  20.                 </button>
  21.             {% else %}
  22.                 <a href="{{ seoUrl('frontend.detail.page', {'productId': product.id}) }}"
  23.                    class="btn btn-block btn-light"
  24.                    title="{{ "listing.boxProductDetails"|trans|striptags }}">
  25.                     {{ "listing.boxProductDetails"|trans|sw_sanitize }}
  26.                 </a>
  27.             {% endif %}
  28.         </div>
  29.     {% endif %}
  30. {% endif %}
  31. {% endblock %}