Jump to content

Redirect Based on Form Submission

Recommended Posts

Posted

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

  • 2 months later...
  • Replies 1
  • Views 468
  • Created
  • Last Reply
Posted
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 (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.