Home › Forums › Ticket Products › Event Tickets Plus › Event update resets stock out to zero
- This topic has 6 replies, 3 voices, and was last updated 9 years, 11 months ago by
Support Droid.
-
AuthorPosts
-
May 2, 2016 at 11:21 am #1109649
Jessica Messervey
ParticipantHello there,
There are a few support threads regarding this issue, but all of them have been closed with no resolution. When we update an event, the stock count for tickets resets to 0. As a result, the event has an “Out of Stock” notice on the front-end. Is there any update on this bug? Thank you.
May 2, 2016 at 3:18 pm #1109778Geoff B.
MemberGood evening Jessica and welcome back!
Thank you for reaching out to us.
We are sorry to hear about the tickets resetting to zero when updating an event
I would love to help you with this topic.This is an issue that should have normally been solved a couple of updates ago, but there might be something specific about your installation.
As a first troubleshooting step, could you please provide us with your complete system information in a private reply using the instructions found in the following link?
https://theeventscalendar.com/knowledgebase/sharing-sys-info/
Best regards,
Geoff B.
May 4, 2016 at 1:58 pm #1110675Jessica Messervey
ParticipantThis reply is private.
May 5, 2016 at 12:09 am #1110849Geoff B.
MemberGood evening Jessica,
Thank you for providing your system information.
Based on what I am seeing, the only potential cause I see is that you might have some template customization that needs updating.
This is usually found in either the /tribe-events/ folder of your WordPress theme’s directory or in its functions.php file.You can do a quick test to see if the problem persists while you temporarily revert back to a default WordPress theme such as twenty-fifteen.
Let me know how that goes.
Best regards,
Geoff B.May 5, 2016 at 12:33 pm #1111197Jessica Messervey
ParticipantHi Geoff,
I’ve taken a look at the overriding templates, and it was only the email.php template – not any views. I updated that template just to be sure and the problem still persists, so it’s clearly not a template problem.
Edit: A support agent recommended the below code on another a different thread for a completely different issue. The code snippet provided seems to be the cause of this issue; when removed the problem no longer persists.
To anyone still experiencing the same issue, after the fix update, I recommend you check your functions.php file or template files for the following code:
/** * Disables the public attendee lists on all events * * Removes the tribe_events_single_event_after_the_meta action that injects the attendee * list that was introduced with the initial 4.1 release of Event Tickets Plus */ function disable_attendee_list_on_post() { if ( ! class_exists( 'Tribe__Tickets_Plus__Attendees_List' ) ) { return; } remove_action( 'tribe_events_single_event_after_the_meta', array(Tribe__Tickets_Plus__Attendees_List::instance(), 'render' ), 4 ); } add_action( 'wp', 'disable_attendee_list_on_post' );Thanks!
-
This reply was modified 9 years, 11 months ago by
Jessica Messervey. Reason: Found the cause
May 6, 2016 at 12:36 am #1111333Geoff B.
MemberHey Jessica,
This is fantastic. Thank you for sharing for everybody’s benefit.
Kudos on finding the culprit!As a side note, technically that snippet of code in functions.php is considered a customization 🙂
Is there anything I can help you with on this topic ?
Best regards,
Geoff B.
May 21, 2016 at 9:35 am #1117374Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
This reply was modified 9 years, 11 months ago by
-
AuthorPosts
- The topic ‘Event update resets stock out to zero’ is closed to new replies.
