Skip to content

Instantly share code, notes, and snippets.

@woogists
Last active May 14, 2024 12:41
Show Gist options
  • Save woogists/c9d158f239337911fb5a878b84c42f97 to your computer and use it in GitHub Desktop.
Save woogists/c9d158f239337911fb5a878b84c42f97 to your computer and use it in GitHub Desktop.
[Product Addons] Set default input values for addons.
// Set default value to 0 for Custom price input
jQuery(document).ready(function(){
jQuery('.wc-pao-addon-custom-price').val("0");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment