<!-- Via.Delivery Shopify Plus Script 1 -->
<script>
document.addEventListener("DOMContentLoaded", () => {
if (Shopify.Checkout.step != "thank_you") return;
const shippingRate = window.Shopify.checkout.shipping_rate;
if (!(shippingRate && (
shippingRate.title.includes("Via.Delivery")
||
shippingRate.handle.includes("Via.Delivery")
) && !shippingRate.handle.includes("sales_channel")
)) return;
const map = document.querySelector(".map__iframe");
if (map) {
map.src = "about:blank";
map.style.height = "400px";
}
const orderUpdates = document.querySelector("[data-order-updates]");
if (orderUpdates) orderUpdates.remove();
});
</script>
<!-- End of Via.Delivery Shopify Plus Script 1 -->
<!-- Via.Delivery Shopify Plus Script 2 -->
{% include 'pickup-point-modal' %}
<script src="https://widget.viadelivery.pro/shopify-plus-scripts/assets/pickup-point.js"></script>
<!-- End of Via.Delivery Shopify Plus Script 2 -->