Is anyone enforcing ticket limits online using lwp_validate_cart? We are having requests from promoters/producers to limit customers to N tickets per account, and lwp_validate_cart looks like a good way to do it. I was wondering if anyone had already implemented something like this and would be willing to let me look at their code so I could steal borrow from it.
As always, thanks in advance.
-steve carlock
Santa Barbara Center for the Performing Arts/The Granada
Hi Steve,
We are not doing this currently, but we are about to start a project that requires ticket limit validation per account. I'd love to hear from anyone who is doing this now, and I'll let you know what we come up with.
And of course the v10 API supports this directly with the use of Offers. If you create an Offer linked to all appeals and all source codes and put a limit it on it, then this will be automatically enforced through the API. There still may be reasons to do this with the customized procedure, especially if you have specific business rules that you want to follow. But if all you're looking to do is limit the number of tickets purchased for a performance in a single transaction, check out the included functionality first.