Support

Home Forums Event Espresso Premium Price modifier and seating chart

Price modifier and seating chart

Posted: May 28, 2015 at 6:53 am


Joël van de Pol

May 28, 2015 at 6:53 am

I’m using EE 3.1.37.3P, Seating Chart 1.2.1-alpha and Price Modifier 0.0.5.b.

The price modifier addon is still not compatible with the seating chart addon. Two years ago I was told to update the purchase price in EVENTS_SEATING_CHART_EVENT_SEAT_TABLE to make it work. The price modifier addon modifies the price in line 419:

$SQL = 'UPDATE '. EVENTS_ATTENDEE_TABLE .' SET final_price = final_price ' . $plus_or_minus . ' %f where id = %d';	
if ( ! $wpdb->query( $wpdb->prepare( $SQL, $price_mod, $attendee_id ))) {
    $success = FALSE;
}

So I added these lines right after:

$SQL = 'UPDATE '. EVENTS_SEATING_CHART_EVENT_SEAT_TABLE .' SET purchase_price = purchase_price ' . $plus_or_minus . ' %f where attendee_id = %d';	
if ( ! $wpdb->query( $wpdb->prepare( $SQL, $price_mod, $attendee_id ))) {
    $success = FALSE;
}

This works fine, except for the fact that everytime the payment page is reloaded, the purchase price is updated again and again. Without a seating chart, this doesn’t happen, and I’m not sure why that is. Do you have a fix to prevent this behavior with the seating chart?


Jonathan Wilson

May 29, 2015 at 11:51 am

Hi Joel,

Since the Pricing Modifier add-on is a pre-release add-on for EE3, we don’t have any updates for it. All pre-release add-ons are to be used with the understanding that there may be features missing or bugs. At this time, I do not have an estimated time of completion for what you are looking for.

The support post ‘Price modifier and 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