Event update resets stock out to zero

Home Forums Ticket Products Event Tickets Plus Event update resets stock out to zero

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1109649
    Jessica Messervey
    Participant

    Hello 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.

    #1109778
    Geoff B.
    Member

    Good 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.

    #1110675
    Jessica Messervey
    Participant

    This reply is private.

    #1110849
    Geoff B.
    Member

    Good 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.

    #1111197
    Jessica Messervey
    Participant

    Hi 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
    #1111333
    Geoff B.
    Member

    Hey 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.

    #1117374
    Support Droid
    Keymaster

    This 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.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Event update resets stock out to zero’ is closed to new replies.