vendor/store.shopware.com/coewishlistsw6/src/Resources/views/storefront/component/wishlist/button/add-note.html.twig line 1

Open in your IDE?
  1. {% block component_wishlist_button_add_note %}
  2.     {% if modal is not defined %}
  3.         {% set modal = true %}
  4.     {% endif %}
  5.     {% if link is not defined %}
  6.         {% set link = path('frontend.wishlist.modal.note', { 'productId': product.id  }) %}
  7.     {% endif %}
  8.     {% if text is not defined %}
  9.         {% set text = 'coe-wishlist.detail.addToList'|trans %}
  10.     {% endif %}
  11.     {% if additionalClass is not defined %}
  12.         {% set additionalClass = '' %}
  13.     {% endif %}
  14.     <button type="button"
  15.             class="btn header-actions-btn {{ additionalClass }}"
  16.             style="margin-left:0;padding-left:0;"
  17.             {% if modal %}
  18.                 data-toggle="modal"
  19.                 data-backdrop="static"
  20.                 data-url="{{ link }}"
  21.                 data-pid="{{ product.id }}"
  22.             {% else %}
  23.                 onclick="window.location.href='{{ link }}'"
  24.             {% endif %}
  25.     >
  26.         {% sw_include "@CoeWishlistSw6/storefront/component/wishlist/icon.html.twig" with {
  27.             pack: 'solid'
  28.         } %} {{ 'coe-wishlist.detail.addToList'|trans }}
  29.         {# {% if config('CoeWishlistSw6.config.wishlistListingMarkAdded') %}
  30.             {% if product.getExtension("wishlist") and product.getExtension("wishlist").isInUserWishlist %}
  31.                 &#10003;
  32.             {% endif %}
  33.         {% endif %} #}
  34.     </button>
  35. {% endblock %}