Support » Plugin: Timetable and Event Schedule by MotoPress » Conflict with WooCommerce Memberships

  • Resolved classicridge

    (@classicridge)


    I have a site that uses WooCommerce and Woocommerce Memberships to sell access to video content. I recently added this plugin (TimeTable & Event Schedule), and when this plugin is enabled, the “My Memberships” table on the user’s My Account page (https://example.com/my-account/) disappears. When the plugin is disabled, the table re-appears, with all the users purchased content visible again. The My Account page is a Woocommerce-generated page that also shows users’ order history, account details, etc. It also is supposed to give access to purchased Membership content in a table as described above.

    I am running the latest versions of each of these:
    Wordpress 4.8
    WooCommerce 3.1.0
    WooCommerce Memberships 1.8.6
    TwentySixteen Theme 1.3

    Link to Memberships docs: https://docs.woocommerce.com/document/woocommerce-memberships/

    Thank you for pointing me in the right direction, this is a bit of a head scratcher.

Viewing 9 replies - 1 through 9 (of 9 total)
  • I have narrowed it down to this filter, on line 55 of
    /plugins/mp-timetable/classes/class-hooks.php, see line of code below:

    // to display events with other posts on author page
    add_filter( 'pre_get_posts', array( Post::get_instance(), 'pre_get_posts' ), 9 );

    I commented out the add_filter line and the Memberships table appears, and the Timetable seems to be unaffected.

    Is there a better way to remove the pre_get_posts filter without hacking the plugin file? I tried remove_filter but must be doing it wrong…

    Plugin Author MotoPress

    (@motopress)

    Hi @classicridge,
    We are sorry for inconveniences. Could you email us at motopressapp [at] gmail . com?

    Email sent, thanks

    Can you let me know if the plugin is updated to resolve this, or you can provide a snippet that will allow them to be used together, as I use WooCommerce Memberships also.

    Thanks!

    • This reply was modified 2 years, 1 month ago by  lisaleague.

    I am still working with MotoPress on a solution. A temporary fix is to comment out the line I mentioned above – line 55 of /plugins/mp-timetable/classes/class-hooks.php

    Did you also experience the same problem? The missing Memberships Table on the user account page?

    @classicridge
    Based on this issue, I have not given it a try yet, thanks for figuring out, I imagine there will be a solution soon.

    Plugin Author MotoPress

    (@motopress)

    It’s fixed in version 2.1.10.

    Awesome, thanks again!

    Thanks for the update!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Conflict with WooCommerce Memberships’ is closed to new replies.