Shopify themes, liquid, logos, and UX
Hey Everyone!
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).
Thanks!
Solved! Go to the solution
This is an accepted solution.
Hi everyone,
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:
It should look something like this when you're done:
self._setupCartPopup(json);
location.href="https://yourstore.com/pages/your-new-page";
Hope this helps someone else!
Cheers.
yes please add your custom page url but that was all products go to custom page is this fine?
Hey @KetanKumar!
Thanks for the speedy reply.
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.
The link to the page is: https://beribuddy.com/pages/our-products-just-ran-out
The site theme is Debut.
Currently the site is password protected. Do you require the password?
yes i need it
This is an accepted solution.
Hi everyone,
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:
It should look something like this when you're done:
self._setupCartPopup(json);
location.href="https://yourstore.com/pages/your-new-page";
Hope this helps someone else!
Cheers.
User | RANK |
---|---|
212 | |
150 | |
69 | |
46 | |
40 |
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023