Home › Forums › Ticket Products › Event Tickets Plus › Ask the information first
- This topic has 15 replies, 3 voices, and was last updated 5 years, 11 months ago by Paul Browne.
-
AuthorPosts
-
April 13, 2018 at 3:33 am #1506421Paul BrowneParticipant
Hi there,
I want to ask the user for the attendee details first rather than asking him for the number of tickets. (The website is: https://quicktraining.ie/course/02-may-17-mulhuddart-dublin-15-solas-safe-pass/).
And when he has entered the details, I would like to have a button that would say “Add Another Attendee”. (Example website: http://www.quicksafepass.ie/county/booking.php?course_id=5533&attendes=1&y=0)
Can you please help me to achieve this?
Regards,
PaulApril 14, 2018 at 9:05 am #1507335JenniferKeymasterHi Paul,
Thanks for reaching out!
There is not an out-of-the-box way to do this, but you might be able to get it set up with a customization. Our themer’s guide is the place to start if you would like to give this a shot! We are limited in the amount of support that we can provide for customizations, but if you get stuck or have any questions, please let me know – I’ll be happy to point you in the right direction.
As a starting point (or a simpler solution), you may want to look at setting the default number of tickets to 1, which will mean that one set of fields is automatically shown by default. Then, when a user increases the ticket quantity, additional fields will be displayed.
April 17, 2018 at 4:57 am #1508973Paul BrowneParticipantHi Jennifer,
Thank you for your response. I did exactly as stated in the “Setting the default” guide and put the edited file to both the theme folder and the child theme folder (just to make sure) but it is not working. Here is the event page: https://quicktraining.ie/course/03-may-17-mulhuddart-dublin-15-solas-safe-pass/
April 18, 2018 at 6:34 am #1510124Paul BrowneParticipantCan you please respond to my request?
There is another problem. The user can checkout without even choosing the number of tickets. So even if the number of tickets is at one, the user can checkout. Can you please check that too?
April 23, 2018 at 11:02 pm #1514360JenniferKeymasterHi Paul,
I’m sorry for the delay here…If you are using a child theme, then you’ll want to create a “tribe-events” folder there (no need to do it in the parent theme), and a “wootickets” folder inside of that, which is where you would copy the tickets.php file into to make the changes. If you’re doing any caching on your server or via a plugin, then you’ll want to clear that out as well to make sure that you’re seeing the current version of the page.
Alternatively, you can add the following to the functions.php file of your child theme:
function tribe_events_alter_tickets_default_quantity() {
wp_enqueue_script( 'jquery' );
?>
<style>
tr.tribe-tickets-meta-row {
display: table-row !important;
}
</style>
<script>
jQuery(document).ready( function () {
jQuery( 'input.tribe-ticket-quantity' ).val( 1 );
});
</script>
<?php
}
add_action( 'wp_head', 'tribe_events_alter_tickets_default_quantity' );If the template override isn’t working for you, can you give this method a try instead?
Once the minimum number of tickets is set, users should no longer be able to proceed to the checkout page without any tickets.
Let me know how this goes!
Thanks,
Jennifer
May 2, 2018 at 7:18 pm #1521614Paul BrowneParticipantHi Jennifer,
Let me reset all that and start from scratch because I believe that you have got confused.
Here’s my website: http://quicktraining.ie/
And here’s an event: https://quicktraining.ie/course/02-may-17-mulhuddart-dublin-15-solas-safe-pass/
What do I want?
Now I want the following two things:
1. I would like to have “1” as the default value of ticket rather than “0”. (Here’s an example: http://www.quicksafepass.ie/county/booking.php?course_id=5718&attendes=1&y=0)
2. I would like to disallow any user to click on “Pay Now” button before he has entered his details.
What I have done?
I have done everything that you have mentioned in your messages.
Can you please get back to me ASAP?
Regards,
PaulMay 2, 2018 at 7:21 pm #1521615Paul BrowneParticipantHi Jennifer,
Let me reset all that and start from scratch because I believe that you have got confused.
Here’s my website: http://quicktraining.ie/
And here’s an event: https://quicktraining.ie/course/02-may-17-mulhuddart-dublin-15-solas-safe-pass/
What do I want?
Now I want the following two things:
1. I would like to have “1” as the default value of ticket rather than “0”. (Here’s an example: http://www.quicksafepass.ie/county/booking.php?course_id=5718&attendes=1&y=0)
2. I would like to disallow any user to click on “Pay Now” button before he has entered his details.
What I have done?
I have done everything that you have mentioned in your messages.
Can you please get back to me ASAP?
Regards,
PaulMay 6, 2018 at 6:25 am #1523805Paul BrowneParticipantWHY DO YOU GUYS TAKE FOREVER TO RESPOND?
May 7, 2018 at 1:53 pm #1524667AndrasKeymasterHey Paul,
Something unexpected came up for Jennifer so I’m jumping in to help out.
To set the expectations, this essentially looks like a custom development task and so is outside of our stated scope of support. With that being said, we’d love to help point you in the right direction.
We do need to prioritize support requests from other customers at this time. If you urgently need help with this, however, you may instead wish to consider working with a suitably skilled developer or designer who can offer the additional level of support you require.
I see that you are using WooCommerce. Probably the easiest way to limit the minimum number to one is with a template override. (Please undo / remove any changes you did before regarding this to start with a clean slate.)
Take this file:
wp-content/plugins/event-tickets-plus/src/views/wootickets/tickets.php
And make a copy of it here:
wp-content/themes/[your-active-theme]/tribe-events/wootickets/tickets.php
Open that file for editing and look for line 129, which should look like this:
'min_value' => 0,
Change that line to:
'min_value' => 1,
Save and now your ticket quantity counter will start at 1.
I would like to disallow any user to click on “Pay Now” button before he has entered his details.
This will require a bit more advanced coding, possibly javascript and jQuery.
However, if you set the all the fields as required, then the user will not be able to add the tickets to the cart, until all required fields are filled out. They will rather see an error message like this: https://cloudup.com/cM5B2seF_nm
I hope this helps. Let us know.
Cheers,
AndrasMay 8, 2018 at 6:14 am #1525115Paul BrowneParticipantHi Andras,
Thank you for responding to my ticket.
I have successfully set the default number to “1”.
I would really appreciate if you could please help me out with the following things as well:
1. If you go the website (https://quicktraining.ie/), you will notice an image with a small builder figure and a sign saying “Click Here To Book”. Can you please let me know that how can I put the same image instead of the “Pay Now” button at the event page (https://quicktraining.ie/course/02-may-17-mulhuddart-dublin-15-solas-safe-pass)?
2. Is it possible to have a number of Organizers which can submit new events via a front-end form?
Thanks,
PaulMay 9, 2018 at 8:06 am #1526177Paul BrowneParticipantHi there,
I just noticed the following changes:
1. The good-looking “Pay Now” button has been changed to a simple out-dated “Add To Cart” button.
2. The text boxes for the attendee information is not visible on some events. For example: (https://quicktraining.ie/course/03-may-17-mulhuddart-dublin-15-solas-safe-pass/) while on some, it’s visible. For example: (https://quicktraining.ie/course/02-may-17-mulhuddart-dublin-15-solas-safe-pass/).
Can you please help me solve the issues?
Also, can you please get back to me quickly?
Thanks,
PaulMay 10, 2018 at 12:46 am #1526952JenniferKeymasterHi Paul,
I’m glad that you were able to get the default minimum working! To your first question about the button, you would need to customize this with a template override as you did for the default minimum. You’ll find the button in the same tickets.php template you customized already, so you can make this change in the copy that you already have. Look for this code:
<td colspan="4" class="woocommerce add-to-cart">
<?php if ( $must_login ) : ?>
<?php include Tribe__Tickets_Plus__Main::instance()->get_template_hierarchy( 'login-to-purchase' ); ?>
<?php else: ?>
<button
type="submit"
name="wootickets_process"
value="1"
class="tribe-button"
>
<?php esc_html_e( 'Add to cart', 'event-tickets-plus' );?>
</button>
<?php endif; ?>
</td>As Andras mentioned, customizations are outside the scope of support that we can provide here in the forums, so for the changes to the button, you will need to take it from here.
Regarding allowing organizers to submit events from the front end, Community Events will create a form for them to do so. If you would also like them to sell tickets on their events, then you would need Community Tickets as well.
I took a look at the two events you linked to, and from what I can see on the front end, it appears that no additional fields have been added on this event:
https://quicktraining.ie/course/03-may-17-mulhuddart-dublin-15-solas-safe-pass/
Can you please send me a screenshot of what you’re seeing in the Attendee Information section for the ticket on this event? Please note that if you are replying via email, attachments will not be included – you’ll need to login and post the image directly in the thread.
Thanks!
May 10, 2018 at 3:34 am #1527029Paul BrowneParticipantThank you for responding back Jennifer!
1. And thank you for letting me know the code for the button. I appreciate that.
2. I have both plugins which you mentioned. How do I set it up? Can you please help me with that?
3. I am attaching the screenshots of the problem. Screenshot named as “one.png” shows that some events show the the boxes where the user can enter his information while “second.png” shows that some events doesn’t show the the boxes.
Regards,
PaulMay 10, 2018 at 3:57 am #1527040Paul BrowneParticipantI just figured out how to setup the Community plugins.
Just help me out on the screenshots I sent you.
May 10, 2018 at 3:59 am #1527042Paul BrowneParticipantJust wondering, is there a way to have a registration form on the website that will create a new Organizer profile?
-
AuthorPosts
- The topic ‘Ask the information first’ is closed to new replies.