• Resolved codimex

    (@codimex)


    Hi. Thank you for this plugin. Really smart booking process!

    However, I’m facing a critical error when I open “My account” Woocommerce page in the dashboard tab, where the booking table is embedded. The error appears when I make the first booking (an empty table returns no error).

    I’ve tried switching to a Twenty-sth theme, but the error persists. I’d like to prevent the booking table to appear in My Account, via php (not css’ display:none;). Is there any hook I can add to my functions.php or code snippet?

    I’d like to remove it via php because I assume there’s some kind of conflict, and also because embedding it directly on the dashboard is not very elegant (it should be, ideally, in a dedicated “Events” tab, like “Addresses”, “Payment Methods”, “Orders”…)

    Thank you for your help, have a nice week!

    • This topic was modified 2 years, 1 month ago by codimex.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Md. Abdullah Al Mahim

    (@aamahin)

    Please copy the below code and paste it on your themes functions file.

    add_action( 'wp_head', 'mep_remove_my_event_order_list_from_my_account_page_action' );
    function mep_remove_my_event_order_list_from_my_account_page_action() {
    	remove_action( 'woocommerce_account_dashboard', 'mep_ticket_lits_users' );
    }
    Thread Starter codimex

    (@codimex)

    Works perfectly! Thank you! I’m seeing no error now!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘My Account critical error’ is closed to new replies.