diff --git a/tryonyou-app/src/services/CommerceEngine.js b/tryonyou-app/src/services/CommerceEngine.js new file mode 100644 index 0000000000..728934b831 --- /dev/null +++ b/tryonyou-app/src/services/CommerceEngine.js @@ -0,0 +1,25 @@ +// Some original code +// line 2 +// line 3 +// line 4 +// line 5 +// line 6 +// line 7 +// line 8 +// line 9 +// line 10 + const isConfirmEnabled = import.meta.env.VITE_CHECKOUT_CONFIRM === 'TRUE'; + if (!isConfirmEnabled) return; + + const overlay = document.createElement('div'); + overlay.id = 'divineo-overlay'; + const container = document.createElement('div'); + container.style.cssText = "position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; z-index: 9999; border: 2px solid #D4AF37;"; + + const heading = document.createElement('h2'); + heading.style.cssText = "color: #D4AF37; font-family: serif; letter-spacing: 0.5em; text-transform: uppercase;"; + heading.textContent = "AJUSTE PERFECTO. COMPRANDO..."; + + container.appendChild(heading); + overlay.appendChild(container); +// end of original code