Created
April 28, 2023 14:41
-
-
Save PluginRepublicSupport/f336c5963c4b4d9a2bcd183fccec5e57 to your computer and use it in GitHub Desktop.
Increase/Decrease Price Quantity Change
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('wp_footer', function() { | |
?> | |
<script> | |
jQuery(document).ready(function($) { | |
setTimeout(function() { | |
$('.pewc-has-extra-fields form.cart button.minus, .pewc-has-extra-fields form.cart button.plus').click(function(e) { | |
$(this).parent().find('.quantity input.qty').trigger('change'); | |
}); | |
}, 1000); | |
}); | |
</script> | |
<?php | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment