Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello,
I want to redirect each product to a form and then to checkout, Form needs to be different for each product, Is it possible? Please HELP!!! 😞
This is Amelia from PageFly - Landing Page Builder App
If you'd like to redirect the customer to a form after they click the "Add to Cart" button, one option is to create a unique page with a form for each product. However, this could be challenging if you have many products.
To simplify the process, you can add JavaScript to the "Add to Cart" button that redirects customers to a single form page. Here's an example of how you might do that:
document.querySelector('.add-to-cart-button').addEventListener('click', function() { window.location.href = 'URL_of_form_page'; });
This code will redirect users to the specified form page after they click the "Add to Cart" button. Adjust the URL in the code to point to your form page.
Hope that my solution works for you.
Best regards,
Amelia | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
➜ Weekly updated Shopify tutorials on YouTube
All features are available from Free plan. Live Chat Support is available 24/7.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025