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');
- if(!form) {
- return;
- }
- form.onsubmit = function() { form.action = 'http://localhost:3000/checkout' };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement