Support » Plugin: WP-Members Membership Plugin » JS error on WooCommerce Checkout

  • Resolved Bryan Hoffman


    After updating to WP-Members 3.2.4 we get a javascript issue on WooCommerce checkout pages. There is no actual console error, but js accordions stop working. This includes the ‘enter coupon’ accordion, as well as the ‘Ship to different address’ accordion (it’s always open now)

    Tested on staging server, and rolling back to 3.2.3 resolves the issue.

    ~ Bryan

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Chad Butler


    My guess is that it’s the result of a change some of the plugin’s jQuery to use (ironically) noConflict().

    If you go to the plugin file /inc/class-wp-members.php line 1391 and locate the following:

    var $j = jQuery.noConflict();
    	$j('.wpmem_loginout').html('<a class="login_button" href="<?php echo $logout; ?>"><?php echo $this->get_text( 'menu_logout' ); ?></a>');

    Change it to this:

    jQuery('.wpmem_loginout').html('<a class="login_button" href="<?php echo $logout; ?>"><?php echo $this->get_text( 'menu_logout' ); ?></a>');

    I’m considering that rollback in the plugin, so if you would make that change and let me know if that fixes the issue for you I would appreciate it!

    • This reply was modified 1 year, 3 months ago by Chad Butler.

    Hi Chad,

    Thanks for the quick reply. I swapped out the code and it indeed does solve our issue.

    ~ Bryan

    Plugin Author Chad Butler


    Thanks Bryan – I’m going to publish that change tonight.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘JS error on WooCommerce Checkout’ is closed to new replies.