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.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024