IndeCommerce Logo

Create your account

Join IndeCommerce platform

Sign up with Google
Please accept the Privacy Policy and Terms of Service below first
OR

Only letters and numbers. This will be your URL: yourcompany.indecommerce.com

Already have an account? Sign in here

function togglePw(inputId, iconId) { const input = document.getElementById(inputId); const icon = document.getElementById(iconId); const show = input.type === 'password'; input.type = show ? 'text' : 'password'; icon.className = show ? 'fas fa-eye-slash text-sm' : 'fas fa-eye text-sm'; } document.addEventListener('DOMContentLoaded', function() { var siteKey = '6LcbsBktAAAAAIIExffEwN-dfHV1k3NtY_V0apIo'; const form = document.querySelector('form'); const termsCheckbox = document.getElementById('terms-agreement'); const registerBtn = document.getElementById('register-btn'); const googleBtn = document.querySelector('a[href*="google_login"]'); const pwInput = document.getElementById('password'); const pwConfirm = document.getElementById('password_confirm'); const pwMatchMsg = document.getElementById('pw-match-msg'); function passwordsMatch() { return pwInput.value === pwConfirm.value; } function validatePasswords() { if (pwConfirm.value) { const match = passwordsMatch(); pwMatchMsg.classList.toggle('hidden', match); pwConfirm.classList.toggle('border-red-400', !match); pwConfirm.classList.toggle('focus:ring-red-400', !match); } else { pwMatchMsg.classList.add('hidden'); pwConfirm.classList.remove('border-red-400', 'focus:ring-red-400'); } } pwInput.addEventListener('input', validatePasswords); pwConfirm.addEventListener('input', validatePasswords); function updateButtonStates() { const isChecked = termsCheckbox.checked; registerBtn.disabled = !isChecked; registerBtn.classList.toggle('opacity-50', !isChecked); registerBtn.classList.toggle('cursor-not-allowed', !isChecked); if (googleBtn) { googleBtn.classList.toggle('opacity-50', !isChecked); googleBtn.classList.toggle('cursor-not-allowed', !isChecked); } } updateButtonStates(); termsCheckbox.addEventListener('change', updateButtonStates); form.addEventListener('submit', function(e) { if (!termsCheckbox.checked) { e.preventDefault(); alert('Please accept the Terms of Service and Privacy Policy to continue.'); return; } if (!passwordsMatch()) { e.preventDefault(); pwMatchMsg.classList.remove('hidden'); pwConfirm.focus(); return; } if (siteKey && window.grecaptcha) { e.preventDefault(); grecaptcha.ready(function() { grecaptcha.execute(siteKey, {action: 'register'}).then(function(token) { document.getElementById('g-recaptcha-response-register').value = token; form.submit(); }); }); } }); if (googleBtn) { googleBtn.addEventListener('click', function(e) { if (!termsCheckbox.checked) { e.preventDefault(); alert('Please accept the Terms of Service and Privacy Policy to continue.'); } }); } try { const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone; document.getElementById('detected_timezone').value = timezone; } catch (error) {} });