Posted: May 5, 2014 at 12:45 pm
Hi, I need to use the same ticket to control inventory (we only have 100 tickets for Event), but I need to know which datetimes the buyers are coming to. I always have a fixed inventory for all datetimes per event. Hope I’m just missing something simple… using ee4 |
|
Hi Michael, You can create multiple date times and then allow access to the datetimes for a certain ticket. Here is what that would look like: http://ee-screenshots.s3.amazonaws.com/2014/04/datetime_name_description.gif — |
|
I want: customer1 *picks datetime 1*, then buys ticket (99 left). I can’t allow customer to buy ticket and show up at any datetime. They must choose datetime. Can’t use separate tickets because I need to control inventory at the Event level. thanks |
|
|
Hi, I don’t think there is an exact match for your request. The closest would be: 4 datetimes each with max limit set to 25 (total 100) That way the max capacity is always 100, and each datetime will decrease along with the max capacity. |
THanks Dean. I think that will be too confusing for our customers. Is there something else we can do? I really want EE to work for us. |
|
to clarify: We’re a reseller. We get tickets donated to us, and we sell them at a discount. So we get 100 tix for Show 1, and we sell them until we run out of tickets. This is why we need inventory at the Event level. |
|
|
You could do something like what I did here: https://github.com/sidharrell/espresso-pass-gen. You would have one event with the 100 tickets. When someone buys one of the tickets, it generates a one-time use coupon code that the user can then apply to one of the Shows. Since you are bringing in a developer, I would show them that code and see if they can integrate it into their solution. |
THank you very much for sharing. This is conceptually very close and makes me think our project won’t be too difficult. Is this code for EE3 or 4, I can’t tell. Could you tell me how we might expect using custom development to impact our maintenance of the plugin, updates etc.? THanks |
|
|
That code is for EE3. It’s set up as a separate plugin that provides a shortcode, so that updating EE core will not affect it. If your developer can set up their modifications in a similar way, that would be ideal. Otherwise there are several options that will still allow you to update EE core without overwriting custom work. Any modifications to files in the templates or gateways folder can be done by copying the file to uploads/espresso/templates or uploads/espresso/gateways before doing the modification. Many of the functions in the core files have overrideable wrappers, so that custom versions of the function can be created and loaded in the theme’s functions.php file or in a custom plugin. Those functions can be distinguished by if (function_exists(xxx)) preceding the actual function. We have also tried to add in hooks where possible, to allow for customizations. If all those methods fail, and the developer is forced to make a modification to a core file, it is recommended that they add in a overrideable wrapper to the core function, so that when you do update EE core you only have to add back in the overrideable wrapper. |
Thanks again Sidney. That’s cool, I didn’t know about overrideable wrappers. Your feedback is very helpful. On a separate note, it’s looking more and more like we can use EE out of the box. |
|
The support post ‘pick date/shared tickets’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.