• Resolved wmacmill

    (@wmacmill)


    I’m running into a conflict with Buddyboss where I hit an error on the checkout when I have this plugin activated. I can’t specifically tell which side it’s on (goes away when switching themes). Any insight?

    bb-woocommerce.min.js?ver=2.5.50:5 Uncaught ReferenceError: removeClass is not defined

    Uncaught ReferenceError: removeClass is not defined
    at HTMLInputElement. (bb-woocommerce.min.js?ver=2.5.50:5:1871)
    at HTMLDocument.dispatch (jquery.min.js?ver=3.7.1:2:40035)
    at v.handle (jquery.min.js?ver=3.7.1:2:38006)
    at Object.trigger (jquery.min.js?ver=3.7.1:2:70124)
    at HTMLInputElement. (jquery.min.js?ver=3.7.1:2:70726)
    at Function.each (jquery.min.js?ver=3.7.1:2:3129)
    at e..each (jquery.min.js?ver=3.7.1:2:1594)
    at e..trigger (jquery.min.js?ver=3.7.1:2:70701)
    at HTMLBodyElement. (checkout-fees.js?ver=2.12.0:58:38)
    at HTMLBodyElement.dispatch (jquery.min.js?ver=3.7.1:2:40035)

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support komal-maru

    (@komal-maru)

    Hi @wmacmill,

    Thank you for providing details regarding the error you’re experiencing on your site when our plugin is activated alongside the Buddyboss theme.

    To address the issue effectively, could you please send us an email at ‘support at tychesoftwares dot com’ detailing the problem? Additionally, if possible include all necessary temporary credentials for your site along with a video demonstrating the issue you’re experiencing. This will help us better understand and resolve the issue effectively.

    Thread Starter wmacmill

    (@wmacmill)

    I sent this data to them as well:

    removeClass( “selected_payment_method” );

    in the bb-woocommerce.js file.

    This line attempts to use removeClass as a standalone function, which is incorrect in the context of jQuery. In jQuery, removeClass is a method that must be called on a jQuery object. The correct usage should target an element or a set of elements from which you want to remove a class. For example, if the intention was to remove the “selected_payment_method” class from an element that has been checked (selected), you should first select the element using jQuery and then call .removeClass() on that selection.

    Below is an example of how this can be fixed:

    $( document ).on( “change”, “form[name=’checkout’] input[name=’payment_method’]”, function () {
    ? ? if ( $( this ).is( ‘:checked’ ) ) {
    ? ? ? ? $( this ).addClass( “selected_payment_method” );
    ? ? } else {
    ? ? ? ? // Assuming the intention is to remove the class from all inputs that are not checked
    ? ? ? ? $(“form[name=’checkout’] input[name=’payment_method’]”).removeClass( “selected_payment_method” );
    ? ? }
    });

    Basically this is the issue in a nutshell and needs to be updated in the core theme.

    Plugin Support komal-maru

    (@komal-maru)

    Hi @wmacmill,

    Thank you for sharing the example code within this thread.

    I’m pleased to hear that you found a solution to resolve the reported issue with the theme.

    Please let us know, if you have any further queries or need any assistance. We are happy to help you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Issue with BuddyBoss theme’ is closed to new replies.