Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello! Thanks for advice, but where i must put this?
    in wc-quantity-increment.min.js?
    it doesn’t work – buttons just disappear.

    Thread Starter AJ Clarke

    (@ajclarke)

    I’ve updated the code to fix some bugs – https://gist.github.com/wpexplorer/41d27d65f2b287db9a2eee1a0408557d

    Hi there,

    where should I put this code?

    Thread Starter AJ Clarke

    (@ajclarke)

    Replace the js files under assets. Or you can load the script on your site via a child theme or if you are using a custom theme via your theme rather then using the plugin.

    I recently:
    – deactivated WooCommerce Quantity Increment plugin
    – changed the code of wc-quantity-increment.js file that is located under wp-content/plugins/woocommerce-quantity-increment/assets/js folder with your code
    – after that created minified version wc-quantity-increment.min.js using online tool
    – activated the plugin back and refreshed the page.
    There are no changes.

    After that I tried using separate javascript:
    – deactivated WooCommerce Quantity Increment plugin
    – copied the file wc-quantity-increment.min.js with your content inside to
    wp-content/themes/mystile-child/js/ folder
    – added following code to wp-content/themes/mystile-child/functions.php:
    /****************************/
    function theme_js() {
    wp_enqueue_script( ‘theme_js’, get_stylesheet_directory_uri() . ‘/js/wc-quantity-increment.min.js’, array( ‘jquery’ ), ‘1.0’, true );
    }
    add_action(‘wp_enqueue_scripts’, ‘theme_js’);
    /****************************/
    and I still can’t see any changes.

    Nor the increment buttons nor quantity (for example 1) is visible, only Add to cart button as before.

    • This reply was modified 7 years, 10 months ago by Eli.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Works Great & Here is the fix for Woo 2.6.0’ is closed to new replies.