vendor/dvdw/directory/src/Resources/views/storefront/component/shops/card-actions.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.     <div class="row product-action">
  4.         <div class="col-7 pr-2 pl-0">
  5.             {% set showPromoPhase = context.extensions.currentDvdwEvent.phase === 'phase-promo-show'   %}
  6.             {% set usePromoPhase = context.extensions.currentDvdwEvent.phase === 'phase-promo-use'   %}
  7.             {% if type === 'gold' and (showPromoPhase or usePromoPhase) %}
  8.                 <button class="btn quick-view-button"
  9.                         data-toggle="modal"
  10.                         data-url="{{ path('widgets.quickview.minimal', { 'productId': id }) }}"
  11.                         data-modal-class="quickview-webshop-products">
  12.                     {{ "listingItem.viewProducts"|trans|sw_sanitize }}
  13.                 </button>
  14.             {% else %}
  15.                 <a href="{{ product.customFields.dvdw_product_fields_website }}"
  16.                    target="_blank"
  17.                    class="product-link product-description"
  18.                    title="{{ "listingItem.goToShop"|trans }}">
  19.                     {{ "listingItem.goToShop"|trans }}
  20.                     {% sw_icon 'external' %}
  21.                 </a>
  22.             {% endif %}
  23.         </div>
  24.         <div class="col-4 p-0 product-rating-wrapper">
  25.             <div class="product-categories">
  26.                 {% if product.categories %}
  27.                     {% sw_include '@DvdwDirectory/storefront/component/product/custom-product-category.html.twig' ignore missing with {
  28.                         minimal: true,
  29.                         product: product
  30.                     } %}
  31.                 {% endif %}
  32.             </div>
  33.         </div>
  34.     </div>
  35. {% endblock %}