Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Redirect Based on Form Submission


RoelJ

Question

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

1 answer to this question

Recommended Posts

  • 0
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

Greeting, it's BaNgan from BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Youtube Gallery for Squarespace
If you find my answer fit your need, 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...