fm-ticketing / dawn-shopify-theme

Clone of Shopify's Dawn theme, with Online Store 2.0 feature.
Other
1 stars 0 forks source link

Restrict quantity to prevent groups from booking online #88

Closed stuartleech closed 3 weeks ago

stuartleech commented 3 months ago

Can we put a cap on number of tickets that can be booked at once to be no more than 7 per person - with some kind of pop up to contact tours for groups of 8+

Text used: For large groups, please contact tours@foundlingmuseum.org.uk to arrange your visit.

katjam commented 1 month ago

When total tickets reaches 7:

katjam commented 1 month ago

@stuartleech I'm taking a look at this today.

katjam commented 1 month ago

I can only do this when customer is in the app. Once they press update basket and go to /cart view we are back in the hands of shopify. So I will start with this and see if it helps deter at least. Do you think there is an easy way to limit the total number of tickets per customer through the product admin?

katjam commented 1 month ago

@stuartleech My PR has included some gubbins from header with main and staging being out of sync.

Which of them is correct. As in, can I merge main into staging or should I make my changes on a clean staging branch?

katjam commented 3 weeks ago

I've merged a fix for the manual input that maxes them to total of 7 if they try to type number that brings total to more.