I’m wondering if it’s possible when a customer clicks on “Add to Cart” button on the product page, it’ll redirect them to a custom page on my site?
The idea stems from the fact that I’m currently doing market research of the product that I’m going to sell (we have no inventory of the product yet) and would like to gauge interest of the product. The idea is that someone clicks on add-to-cart, lands on a custom page and they’ll be a pop-up saying that the product is finish and they could insert their email to be notified when it’s restocked. I’ll be able to track all of this via Google Analytics (for the events of clicking add to cart, landing on the custom page and how many actually filled in their emails).
For the answer to your question: Yes, it’s okay if all products go to the custom page. This is no problem, as we’re just currently gauging market interest.
I’ve found the solution to this already. I’ll be sharing it here in case anyone else wants to do the same thing as me. Do note I’m using the Debut theme as of 23/20/2021. This may or may not work depending when you’re reading this but you can definitely give it a shot!
Click “Edit Code” for your theme, then:
Find theme.js and click it
Once it opens, press CTRL+F to open the search function and search for “self._setupCartPopup(json);”
Underneath “self._setupCartPopup(json);”, type in "location.href=“paste-your-page-link-here”;
Press save
It should look something like this when you’re done: