Problem using Woocommerce checkout with MEC Calendar

Hi,

I’m referring to this support post from 12 days ago as it’s already closed:

I managed to fix the problem by altering the code of the plugin. I noticed that when you use Woocommerce payments and buy a ticket, they don’t set the billing email explicitly on the order details. So it works for logged in users but not for standard website visitors that want to buy a ticket.

The solution:

i added 2 lines of code in the file /modern-events-calendar/app/features/gateways.php

in the class MEC_gateway_woocommerce extends MEC_gateway -> public function create_order()

The following 2 lines were added:

$attendee_email = isset($transaction['tickets']) ? $transaction['tickets'][0]['email'] : 'test@test.be';
update_post_meta($order->id, '_billing_email', $attendee_email);

just before the comment line

// Update Order Billing First Name and Last Name

My questions now:

  1. Is there a way i can put these modifications in my Pro Child Theme so that they don’t get overwritten with the next update?

  2. Can you communicate this issue to the developers of MEC Calendar so they could include it in the following updates?

Thanks

Hello There,

Thank you for the very detailed post information.

1.) Since the alteration was made in the core files of the MEC plugin, this change cannot be added in the Pro Child theme. To avoid you change from being overwritten, please do not update the plugin right away. Or you can update the plugin and then edit the /modern-events-calendar/app/features/gateways.php file again and insert your code again.

2.) Yes we will coordinate with the creators of the plugin and forward this issue so that they may included this in their next release updates.

Best Regards. Have a good day.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.