Add postcode reset to checkout.

This commit is contained in:
Remo Zaros
2026-05-14 13:12:17 +02:00
parent 81d2523d42
commit 2f430be382
4 changed files with 137 additions and 64 deletions

14
assets/reset-postcode.js Normal file
View File

@@ -0,0 +1,14 @@
document.addEventListener("click", function (event) {
event.preventDefault();
if (event.target.matches(".reset-postcode-show-comfirm")) {
console.log("link1 button clicked!");
document.querySelector(".bevestiging").dataset.open = true;
}
if (event.target.matches(".accept")) {
console.log("link2 button clicked!");
}
if (event.target.matches(".decline")) {
console.log("link3 button clicked!");
document.querySelector(".bevestiging").dataset.open = false;
}
});