custom/plugins/SteincoTheme/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 not shopChannel %}
  4.         <div class="product-action">
  5.             {{ block('page_product_detail_product_buy_button') }}
  6.         </div>
  7.     {%  else %}
  8.         {{ parent() }}
  9.     {%  endif %}
  10. {% endblock %}
  11. {% block component_product_box_action_form %}
  12.     {% if not shopChannel %}
  13.         {% block component_product_box_action_buy_redirect_input %}
  14.             {{ parent() }}
  15.         {% endblock %}
  16.         {% block page_product_detail_buy_product_buy_info %}
  17.             {{ parent() }}
  18.         {% endblock %}
  19.         {% block page_product_detail_product_buy_meta %}
  20.             {{ parent() }}
  21.         {% endblock %}
  22.         {{ block('page_product_detail_product_buy_button') }}
  23.     {%  else %}
  24.         {{  parent() }}
  25.     {% endif %}
  26. {% endblock %}
  27. {% block page_product_detail_product_buy_button %}
  28.     {% if not shopChannel %}
  29.         {% set shopUrlHALLO = shop_url_for_product(product.id, context.id, context.languageId) %}
  30.         {% set shopUrl = null %}
  31.         {% if shopUrl %}
  32.             <a class="scsw-product-buy-online" href="{{  shopUrl }}" title="{{ "steinco.buyOnline"|trans|sw_sanitize }}">
  33.                 <button style="width: 100%; border: none; text-align: right; padding: 3px 1rem; color=#cdd5dc; font-weight: bold; ">
  34.                     {% sw_icon 'cart' style { 'color': 'sc-blue'} %}<span>{{ "steinco.buyOnline"|trans|sw_sanitize }}</span>
  35.                 </button>
  36.             </a>
  37.         {%  else %}
  38.             {% sw_include '@Storefront/storefront/component/product/card/wishlist.html.twig' with {
  39.                 showText: true,
  40.                 size: 'md',
  41.                 productId: product.id
  42.             } %}
  43.         {% endif %}
  44.     {%  else %}
  45.         {{  parent() }}
  46.     {% endif %}
  47. {% endblock %}