Posted: November 7, 2013 at 1:11 pm
|
With seating chart can I have some ticket discount such Senior and the remaining tickets full price? |
Hi Michael, How are you today? Are you asking whether you can have different tickets with different prices? Or do you want the same ticket with multiple prices? The former is possible, not the latter. |
|
|
The whole reason I bought this was to sell seats at shows. I needed to be able to offer a discount for anyone who is a senior, child or military – all the same discount amount. However, In that same transaction I presumed someone would be able to; for example, buy 2 adult and three children’s discounted tickets. The seating chart disables this from happening – very frustrating. Am I missing something – a work around I don’t know about? That is how tickets to events are usually sold. I was excited when I saw the price modifier, but that actually zero’s the price when a second ticket is bought. If you could please add this to the features request, or let me know how much it would be to have it added. I am stuck at this point. |
|
If you want discount codes to work with the seating chart, there is a block of code in includes/process-registration/payment_page.php, lines 125-137, that you can comment out or delete: // Added for seating chart addon // This code block overrides the cost using seating chart add-on price if ( defined('ESPRESSO_SEATING_CHART') && class_exists("seating_chart") && seating_chart::check_event_has_seating_chart($event_id) !== false) { $SQL = "SELECT sum(sces.purchase_price) as purchase_price "; $SQL .= "FROM " . EVENTS_SEATING_CHART_EVENT_SEAT_TABLE . " sces "; $SQL .= "INNER JOIN " . EVENTS_ATTENDEE_TABLE . " ea ON sces.attendee_id = ea.id "; $SQL .= "WHERE ea.registration_id = %s"; if ( $seat = $wpdb->get_row( $wpdb->prepare( $SQL, $registration_id ))) { $total_cost = number_format( $seat->purchase_price, 2, '.', '' ); //$event_price_x_attendees = (float)$final_price; } } |
|
I did that, but it applies a discount to all the tickets. I need to be able to do 2 adult and 2 children with only the 2 children tickets marked down. |
|
I’ve been doing some testing, and I can tell you that if the price modifier question is a radio button, and you comment out the line 77 in includes/functions/attendee_functions.php: $val = apply_filters( 'filter_hook_espresso_form_question_response', $val, $question, $attendee_id ); then the price modifier will work. |
|
NVM, that line doesn’t affect it. I can’t reproduce the problem consistently. I’ll have to do more testing. |
|
I’m stumped at this point, and maybe you can help me out. I saw the price modifier zero out the price when I was testing earlier, but now I cannot get it to do it again. Without that chunk of code commented out in payment_page.php, it just gives me the seating chart price, ignoring the Price Modifier. With that chunk of code commented out, it seems to be working fine. Either way, I can’t get it to zero out the price again with the Price Modifier. If you can reproduce the problem, let me know exactly what steps it takes to do it. |
|
Sure, give me just a few minutes. I really appreciate you helping with this! |
|
With the first set of code commented out. If you apply the discount code to only the second ticket it says “FREE”. I have tried several ways and what I am finding is the price modifier is not being applied to the second, or later, attendee. It is like the discount where it applies the discount to all the tickets purchased. |
|
From what I can tell from testing, it looks like the PM zeroing out the price has to do with going back and forth through the registration process. There was some code added in to prevent the duplication of attendees when this is done, and it looks like that is deleting the entry from the seating chart database that tracks which seats have been reserved. $wpdb->query($wpdb->prepare( $SQL, $v->id )); it should prevent the zeroing out problem. Make sure you empty your session by going to the Registration Cancelled page or the Thank-You page before resuming testing. |
|
The discount with price modifier is not working. Not sure what is different from your files to mine. |
|
What versions of WP, EE, the seating chart, and the PM add-on are you using?
|
|
WordPress 3.7.1. website link http://faopa.org/ |
|
The Price Modifier does not work with the Multi-Event Registration. Sorry, I was testing using the regular registration process. |
The support post ‘Seating chart with ticket discount’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.