1. Go to homepage >songmuffin.com 2. Click "start your song" button this takes you to a page with a quick view of product 3. Enter details and click "continue" (I renamed this "add to cart" to say "continue") "continue" button opens a product form 4. Fill out form and click "continue"
Goal: When clicking continue for the second time in step 4, I'd like that button to be directed to songmuffin.com/cart Currently, it stays on the current page and button says "adding....added!"
This product has 18 variants, so maybe it is not even possible 🫣 Any help or clarification would be greatly appreciated. See what I've tried below... I hobbled together some stuff from forums, hopefully I didn't butcher it!
Step 2: Edit a product > add to a code block in additional info (although I'm not sure if I put this in the correct place) <script> twc.spdatcbur.idUrlMap = {
'[enter product sku]' : '[enter url]',
'[enter product sku]' : '[enter url]',
};
</script>
Redirect "add to cart" button to url (for a multi-variant Product with pop-up form prior to adding to cart)
in Customize with code
Posted
1. Go to homepage > songmuffin.com
2. Click "start your song" button
this takes you to a page with a quick view of product
3. Enter details and click "continue" (I renamed this "add to cart" to say "continue")
"continue" button opens a product form
4. Fill out form and click "continue"
Goal: When clicking continue for the second time in step 4, I'd like that button to be directed to songmuffin.com/cart
Currently, it stays on the current page and button says "adding....added!"
This product has 18 variants, so maybe it is not even possible 🫣 Any help or clarification would be greatly appreciated. See what I've tried below... I hobbled together some stuff from forums, hopefully I didn't butcher it!
~
Code from @creedon
Step 1:
Settings > Advanced > Code Injection > HEADER
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
Step 2:
Edit a product > add to a code block in additional info (although I'm not sure if I put this in the correct place)
<script>
twc.spdatcbur.idUrlMap = {
'[enter product sku]' : '[enter url]',
'[enter product sku]' : '[enter url]',
};
</script>