• Resolved felix_nong

    (@felix_nong)


    Hello,

    Currently if I add the product to compare table and remove the product immediately then the product was removed successfully.

    However, after closing the pop up and if I don’t refresh the page and add that product again then it’s not showing the product inside the compare table, probably because the button still have the class added after removing.

    Is there any way to fix this problem? Thank you very much in advance 🙂

    https://wordpress.org/plugins/yith-woocommerce-compare/

Viewing 1 replies (of 1 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi,
    we fix this issue next update, but for now this can be a possible solution. Add this js code on your custom js file or at the end of woocompare.js file in yith-woocommerce-compare/assest/js

    jQuery(document).on('cbox_closed', function(){
            jQuery('.product a.compare').removeClass('added').html( 'Compare' );
    });

    Whit this code every time you close the popup, button resets and you are able to add the product again to compare table. I know that is not what you want, but for now is the only thing we can do.

    Let me know, regards 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘Unable to add the product again after removing’ is closed to new replies.