custom/plugins/ProcLivePrice/src/Resources/views/storefront/component/buy-widget/buy-widget.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/component/buy-widget/buy-widget.html.twig' %}
  2.  {% block buy_widget_price %}
  3.      {% if context.customer %}
  4.          {{ parent() }}
  5.      {% endif %}
  6.  {% endblock %}
  7. {% block buy_widget_tax %}
  8.     {% if context.customer %}
  9.         {{ parent() }}
  10.     {% endif %}
  11. {% endblock %}
  12. {% block buy_widget_tax_link %}
  13.     {% set pickupOnly = context.customer.customFields.custom_sap_pickup %}
  14.     {% set freeShippingThreshold = pickupOnly ? 0 : context.context.extensions.deliveryInformations['freeShippingThreshold']  %}
  15.     {% if freeShippingThreshold > 0 %}
  16.         <div class="product-detail-delivery-costs-container">
  17.             <p class="product-detail-delivery-costs">
  18.                 <a  class="product-detail-delivery-costs-link"
  19.                     href="{{ path('frontend.cms.page',{ id: config('core.basicInformation.shippingPaymentInfoPage') }) }}"
  20.                     title="{{ taxText }}"
  21.                 {{ dataBsToggleAttr }}="modal"
  22.                 data-url="{{ path('frontend.cms.page',{ id: config('core.basicInformation.shippingPaymentInfoPage') }) }}">
  23.                 {{ "proc.productDetail.freeShippingThreshold"|trans({
  24.                     '%freeShippingThreshold%' : context.context.extensions.deliveryInformations['freeShippingThreshold']|floatval|currency
  25.                 })|raw}}
  26.                 </a>
  27.             </p>
  28.         </div>
  29.     {% elseif pickupOnly %}
  30.         {{ "proc.productDetail.taxInfo"|trans }}
  31.     {% else %}
  32.         {{ parent() }}
  33.     {% endif %}
  34. {% endblock %}