Home › Forums › Ticket Products › Event Tickets Plus › Tribe__Tickets_Plus__Commerce__WooCommerce__Main->validate_tickets Failed
- This topic has 5 replies, 2 voices, and was last updated 7 years, 8 months ago by
SOS Media Corp.
-
AuthorPosts
-
August 15, 2018 at 2:05 pm #1598447
SOS Media Corp
ParticipantHi there!
On our website, we are experience an issue with the
Tribe__Tickets_Plus__Commerce__WooCommerce__Main->validate_tickets [src/Tribe/Commerce/WooCommerce/Main.php:2663]method. Within this method, the Ticket Type is collected and a date range check is run via theTribe__Tickets__Ticket_Object->date_in_range [src/Tribe/Ticket_Object.php:298]method.Despite the ticket start date being set in the future (August 24), and the end date being set beyond that (August 25), it is still giving us the following error in the cart once added:
The ticket: Signature Lash Course in Vancouver (August 24-25, 2018), in your cart is no longer available or valid. You need to remove it from your cart in order to continue.
Any idea why this might be occuring? It only seems to happen with this one specific ticket, but the others that are working appear to be identical other than the precise dates. I went through every single ticket and product setting and they really do look to be the same.
When I dump the $start and $end values that are running through your
date_in_rangemethod, they do look incorrect, but I am unsure as to where the discrepancy is rooted.Let me know if you have any thoughts, hunches, or ideas to get to the bottom of this.
Best regards.
August 15, 2018 at 2:11 pm #1598449SOS Media Corp
ParticipantUpdate:
I have now tested with all other plugins disabled, and with just the Twenty Seventeen theme running – the dates issue seems to have persisted despite these tests for the specific ticket.August 15, 2018 at 2:16 pm #1598452SOS Media Corp
ParticipantUpdate 2:
Sorry, it would not let me update the previous forum post for whatever reason (the page would just refresh when I clicked the “Edit” button. It looks like the value the date_in_range method is grabbing may be the Ticket WooProduct publish date? The product publish date would always be in the past, so it would make sense for that to trigger the invalid state. However… I still would not know why this date is used instead of the actual event date? Let me know your thoughts.Thank you.
August 17, 2018 at 8:34 am #1599892Cliff
MemberHi. Thanks for your detailed messages.
Please provide the following:
- link to the event
- screenshot of the wp-admin event edit screen, so I can see the event’s start/end settings
- screenshot of the wp-admin event edit screen’s ticket editing section for the ticket that is having this issue, so I can see the ticket’s settings
August 17, 2018 at 8:49 am #1599914SOS Media Corp
ParticipantHi Cliff,
Thank you for getting back to us. The issue is now resolved – it had to do with the event start and end dates, they were changed without our realizing. Our apologies.
Hope you have a great weekend 🙂
Best regards.
August 17, 2018 at 4:04 pm #1600269Cliff
MemberGlad to hear and thanks for letting us know.
-
AuthorPosts
- The topic ‘Tribe__Tickets_Plus__Commerce__WooCommerce__Main->validate_tickets Failed’ is closed to new replies.
