Price input is not appearing on the product page.
- Verify the product has Enable Name Your Price checked in the Name Your Price product tab, or that Enable Globally is on in settings.
- Check the Price Field Position setting — if set to “Replace product price,” the standard WooCommerce price hook is removed, which may interact with some themes.
- Check the browser console for JavaScript errors that may be preventing the frontend script from loading.
Customer receives “Please enter a price” error even after entering a price.
- This can happen if the price input renders outside the
<form class="cart">element and the JavaScript sync is broken. Switch Price Field Position to “Before add to cart button” to ensure the input is inside the form. - Check the browser console for JS errors related to
nyp-frontend.js.
Custom price is not persisting through cart updates.
- Ensure you are not using a page caching plugin that is serving a stale cart page. Clear all caches after saving settings.
- Check for conflicts with other cart modification plugins.
Pricing rules are not applying.
- Rules only apply when a product does not have an explicit
_nyp_enabledvalue set. If you previously enabled or disabled NYP on a product individually, the product-level setting will take priority. You may need to clear the product-level setting or use bulk actions. - Check that the product is assigned to the correct category or tag, and that the customer is logged in with the correct role for role-based rules.
Settings are not saving.
- Ensure your user account has the
manage_woocommercecapability. - Deactivate other plugins temporarily to rule out a conflict on the settings save action.
Universal troubleshooting steps:
- Confirm WooCommerce is updated to at least version 6.0.
- Switch to a default theme (Storefront or Twenty Twenty-Four) to rule out theme conflicts.
- Deactivate all plugins except WooCommerce and this plugin, then retest.
- Clear all caches: page cache, object cache, CDN, and browser cache.
- Open the browser developer console and check for JavaScript errors.
- Enable
WP_DEBUGinwp-config.phpand checkwp-content/debug.logfor PHP errors.