Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
this is file shopify.extension.toml
this is file Checkout.jsx
and code of chat url in
<!doctype html> <html lang="en"> <head> <script src="https://cdn.shopify.com/shopifycloud/checkout-web/assets/app-bridge-checkout.js"></script> <style> .dialog { display: none; } .visible { display: block; } </style> </head> <body> <dialog class="dialog"> How can we help you today? <button class="btn-close">Close</button> </dialog> <button class="btn-activator">Chat with us</button> <script type="text/javascript"> const btnActivator = document.querySelector('.btn-activator'); const btnClose = document.querySelector('.btn-close'); const dialog = document.querySelector('.dialog'); // bind actions to the buttons btnActivator.addEventListener('click', toggleDialog); btnClose.addEventListener('click', toggleDialog); function toggleDialog() { console.log('zooooo'); // if the dialog is visible, // - hide the dialog // - resize the iframe to the button's size if (dialog.classList.contains('visible')) { dialog.classList.remove('visible'); window.Shopify !== undefined && window.resizeTo(150, 50); // if the dialog is not visible, // - resize the iframe to the desired dialog's size // - then show the dialog } else { window.Shopify !== undefined && window.resizeTo(415, 700); dialog.classList.add('visible'); } } </script> </body> </html>
but when i open checkout page , its error
Please help me fix this, i don't know what wrong
i resolved this issue. My solution is update version's shopify cli to lastest