{% sw_extends '@Storefront/storefront/component/product/card/action.html.twig' %}
{% block component_product_box_action_inner %}
<div class="row product-action">
<div class="col-7 pr-2 pl-0">
{% set showPromoPhase = context.extensions.currentDvdwEvent.phase === 'phase-promo-show' %}
{% set usePromoPhase = context.extensions.currentDvdwEvent.phase === 'phase-promo-use' %}
{% if type === 'gold' and (showPromoPhase or usePromoPhase) %}
<button class="btn quick-view-button"
data-toggle="modal"
data-url="{{ path('widgets.quickview.minimal', { 'productId': id }) }}"
data-modal-class="quickview-webshop-products">
{{ "listingItem.viewProducts"|trans|sw_sanitize }}
</button>
{% else %}
<a href="{{ product.customFields.dvdw_product_fields_website }}"
target="_blank"
class="product-link product-description"
title="{{ "listingItem.goToShop"|trans }}">
{{ "listingItem.goToShop"|trans }}
{% sw_icon 'external' %}
</a>
{% endif %}
</div>
<div class="col-4 p-0 product-rating-wrapper">
<div class="product-categories">
{% if product.categories %}
{% sw_include '@DvdwDirectory/storefront/component/product/custom-product-category.html.twig' ignore missing with {
minimal: true,
product: product
} %}
{% endif %}
</div>
</div>
</div>
{% endblock %}