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:
-
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?
-
Can you communicate this issue to the developers of MEC Calendar so they could include it in the following updates?
Thanks