Home › Forums › Welcome! › Pre-Sales Questions › tribe_events_has_unlimited_stock_tickets can never be true
- This topic has 7 replies, 1 voice, and was last updated 7 years ago by Support Droid.
-
AuthorPosts
-
November 30, 2016 at 7:21 pm #1200111Justin SternbergGuest
tribe_events_has_unlimited_stock_tickets loops through all associated tickets to an event, then does this check:
Tribe__Tickets__Ticket_Object::UNLIMITED_STOCK === $ticket->stock()
This will never be true because
Tribe__Tickets__Ticket_Object::UNLIMITED_STOCK
is''
(const UNLIMITED_STOCK = '';
), andTribe__Tickets__Ticket_Object::stock()
Only allows setting numeric values, and the default value is0
.This looks a lot like a bug to me. Ideally, I’d like to allow unlimited tickets for some events, but currently, that’s not possible.. I have to set some numeric value.
November 30, 2016 at 7:22 pm #1200112Justin SternbergGuestI’d open an issue on github, but it appears the repo has issues disabled.
November 30, 2016 at 7:36 pm #1200118Justin SternbergGuestPull request submitted: https://github.com/moderntribe/event-tickets/pull/301
December 2, 2016 at 6:54 am #1200806NicoMemberHi there Justin,
Thanks for getting in touch with us!
Also thanks for going ahead and submitting the PR. I see Barry already replied over GitHub, and will continue to work with you on this there.
Do you think there’s anything else I can do for you?
Thanks once again,
Best,
NicoDecember 2, 2016 at 7:23 am #1200833Justin SternbergGuestI think we’re good as long as progress is maintained there. My concern is that it’s currently impossible to have limitless stock.
December 5, 2016 at 3:08 am #1201452NicoMemberThanks for confirming Justin ๐
Barry will continue to help you out on GitHub directly. I will ping him directly just to remind him about it.
Iโll go ahead and close out this thread, but if you need help with anything else please donโt hesitate to create a new one and we will be happy to assist you.
Best,
NicoMarch 23, 2017 at 7:40 pm #1259261NicoMemberHi there!
Just wanted to share with you that maintenance release 4.4.5 of our plugins is out, which includes the fix you submitted for this issue ๐
Find out more about the release โ https://theeventscalendar.com/maintenance-release-events-calendar-4-4-5-event-tickets-4-4-5-premium-add-ons/
Thanks once again for the PR!
Best,
NicoApril 14, 2017 at 9:35 am #1270100Support DroidKeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘tribe_events_has_unlimited_stock_tickets can never be true’ is closed to new replies.