How to resolve conflict with WordPress Events Calendar Pro by Tribe

If you have an issue where purchasing an event product created via the WordPress Events Calendar Pro plugin by Tribe through our ePDQ payment gateway plugin, which returns a

“Sorry, this order is invalid and cannot be paid for” error on the checkout page. We have created this guide for you.

What’s the cause of the issue?

A normal product created with WooCommerce will not have the issue, and this only affects event products created via the WordPress Events Calendar Pro plugin by Tribe.
The payment can not be processed because ?provider=tribe_wooticket is getting added to the order-pay URL.

How can you solve it?

We had gotten in touch with the Tribe team about this issue, and they were able to find a code snippet to resolve it. You can access the code from here,

Note: Before attempting the fix, please do make sure to have your hosting provider back up your site as this solution would involve copy and pasting code on your theme's function.php file.<br>

To apply the fix, you would need to copy and paste the code to the child theme’s functions.php file or in a functionality plugin. If you are not sure how to have a child theme, (1) you could consider following the steps in this article,
(2) you can also use a third-party plugin like the CodeSnippets plugin to add the code instead of manually adding it on your theme’s function.php file.

Image 2020-06-18 at 6.30.04 PM

Or (3)you could consider hiring a developer at Codeable to do all of these for you.

Was this helpful?