From e9d419e187dcd73a35df00df87b59ee317bfdc6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20L=C3=B8vgaard?= Date: Mon, 8 Jun 2026 13:25:49 +0200 Subject: [PATCH 1/6] Rebuild the checkout chooser as a class-based ES module with overridable templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The shop pickup-point chooser was a closed IIFE that built all its markup in JavaScript, so none of it was unit-testable and a consumer could only customize it by forking the whole file. Rewrite public/js/setono-pickup-point.js as a native ES module (loaded with - + diff --git a/templates/shop/checkout/_pickup_point_templates.html.twig b/templates/shop/checkout/_pickup_point_templates.html.twig new file mode 100644 index 0000000..5837428 --- /dev/null +++ b/templates/shop/checkout/_pickup_point_templates.html.twig @@ -0,0 +1,58 @@ +{# + Overridable markup for the checkout pickup-point chooser. public/js/setono-pickup-point.js clones these +