Test pro version
WordPress Event Management, Calendars & Registration › Forums › Pre Sales Questions › Test pro version
This topic contains 7 replies, has 2 voices, and was last updated by Stephen Harris 7 years, 1 month ago.
-
AuthorPosts
-
Hi Stephen,
I use Event Organizer Pro for one of my customers already. Soon I hope to have another customer using Event Organizer Pro, but I want to set up a test site to test complex ticket option using a mixture of radio buttons and checkbox choices.
I know this is very cheeky, but can I use one of the pro downloads I already have, but only for testing on this new test site? I would not use the original customer’s licence key. I plan to purchase the pro version if I can satisfy their needs.
I am trying to have something like this image
selecting the partner fee doubles the charge.
It is require that only 1 complete ticket can be purchased per transaction.Is all this possible?
Many thanks.
Regards,
Tony
TonyHi Tony,
Yes that’s fine.
As for using radio boxes, and ensuring that a booking can only contain one ticket is also possible, and relatively straightforward. It’s been addressed on the forums already, but if you need any help I’d be happy to give details on this.
The focus of your question seemed to be more on the checkbox and the manipulation of the price. The best I can do here is point you to the VAT extension plug-in and/or the discount code extension.
The VAT extension might be helpful to work from. In that extension there is a configurable percentages for which to apply to bookings. In your case, you could replace this with 100%. The difference is that you want to conditionally check if the checkbox is selected here (simply jQuery check would suffice).
You could add that checkbox field using the booking form customiser. That would ensure the user’s selection is stored against the booking. It’s important to note that when changing the price of the booking you do it in two places: 1) via JavaScript to display the price change to users, and 2) via PHP to actual change the amount that is stored, passed to the payment gateway etc. For (2) you can check the value stored against the booking for the checkbox field you added and conditionally change it here.
I’m happy to go into more detail if required, or answer any further questions you have.
Stephen HarrisHi Stephen,
Thanks, I will go a head and install the pro plugin as well to my test area on Monday.
I read in the first paragraph of your reply that it’s been dealt with in the forums before. Please can you direct/link me to the form post.I will take a look at the VAT plugin and the extra scripts.
I will attempt to get this to work. I think I will need some help with it, but will see how far I can get with it first.
Regards,
TonyTonyHi Stephen,
Thank you so far, but needless to say I am struggling with it. I need some serious help with this, is it possible for you to help me?
Radio buttons are working just fine as a single group, but I am trying to have 3 groups. How can this be done? Is it possible? I attached an image with the idea.
I will need up to three different radio button groups in one form, one for each type of object:
object 1= event ticket type,
object 2 = hotel ticket type,
and object 3 extras ticket
Plus the checkbox to double the sub total amount.
Can this be done as per the attache image or something similar?Regards,
Tony
TonyHi Stephen,
I forgot to include the link to the test area in the last post.
http://wadaca.webseiten.ccRegards,
TonyTonyHere’s the link https://wp-event-organiser.com/forums/topic/edit-ticketpicker-markup/
Effecitvely, in the
eo-ticket-picker.php
template replace<input type="number" class="<?php echo esc_attr( $this->element->get_class() );?>" data-eo-ticket-qty="<?php echo esc_attr( $ticket_id );?>" name="eventorganiser[booking][tickets][<?php echo esc_attr( $ticket_id );?>]" max="<?php echo $spaces; ?>" style="width:auto;" min="0" value="<?php echo esc_attr( $value );?>" />
with
<input type="radio" class="<?php echo esc_attr( $this->element->get_class() );?>" data-eo-ticket-qty="<?php echo esc_attr( $ticket_id );?>" name="eventorganiser[booking][tickets]" value="<?php echo esc_attr( $ticket_id );?>" />
This just changes the user interface. In theory, someone who knew what they were doing could send a
POST
request to your site to place a booking of multiple tickets. If it’s imperative that a booking only contain one booking then please also see: https://wp-event-organiser.com/blog/tutorial/limit-bookings-to-one-ticket/Stephen HarrisHi Stephen,
Thanks for the script, it is different to the script I had used yesterday.
I now use the script you sent in your last post, the radios buttons work fine.I still don’ understand how I can create different groups of radio buttons.
Is it possible to have 2 or 3 different groups of radio buttons for the various ticket types?
For this would a change be needed to the admin section where the tickets are made?Regards,
TonyTonyHi Tony,
Unfortunately its not possible to group tickets.
The eo-ticket-picker.php gives you full control over the mark-up of the ticket selection so its feasible to group tickets, but the plugin doesn’t provide any way of identifying a ‘ticket group’ or allocating a ticket to a ‘group’.
Stephen Harris -
AuthorPosts