• Resolved eivic

    (@eivic)


    I’m trying to overwrite the products_compare.js file in my child-theme. I created the directory ‘woocommerce-compare_products/js/products_compare.js’ in my child theme and added a few console.log(); to test if the file had been overwritten but I was unsuccessful.

    My main goal is to limit number of products to compare, but this is the only detail I can find on the subject https://wordpress.org/support/topic/limit-number-of-products-to-compare/

    Thanks,
    Edward

Viewing 1 replies (of 1 total)
  • Plugin Author Dmytro Holovnia

    (@dholovnia)

    There are no ways to overwrite Javascript files in the child-theme. What I mean was to edit original file in the plugin.

    Regards,
    Dima

Viewing 1 replies (of 1 total)

The topic ‘Overwriting products_compare.js’ is closed to new replies.