Answers to common questions about Name Your Price: setting up prices, tax, customizing the product page, and our refund and support policies. If you can’t find what you need, see Questions & Support at the end of this page.
How do I change or move the markup?
↑ Back to topThis is a developer-level doc. It’s written for developers who are comfortable with PHP, JavaScript and WordPress hooks. If you aren’t, a Woo agency partner or developer can help. Custom code isn’t covered by our Support Policy, so we can’t write, debug or maintain customizations for you.
Where each part is added:
| Part | Added on |
|---|---|
| Suggested price text | woocommerce_before_add_to_cart_form, in place of WooCommerce’s own price, which Name Your Price removes from woocommerce_single_product_summary |
| Price field | woocommerce_before_add_to_cart_button (priority 9). Variable products use woocommerce_single_variation (priority 12) instead. |
| Minimum price | wc_nyp_after_price_input |
| Suggested price buttons | wc_nyp_before or wc_nyp_after (priority 5), depending on the layout |
To move a part, remove it from its hook and add it to another. For example, to move the price field on simple products:
add_action( 'woocommerce_before_single_product', function () {
if ( function_exists( 'WC_Name_Your_Price' ) ) {
remove_action( 'woocommerce_before_add_to_cart_button', array( WC_Name_Your_Price()->display, 'display_price_input' ), 9 );
add_action( 'the_hook_you_want', array( WC_Name_Your_Price()->display, 'display_price_input' ) );
}
} );
To change the markup, use the actions around the price field (see Hooks: Price field). Alternatively, override single-product/price-input.php or single-product/minimum-price.php in your theme. Prefer hooks, because template overrides need updating when the plugin’s template changes.
How do I remove the stylesheet?
↑ Back to topGo to WooCommerce > Settings > Name Your Price and tick Disable stylesheet under Styles. See Settings: Disable stylesheet.
The stylesheet styles the price field and price text, the suggested price buttons and the Edit amount link and price field in the cart. With it off, your theme needs to style all of these, or the buttons and the cart’s price field will look broken.
Does Name Your Price charge tax on the amount the customer enters?
↑ Back to topYes, as long as your store charges tax and the product is set up as taxable. WooCommerce works out the tax, with one difference for stores that enter prices including tax, explained below.
Two WooCommerce settings decide what the customer pays:
1. The product’s Tax status. Edit the product, and in the Product data box on the General tab, look just below the Name Your Price fields. Set Tax status to Taxable and Tax class to the class you use for your other products (usually Standard). If Tax status is None, or the tax class has no rate, no tax is added no matter what the customer enters.
2. Your store’s “Prices entered with tax” setting, under WooCommerce > Settings > Tax. This decides whether the customer’s amount already includes tax or has tax added on top:
- Yes, I will enter prices inclusive of tax : a customer who enters $50 pays $50, and the tax is worked out inside that amount. With a 10% rate, the cart shows $45.45 plus $4.55 tax. This is true for every customer, including those whose location has a different tax rate or none. They still pay exactly $50. For a fixed-price product, WooCommerce would change the total for those customers, but a customer who typed $50 expects to pay $50.
- No, I will enter prices exclusive of tax : a customer who enters $50 pays $55, with 10% tax added on top.
That setting applies to your whole store, so if you change it for Name Your Price products, check the prices on your other products too.
If you do not want tax charged on a particular Name Your Price product, a donation for example, set that product’s Tax status to None.
For setting up tax rates and the display options, see Setting up taxes in WooCommerce.
Developers can switch the “pays exactly what they entered” behaviour off. See Hooks: Tax.
How can I hide the minimum price?
↑ Back to topEdit the product and tick Hide Minimum Price, next to the Minimum Price field. The minimum is still enforced. A customer who enters less sees “Please enter a higher amount.” instead of the exact minimum.
To change the wording of the minimum price instead of hiding it, use Minimum Price Text in the Settings, or Minimum price text on the product’s own Name Your Price tab.
How do I make a product “sold individually”?
↑ Back to topBy default, the same Name Your Price product can be added to the cart more than once when the prices differ. WooCommerce builds each cart item’s key from the item’s details, and the entered price is one of them. So each price becomes its own item, even on a product marked Sold individually.
To allow one per cart, whatever the price:
- Edit the product and tick Sold individually on the Inventory tab, as you would for any product.
- Go to WooCommerce > Settings > Name Your Price > Advanced Options and turn on Enable strict sold-individually. See Settings: Enable strict sold-individually.
With both in place, the product appears in the cart at most once.
How do I leave the price field empty?
↑ Back to topIt’s empty by default. No code is needed. The field only starts with an amount when:
- a link pre-fills it (see Developers: URL parameters), or
- the product has suggested price buttons. The default amount is selected, and the field opens empty when the customer chooses Custom.
How do I add a placeholder to the price field?
↑ Back to topUse the Input Placeholder Text setting. It’s the grey hint inside the empty field.
- For all products: WooCommerce > Settings > Name Your Price, under Text strings. See Settings: Text strings.
- For one product: Input placeholder on the product’s Name Your Price tab. See Product settings.
Can a link pre-fill the price or add a product to the cart?
↑ Back to topYes. Add nyp to a link to set the price:
https://example.com/checkout/?add-to-cart=123&nyp=25
This adds the product with ID 123 to the cart at 25 and goes straight to checkout. The price is checked against the product’s minimum and maximum, as it is on the product page. To pre-fill the product page instead, so the customer can still change the amount, link to the product with ?nyp=25.
For all the parameters, including subscription billing periods, see Developers: URL parameters.
How can I edit many Name Your Price products at once?
↑ Back to topOne product at a time, from the product list: hover over a product in Products and choose Quick Edit. It has the Name Your Price checkbox and the Suggested, Minimum, Hide minimum price and Maximum fields. WooCommerce’s Bulk Edit doesn’t include these fields.
Many products: use WooCommerce’s CSV export and import. Export your products, change the Name Your Price columns, and import the file again. The columns:
| Column | What it holds |
|---|---|
| Is NYP? | 1 turns Name Your Price on for the product, 0 turns it off. Leave it empty to keep the current setting. |
| Has NYP? | Variable products: whether any variation is Name Your Price. It’s recalculated when the product is saved, so leave it as exported. |
| Suggested price | The suggested price. |
| Suggested prices | The suggested price buttons, as a list, for example [{"price":"10","default":false},{"price":"25","default":true}]. New in 4.0. |
| Minimum price, Maximum price | The minimum and maximum. |
| Hide NYP min? | 1 hides the minimum price. It’s still enforced. |
| Hide NYP variable price? | Variable products: 1 hides the price range. |
| Hide quantity input, Suggested price text, Minimum price text, Call to action label, Input placeholder, Shop button text, Single product button text, Cart edit link text | The settings on the product’s Name Your Price tab. See Product settings. New in 4.0. |
How else can I customize Name Your Price?
↑ Back to topThis is a developer-level doc. It’s written for developers who are comfortable with PHP, JavaScript and WordPress hooks. If you aren’t, a Woo agency partner or developer can help. Custom code isn’t covered by our Support Policy, so we can’t write, debug or maintain customizations for you.
- Developers: where to add custom code, URL parameters, and links to the Hooks, JavaScript events and REST API and Store API references.
- Snippets library on GitHub: ready-made examples, such as adding a product to the cart in code, or supporting a custom product type.
I’m a non-profit or tax-exempt
↑ Back to topIf you’re tax-exempt or a nonprofit, VAT is automatically validated and exempted at checkout. For U.S. nonprofits, taxes can be refunded after purchase upon providing a valid tax-exempt certificate. Simply reply to your invoice email or contact the WooCommerce Happiness team to request this adjustment. Please note that subscription-related inquiries are best handled by the WooCommerce Happiness team, ensuring your questions are resolved promptly. For further details, visit WooCommerce‘s official refund policy page.
Cancellation & Refunds
↑ Back to topOur cancellation and refund policy follows WooCommerce‘s guidelines, as we are third-party developers in the WooCommerce Marketplace. Refunds may be available under specific conditions, such as product issues or unmet expectations, as outlined in the WooCommerce Refund Policy. Please review their policy for full details.
Requesting a Refund
↑ Back to topTo request a refund for an extension or theme subscription purchased from the WooCommerce.com Marketplace:
- Go to your account dashboard at WooCommerce.com > Account > Orders.
- Click the order number of the product you want to refund.
- Click the vertical ellipsis icon (three dots) next to the order total column. This opens a prompt to request a refund.
- Note: The refund option via the ellipsis icon will only appear within the 30-day refund window.
- Click the link to Request a refund; a form will appear.
- Select a refund reason from the drop-down menu and add your reason for the refund request.
- Once complete, click the Request refund button.
Can I use Name Your Price to set up a “Pay Your Bill” system?
↑ Back to topYes, you can use Name Your Price to create a system where customers pay bills or invoices through your WooCommerce store. This setup involves customizing product settings to accept user-defined prices. For a step-by-step guide, visit our guide here.
Questions & Support
↑ Back to topHave a question before you buy, or need help after? Contact the Name Your Price team through WooCommerce.com. You’ll be asked to log in to your WooCommerce.com account first.
Document Version: 2.0.0
Last Updated: November 9th, 2026
NYP Version Covered: 4.0.0