x

How Do I Add a Button Which Adds All Items from a Category to Shopping Cart

I asked this in the Weebly board but got no response so far. Sorry for the cross-posting.

 

How would I add code which would allow a customer to add all the items in one category to their shopping cart at once?

 

We are using Square/Weebly to create a catalog for our Continuing Education School, which is run inside a retirement community. We have two semesters a year and have about 25 evening lectures and musical recitals which are one-time events and another 5 classes which meet more than once. About a third of those who register for our courses register for all or nearly all the evening events. Thus it would be advantageous and save time to be able to allow those seniors to push a button and get signed up for all the evening events at once (and if they want to remove a couple of them from that total they can do that).

 

 Where could I find such a code snippet or where would I start to figure it out myself (I have done some hacking/coding, but not a lot).

576 Views
Message 1 of 3
Report
2 REPLIES 2
Alumni

Hi there @socrtwo - it is not currently possible to add multiple items to the cart in one go using a Square Online website. However, if you aren’t tracking inventory, you could make a single item that includes multiple events, or all events.

 

I hope this helps!

Valentina
Community Moderator, Square
Sign in and click Mark as Best Answer if my reply answers your question.
521 Views
Message 2 of 3
Report

Thanks. I upgraded to the Pro Plan and spoke to Taylor who suggested those things. So I created three new items, one for each of the courses in each category. Adding the item to their shopping cart allows them to register for all the courses in the category at once.

 

Additionally, Taylor pointed out that I could make another kind of item where I entered in each course in a category as a modifier. Then the student who already knew which courses they wanted to sign up for, say on the basis of reading the paper catalog, could quickly sign up for a bunch of courses, unencumbered by the course descriptions.

 

If students choose to register for courses in whole or in part using these new items, I will have to treat the resulting data differently from the registration data gathered when students sign up for individual courses, but that is not an insurmountable problem.

518 Views
Message 3 of 3
Report