Skip to content

Instantly share code, notes, and snippets.

@PluginRepublicSupport
Created April 28, 2023 14:41
Show Gist options
  • Save PluginRepublicSupport/f336c5963c4b4d9a2bcd183fccec5e57 to your computer and use it in GitHub Desktop.
Save PluginRepublicSupport/f336c5963c4b4d9a2bcd183fccec5e57 to your computer and use it in GitHub Desktop.
Increase/Decrease Price Quantity Change
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