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.