• Resolved Bryan Hoffman

    (@spigot)


    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.

    Thanks,
    ~ 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

    (@cbutlerjr)

    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(document).ready(function(){
    	$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 6 years, 1 month ago by Chad Butler.
    Thread Starter Bryan Hoffman

    (@spigot)

    Hi Chad,

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

    Thanks,
    ~ Bryan

    Plugin Author Chad Butler

    (@cbutlerjr)

    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.