Jump to content

Redirect Based on Form Submission

Recommended Posts

Site URL: https://www.boekjevankarton.nl

Hello,

I am trying to find an elegant solution for our website where people can buy their own personalised photo books. I hope that somebody can help!

On a product page, customers should be linked (through a button) to an external URL (where the photo book can be designed and paid) based on the variant of the photo book they have chosen. We sell 2 kinds of photo books, each in 4 sizes (so 8 variants). Would this be possible?

And if it is possible, which scenario would be easier to code:
1) On a product page, create 8 Variants of the product, remove the Add to Cart button, add a normal button and link this somehow to the product variant using code. Or;

2) Remove all Product elements from the product page (price, Variants, title etc) and instead create a Form with two Radio blocks  (for choosing kind of photo book and size) and a Submit button, and have the submit button link to a URL based on the book chosen.

I would prefer option 1 because each variant has a different price, and it is nice that it automatically displays the price for each variant.

I have created a dummy page here, with a Form field:
https://www.boekjevankarton.nl/productpagina/e9ldas74i9ugztnnddrq4lu37yqci8
PW: Testing

I have already found this thread where somebody described a similar problem, but I have two variables not one!

Thanks so much,

Best regards,
Roel

Link to comment
  • 2 months later...
On 8/2/2021 at 9:27 PM, RoelJ said:

Site URL: https://www.boekjevankarton.nl

Hello,

I am trying to find an elegant solution for our website where people can buy their own personalised photo books. I hope that somebody can help!

On a product page, customers should be linked (through a button) to an external URL (where the photo book can be designed and paid) based on the variant of the photo book they have chosen. We sell 2 kinds of photo books, each in 4 sizes (so 8 variants). Would this be possible?

And if it is possible, which scenario would be easier to code:
1) On a product page, create 8 Variants of the product, remove the Add to Cart button, add a normal button and link this somehow to the product variant using code. Or;

2) Remove all Product elements from the product page (price, Variants, title etc) and instead create a Form with two Radio blocks  (for choosing kind of photo book and size) and a Submit button, and have the submit button link to a URL based on the book chosen.

I would prefer option 1 because each variant has a different price, and it is nice that it automatically displays the price for each variant.

I have created a dummy page here, with a Form field:
https://www.boekjevankarton.nl/productpagina/e9ldas74i9ugztnnddrq4lu37yqci8
PW: Testing

I have already found this thread where somebody described a similar problem, but I have two variables not one!

Thanks so much,

Best regards,
Roel

Do you want to redirect external url or your site url

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.