Home › Forums › Ticket Products › Event Tickets Plus › Attendee info (name, email, etc) not saving when customer adds it to tickets
- This topic has 15 replies, 6 voices, and was last updated 9 years, 4 months ago by
Port.
-
AuthorPosts
-
November 16, 2016 at 1:55 pm #1193475
Port
ParticipantSo we had this issue a few months back, please see previous thread here: https://theeventscalendar.com/support/forums/topic/http-error-500-when-trying-to-save-attendee-info/#post-1165924
We have four attendee info fields, two of which are required (first and last name). Orders have been coming in, yet attendee fname & lname are empty.
I have updated all plugins and have re-applied the temporary fix mentioned in the original thread above.
November 16, 2016 at 7:25 pm #1193658Mike
ParticipantNote, I am not a support rep, just another TEC user struggling with this flaw in their code.
I am guessing that this MIGHT be the case of users adding tickets in the “view cart/basket” phase, which side steps the collection of Attendee Information. A pseudo fix for this was posted that disables the ability to change quantity while in the “view cart” page, which should prevent your users from submitting tickets without attendee info.
Here is the code (done by Cliff from Modern Tribe support) – See post:
/** * Make WooCommerce cart Quantity input field non-editable (readonly) ONLY FOR Event Tickets Plus products * * By Matt B and Cliff P * * From https://gist.github.com/cliffordp/66bf05df61ee269c60ff20d6f39e2cab */ function cliff_etplus_woo_cart_quantity_readonly() { if ( ! class_exists( 'Tribe__Tickets_Plus__Commerce__WooCommerce__Main' ) ) { return; } $args = array( 'post_type' => 'product', 'fields' => 'ids', 'meta_query' => array( array( 'key' => Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance()->event_key, 'value' => 0, 'compare' => '>', ), ), ); $product_ids_readonly = get_posts( $args ); $product_ids_readonly = array_unique( $product_ids_readonly ); if ( ! count( $product_ids_readonly ) ) { return; } wp_enqueue_script( 'jquery' ); ?> <script> jQuery( function( $ ) { var product_ids = <?php echo json_encode( $product_ids_readonly ); ?>; var $remove_links = $( 'body.woocommerce-cart .woocommerce tr.cart_item td.product-remove a' ); $remove_links.each( function() { var product_id = parseInt( $( this ).data( 'product_id' ), 10 ); if ( -1 === $.inArray( product_id, product_ids ) ) { return; } var $row = $( this ).closest( 'tr' ); $row.find( 'td.product-quantity input' ).attr( 'readonly', true ); } ); } ); </script> <?php } add_action( 'wp_head', 'cliff_etplus_woo_cart_quantity_readonly' );This is a temporary PATCH to prevent the user from modifying their cart contents, but doesn’t fix the underlying issue. What it basically boils down to is WHEN Events Calendar is collecting the attendee information. The current position in the order phase is flawed, and it needs to be moved to the “view cart” (ideal) which allows customers to modify their order AND enter in attendee details before sending them to the final “checkout” phase.
Hopefully, this will be fixed soon.
-
This reply was modified 9 years, 5 months ago by
Mike.
November 16, 2016 at 11:32 pm #1193713Geoff B.
MemberHey Paul,
Thank you for writing back. Thank you Mike for pitching in.
The initial issue (with transients) should be a thing of the past.
Normally, the initial workaround should not longer be necessary.Could you provide me with an example URL for this ?
I believe you might want to check on Mike’s suggestion.
Best regards,
Geoff B.
November 17, 2016 at 8:33 am #1193863Port
ParticipantHey gents,
Thanks for the replies! You’re right about the cart & changing quantities — that must be how users have bypassed the required attendee meta fields.
Mike: I appreciate you posting that code! Would you happen to have it with the actual characters instead of the entities? (')
Geoff: thanks for chiming in. I was able to recreate the problem by adding a ticket (and entering attendee info), then modifying the ticket quantity in the cart without being prompted to add the new attendee info.
Anxiously awaiting a fix! Any idea on when that will happen?
-Paul
November 17, 2016 at 9:22 am #1193988Port
ParticipantMy apologies, I see the original snippet in the thread you linked to.
I’ve got it in my functions.php file, however it isn’t working — I can still change the quantity for tickets in the cart.
I’ve cleared my cache. We are not using any cacheing plugins and cacheing is not enabled on the server.
-
This reply was modified 9 years, 5 months ago by
Port.
November 17, 2016 at 8:02 pm #1194302Geoff B.
MemberHey Paul,
Thank you for writing back. I am sorry to hear the snippet did not help.
First off, you can find my colleague Cliff’s most recent version of the snippet: https://gist.github.com/cliffordp/66bf05df61ee269c60ff20d6f39e2cab
Can you confirm that the version you are using is up to date ?
You can also try this other snippet (still by Cliff): https://gist.github.com/cliffordp/f148a9cacd726e5a86ffeda2d2e204c1
Please pay attention to the notes
* WooCommerce: redirect Cart to Checkout to disable users being able to edit cart after adding Tickets
* Useful if only using WooCommerce for Event Tickets Plus, not selling other ProductsJust to clarify, this last snippet does not prevent you from modifying the cart, but rather skips the cart altogether and sends you to the checkout page.
The idea behind this is that we are not able to capture the additional attendee info in the cart page (at least for now).
The good news is that there is a priority one ticket to actually prevent changing the quantity in the cart for tickets.
Unfortunately, I cannot commit to a release date at this point. But stay tuned, you will be contacted when the fix is released.
If the updated snippet does not cut it, could you please send a copy of the latest version of your WordPress theme / child theme via a link to a .zip file link (stored Dropbox or Google Drive) so that I can run some tests on my end ? I recommend a private reply for that purpose.
Please ensure you are using the latest files as found on your actual website.
This way I will get access to any updates or customizations you might have made.Hang in there!
Best regards,
Geoff B.
November 18, 2016 at 9:05 am #1194567Port
ParticipantHi Geoff,
Thanks for the additional links & info. Unfortunately, neither of those snippets worked, however I’ve simply hidden the Quantity column with CSS.
The other thing that is very concerning is that users cannot go back to their events to add/update the Attendee meta fields (in our case, first and last names) per the “Letting Attendees Edit Their Information” on this page: https://theeventscalendar.com/knowledgebase/managing-your-orders-and-attendees/
Any ideas?
November 18, 2016 at 11:18 pm #1194802Geoff B.
MemberGood evening Paul,
The CSS solution is both clever and simple.
As per your other concern, you are absolutely right!
This is clearly a bug that I was able to reproduce. The additional info just goes blank if you return to the event from the cart.I will add this thread to the bug ticket. Once again, I unfortunately cannot commit to a release date at this point. But stay tuned, you will be contacted when the fix is released.
I wish I had a better answer for you, but for now it’s the best one I have.
The only “soft” protection would be a text note warning to the users for now (which is really not ideal nor robust, but might help).Have a good week-end,
Geoff B.
November 19, 2016 at 5:57 am #1194836Kymiel Standifer
ParticipantHaving the same issue as I clarified in the other threads. I hope this is fixed soon but can there be some clarification on where these snippets go? I’m a little lost
November 21, 2016 at 10:41 am #1195416Geoff B.
MemberHey Kymiel,
Thank you for adding your voice to the mix.
The snippets go in your theme’s (or better in your child theme’s) functions.php file.
I would recommend opening a separate thread for this.
The more threads we have coming from different people on issues, the higher the priority they get.Let me know if that helps.
Have a great day!
Geoff B.
November 21, 2016 at 10:51 am #1195421Port
ParticipantThanks, Geoff. As disappointing as it is, I’m glad it isn’t something that is on our end. Our site heavily depends on ticket sales & attendee info so I will keep an eye out for a fix.
Kymiel: these snippets go in your theme’s functions.php file.
November 21, 2016 at 10:51 am #1195422Port
Participant(I forgot to sign up for reply notifications)
November 22, 2016 at 7:26 am #1195779Port
ParticipantEdited.
-
This reply was modified 9 years, 5 months ago by
Port. Reason: Irrelevant reply
November 22, 2016 at 10:32 pm #1196301Geoff B.
MemberHey Paul,
Thank you for writing back and for your understanding as we work on fixing this.
We will absolutely let you know as soon as it’s out.
For now I am going to change this thread status to “pending fix”.Best regards,
Geoff B.
December 14, 2016 at 8:35 am #1205945Support Droid
KeymasterHey 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 -
This reply was modified 9 years, 5 months ago by
-
AuthorPosts
- The topic ‘Attendee info (name, email, etc) not saving when customer adds it to tickets’ is closed to new replies.
