Support

Home Forums Event Espresso Premium Price modifier not working after update

Price modifier not working after update

Posted: March 18, 2015 at 12:19 pm

Viewing 5 reply threads


Stefan Verbeek

March 18, 2015 at 12:19 pm

After updating ee3 event-espresso core to latest version, people starting to complain that reductions (which I set up in questions) did not apply.
Reveted back to version 3.1.36.6.P and everything works as expected.


Josh

  • Support Staff

March 18, 2015 at 1:03 pm

Hi Stefan,

I haven’t seen this in any of the testing we’ve done. Are you using the seating chart add-on for these events? If so then I’m wondering if you have a modification on your copy of Event Espresso 3.1.36.6 that changes the $total_cost variable to allow the Price Modifier to modify a seating chart price.


Stefan Verbeek

March 18, 2015 at 4:38 pm

Yes I’m using the seating chart addon. I did some search in the forum and came up with this solution https://eventespresso.com/topic/seating-chart-with-ticket-discount/#post-65802
Is it possible to change this file and put it in the uploads folder?


Josh

  • Support Staff

March 18, 2015 at 4:57 pm

The forum reply you linked to has a solution for applying promo codes when using the seating chart. Instead of commenting out or deleting the code, you can use a filter hook to override that specific bit of code. This way you do not have to override the entire function or file.

Here’s an example of how you can use the filter:

function remove_seating_chart_override_seat_cost ($total_cost, $registration_id, $event_id) {
    remove_filter('filter_hook_espresso_confirmation_page_total_cost_calculation', 'espresso_seating_chart_override_seat_cost', 10, 3);
    return $total_cost;
}
add_filter('filter_hook_espresso_confirmation_page_total_cost_calculation', 'remove_seating_chart_override_seat_cost', 5, 3);

The above code can be placed into a custom snippets plugin.


Stefan Verbeek

March 18, 2015 at 6:01 pm

Works like a charm, many thanks!!!!


Dean

March 19, 2015 at 5:54 am

Marking this thread as resolved. If you need to discuss it further please open up a new forum thread and link to this one. Thanks!

Viewing 5 reply threads

The support post ‘Price modifier not working after update’ 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