Jump to content

How to customize product purchase form fields.

Recommended Posts

I would like to sell tickets to a charity event, however, I require the names of all who purchase tickets. 

If I create a ticket to purchase in my shop, and attach a form that asks for the attendee's name when that product is purchased, but then someone buys more than one ticket at a time, how do I get multiple name inquiries in there for each ticket purchased?

i.e. one ticket is purchase = one name form field = we're good.

but

one person has 10 tickets purchase - squarespace still only has one name entry (one standard form field) that displays 

please halp.

Link to comment

SS doesn't have anything built-in to handle this particular situation. So just about anything we could come up with will have pros and cons.

You could add a number of non required name fields. The number would have to be such to cover most situations. But if you think someone might go over, then you could add a free form text field where extra names could be added.

If you use required fields that would be a problem as they would all have to be filled out.

Also note that there is no built-in way to link the quantity field to what is happening in the form.

Now with a business plan or above and some custom coding it may be possible to come up with something a little more structured but again what can be done is limited to what can be done on the browser side of things. Nothing can be done to change how SS handle forms on the backend.

Find my contributions useful? Please like, upvote, mark my answer as best , and see my profile. Thanks for your support!

Link to comment
On 5/28/2022 at 1:37 AM, tinypops said:

If I create a ticket to purchase in my shop, and attach a form that asks for the attendee's name when that product is purchased, but then someone buys more than one ticket at a time, how do I get multiple name inquiries in there for each ticket purchased?

In the checkout settings (Commerce > Checkout) you'll find a setting called "Let Customers Buy Multiple Service Products". If the tickets have been configured as Service Products and you uncheck this box, the customer will only be able to add one ticket at a time. Each time they click/tap the Add to Cart button (or whatever you have captioned it) they will be prompted again with your form, and be able to add a name.

image.thumb.png.0b26c3c54b5a8586cf5e83810a6a437c.png

For a good user experience, users should clearly understand what happens when they click the "add" button so when using this configuration it is a good idea to change the button's caption and add some additional messaging that explains how to add multiple tickets.

Was this post helpful? Please give feedback by clicking an icon below  ⬇️

Edited by paul2009
Typo

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment

Thanks @paul2009 This did the trick!.... almost.

Since this is by invite only, I don't want to cart icon showing in the site header. I wonder, can I add an interactive cart icon to only that page so purchasers can access/see how many products they've added to their cart at a glance? Any tricks, maybe something sneaky with code? 🤷‍♀️

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.