diff --git a/assets/js/modals.js b/assets/js/modals.js index ebe8200..c0f8711 100644 --- a/assets/js/modals.js +++ b/assets/js/modals.js @@ -685,4 +685,18 @@ } window.openValuationModal(email); }; + + // ── Auto-open a modal from the URL (e.g. ?_open=wc-quote-modal) ── + (function openModalFromUrl() { + const target = new URLSearchParams(window.location.search).get("_open"); + if (!target) return; + + if (target === "store-modal-overlay") { + window.openStoreModal(); + return; + } + + const el = document.getElementById(target); + if (el && typeof el.open === "function") el.open(); + })(); })();