Support

Home Forums Seating Chart Add-on (EE3) Promo codes not working with Seating Chart

Promo codes not working with Seating Chart

Posted: October 1, 2014 at 7:04 pm

Viewing 4 reply threads


Eli

October 1, 2014 at 7:04 pm

EE3 Version 3.1.36.5.P
Seating Chart Version 1.2.1-alpha
latest plugins installed for EE3
http://www.tkafinearts.com

To reproduce problem:
Go here: http://www.tkafinearts.com and click on Willie Wonka Jr 10-27-14 icon in the grid. Then click “Buy Tickets” button on the next page.
Next Click the grey box to select a seat from the top row. (note the price of the seat before clicking OK box. ie: the top row is $15)
Fill out info and then use “student123” for the promo code.
Hit Submit.

It will show that a $10 discount was applied but the total is still $15.
If I deactivate the Seating chart plugin it works fine.
I need the promo code to work with the Seating chart or this is DOA for us.

Any ideas what the problem could be?


Eli

October 2, 2014 at 6:45 am

Can anybody help with this please? This is urgent.


Josh

  • Support Staff

October 2, 2014 at 10:05 am

Hi Eli,

Normally the seating chart overrides and nullifies any discounts or other pricing besides what is in the seating chart. However, if you go into includes/process-registration/payment_page.php and comment out lines 125-137:

/*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;
        } 
	 
	} */

then it should allow the coupon code to work.


Eli

October 2, 2014 at 4:20 pm

Thank you so much!! That worked!


Lorenzo Orlando Caum

  • Support Staff

October 2, 2014 at 7:02 pm

Thanks for confirming that this edit worked. If you have any other questions, just create a new support post in our support forums:

https://eventespresso.com/support/forums/


Lorenzo

Viewing 4 reply threads

The support post ‘Promo codes not working with Seating Chart’ 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.

Event Espresso