custom/plugins/ProcLivePrice/src/Resources/views/storefront/layout/footer/footer.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/layout/footer/footer.html.twig' %}
  2. {% block layout_footer_vat %}
  3.     {% set pickupOnly = context.customer.customFields['custom_shippingCosts_pickupOnly'] %}
  4.     {% set freeShippingThreshold = pickupOnly ? 0 : context.context.extensions.deliveryInformations['freeShippingThreshold']  %}
  5.     {% set defaultThreshold = constant('Proc\\ProcOrderSimulate\\Subscriber\\OrderSimulateSubscriber::EUR_THRESHOLD') %}
  6.     {% if freeShippingThreshold > 0 %}
  7.         <div class="footer-vat">
  8.             {% if context.taxState == "gross" %}
  9.                 <p>
  10.                     {{ "proc.footer.includeVatAndFreeShippingThreshold"|trans({
  11.                         '%freeShippingThreshold%': freeShippingThreshold|default(defaultThreshold)|floatval|currency,
  12.                         '%url%': path('frontend.cms.page',
  13.                             { id: config('core.basicInformation.shippingPaymentInfoPage'),})
  14.                     })|raw }}
  15.                 </p>
  16.             {% else %}
  17.                 <p>
  18.                     {{ "proc.footer.excludeVatAndFreeShippingThreshold"|trans({
  19.                         '%freeShippingThreshold%': freeShippingThreshold|default(defaultThreshold)|floatval|currency,
  20.                         '%url%': path('frontend.cms.page',{ id: config('core.basicInformation.shippingPaymentInfoPage'),})
  21.                     })|raw }}
  22.                 </p>
  23.             {% endif %}
  24.         </div>
  25.     {% else %}
  26.         <div class="footer-vat">
  27.             {% if context.taxState == "gross" %}
  28.                 <p>
  29.                     {{ "footer.includeVat"|trans({
  30.                         '%url%': path('frontend.cms.page',{ id: config('core.basicInformation.shippingPaymentInfoPage') })
  31.                     })|raw }}
  32.                 </p>
  33.             {% else %}
  34.                 <p>
  35.                     {{ "footer.excludeVat"|trans({
  36.                         '%url%': path('frontend.cms.page',{ id: config('core.basicInformation.shippingPaymentInfoPage') })
  37.                     })|raw }}
  38.                 </p>
  39.             {% endif %}
  40.         </div>
  41.     {% endif %}
  42. {% endblock %}