Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const form = document.querySelector('div[data-section-id="cart-template"] > form.cart');
- const domainShop = Shopify && Shopify.shop || '';
- if (domainShop) {
- console.log('DOMINIO', domainShop)
- form.onsubmit = function() { form.action = `http://localhost:3000/checkout/?shop=${domainShop}` };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement