custom/plugins/MyPaShopware/src/Resources/views/storefront/page/checkout/_page.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/checkout/_page.html.twig' %}
  2. {% block base_head %}
  3.     {{ parent() }}
  4.     <script src="{{ page.extensions.myparcel.deliveryOptionsCdnUrl }}"></script>
  5. {% endblock %}
  6. {% block base_content %}
  7.     {% set translations = {
  8.         "addressNotFound":'myparcel.shipping_selector.addressNotFound' | trans,
  9.         "cc":'myparcel.shipping_selector.cc' | trans,
  10.         "city":'myparcel.shipping_selector.city' | trans,
  11.         "closed":'myparcel.shipping_selector.closed' | trans,
  12.         "deliveryEveningTitle":'myparcel.shipping_selector.deliveryEveningTitle' | trans,
  13.         "deliveryMorningTitle":'myparcel.shipping_selector.deliveryMorningTitle' | trans,
  14.         "deliveryStandardTitle":'myparcel.shipping_selector.deliveryStandardTitle' | trans,
  15.         "deliveryTitle":'myparcel.shipping_selector.deliveryTitle' | trans,
  16.         "free":'myparcel.shipping_selector.free' | trans,
  17.         "from":'myparcel.shipping_selector.from' | trans,
  18.         "loadMore":'myparcel.shipping_selector.loadMore' | trans,
  19.         "number":'myparcel.shipping_selector.number' | trans,
  20.         "onlyRecipientTitle":'myparcel.shipping_selector.onlyRecipientTitle' | trans,
  21.         "openingHours":'myparcel.shipping_selector.openingHours' | trans,
  22.         "options":'myparcel.shipping_selector.options' | trans,
  23.         "packageTypeDigitalStamp":'myparcel.shipping_selector.packageTypeDigitalStamp' | trans,
  24.         "packageTypeMailbox":'myparcel.shipping_selector.packageTypeMailbox' | trans,
  25.         "pickUpFrom":'myparcel.shipping_selector.pickUpFrom' | trans,
  26.         "pickupLocationsListButton":'myparcel.shipping_selector.pickupLocationsListButton' | trans,
  27.         "pickupLocationsMapButton":'myparcel.shipping_selector.pickupLocationsMapButton' | trans,
  28.         "pickupTitle":'myparcel.shipping_selector.pickupTitle' | trans,
  29.         "postalCode":'myparcel.shipping_selector.postalCode' | trans,
  30.         "retry":'myparcel.shipping_selector.retry' | trans,
  31.         "signatureTitle":'myparcel.shipping_selector.signatureTitle' | trans,
  32.         "mondayDeliveryTitle":'myparcel.shipping_selector.mondayDeliveryTitle' | trans,
  33.         "wrongnumberPostalCode":'myparcel.shipping_selector.wrongnumberPostalCode' | trans,
  34.         "beDeliveryStandardTitle":'myparcel.shipping_selector.beDeliveryStandardTitle' | trans,
  35.         "beDeliveryTitle":'myparcel.shipping_selector.beDeliveryTitle' | trans,
  36.         "saturdayDeliveryTitle":'myparcel.shipping_selector.saturdayDeliveryTitle' | trans,
  37.         "wrongPostalCodeCity":'myparcel.shipping_selector.wrongPostalCodeCity' | trans,
  38.         "refreshMessage":'myparcel.shipping_selector.refreshMessage' | trans,
  39.     } %}
  40.     {% set deliveryOptionsPluginOptions =
  41.         {
  42.             urlAddToCart:path('frontend.checkout.myparcel.add-to-cart'),
  43.             urlSetPackageType:path('frontend.checkout.myparcel.set-package-type'),
  44.             config:page.extensions.myparcel.config,
  45.             translations:page.extensions.myparcel.config.translationsFromSettings,
  46.             address: {
  47.             cc: page.cart.deliveries.elements[0].location.country.iso,
  48.             city: page.cart.deliveries.elements[0].location.address.city,
  49.             postalCode: page.cart.deliveries.elements[0].location.address.zipcode,
  50.             street:page.cart.deliveries.elements[0].location.address.street
  51.         }
  52.         } %}
  53.     {% block myparcel_component_address_form_alerts %}
  54.         <div id="myparcel-alert" hidden="hidden">
  55.             {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  56.                 content: '',
  57.                 type: "warning"
  58.             } %}
  59.         </div>
  60.     {% endblock %}
  61.     {{ parent() }}
  62. {% endblock %}