Jump to content

Redirect to webpage after submitting "Add to Cart" in a Product Form

Recommended Posts

Hey Everyone! I have products where after a customer clicks "Add to Cart", they need to complete a Product Form specifying details.

I was wondering if there was any custom code/script that could redirect a customer to a webpage on my website after clicking the "Add to Cart" button at the end of the Product Form and not the initial "Add to Cart" button that initiates the pop-up Product Form. I located code that redirects great but it redirects after clicking the initial "Add to Cart" button, thus skipping the Product Form pop up altogether.

See below for current script. I'm assuming what needs to be changed is the ".sqs-add-to-cart-button" to specifically target the Product Form "Add to Cart" button but not sure?

image.png.c7353e0d9f759f0d1a63b8d642524977.png

Thank you!

Link to comment
  • Replies 0
  • Views 911
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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.