Name Your Price v4.0.0 – Suggested Price Buttons, Analytics Report & Edit Amount in Cart
Name Your Price 4.0.0 is a major release. Customers can pick from a row of suggested price buttons, change their amount without leaving the cart, and you get a dedicated Name Your Price report in WooCommerce Analytics showing how much customers pay above your minimums. The release also fixes how prices are charged when your prices include tax, and closes three security holes in the cart and checkout.
Important: before you update
- Name Your Price 4.0.0 requires WordPress 6.5 and WooCommerce 9.7 or later. PHP 7.4 is still the minimum.
- It includes security fixes for stores on Name Your Price 3.5.0 or later. Update as soon as you can.
- If you use the Suggested Amounts mini-extension, your amounts move into Name Your Price automatically. Afterwards you can deactivate and delete the mini-extension.
- If your prices include tax, customers outside your store’s base tax location now pay exactly the amount they enter. See Customers pay the amount they enter when prices include tax below.
- If you have custom code or an app that adds Name Your Price products to the cart through the Store API, it needs a small update. See For developers.
New
Suggested price buttons
A Name Your Price product can now offer several suggested prices as buttons on the product page, for example 10, 25 and 50 on a donation, with one of them selected by default. Customers click a button to choose that price, or select Custom to type their own amount. Your minimum and maximum still apply, and a suggested price outside them is left off the page. On a subscription product, including each variation of a variable subscription, the billing period shows with the suggested price.

You set the list in the product’s new Name Your Price tab: type an amount and select Add price for each one, then click the star in the Default column to choose the price that starts selected.

The Suggested Amounts mini-extension did this job before 4.0. When you update, each product’s suggested amounts move into its Suggested Prices list, and the amount the mini-extension preselected (usually the second one) becomes the default. That default also replaces the product’s single suggested price. A notice in WooCommerce → Home asks you to review your products, so check that the right amount is marked as the default on each one. Its Manage plugins button takes you to the mini-extension on the Plugins screen.
On a product with several suggested prices, Quick Edit shows the default in a read-only Suggested field, with the note “This product has several suggested prices. Edit them on the product screen.”
Edit the amount without leaving the cart
When a customer selects Edit amount in the cart, a price field now opens right there in the cart. They type the new amount, select Update, and the cart line and totals change in place. Before 4.0 the link sent them back to the product page. The inline edit works in the classic cart, the Cart block and the Mini-Cart block, and it checks the new amount against your minimum and maximum like the product page does. If the amount is refused, the message appears inside the edit form, next to the field the customer needs to fix.

A Name Your Price report in WooCommerce Analytics
Analytics → Name Your Price is a new report built for products where customers choose the price. Alongside total revenue and items sold, it shows your Revenue Above Minimum and the share of items customers Paid Above Minimum, plus the average price paid per product and how far above the minimum it sits. You can filter by date and product, compare periods and download the table as a CSV, like any other Analytics report. A breakdown sorts items by what customers paid: Below Minimum, Paid Minimum, between the minimum and the suggested price, Exact Suggested and Above Suggested. Orders created or edited through the WooCommerce REST API count too, and the Below Minimum band is where you’ll find any of those priced under your floor.
The report is built with the same safeguards as the rest of WooCommerce Analytics. Changing its data, such as starting a historical import or saving an exchange rate, needs an account that can manage WooCommerce, such as an Administrator or Shop Manager. Access to reports alone isn’t enough. In the CSV download, a cell that starts like a spreadsheet formula (for example, a product title beginning with “=”) is escaped so it opens as plain text.

If your store has orders from before 4.0, the report offers a Historical Data Import. Select Import Data to add those orders. Imported orders use each product’s current minimum and suggested prices, so the above-minimum figures are estimates if you’ve changed those prices since.
Product-level text and display settings
The Name Your Price tab has a Display section where you can change the wording for a single product: the suggested price text, the minimum price text, the call to action label, the input placeholder, the shop and single product button text, and the cart edit link text. You can also hide the quantity field for that product. Leave a field empty to use your store-wide text from the Name Your Price settings.
Help translate Name Your Price
A new Translate link on the Plugins screen leads to translate.backcourt.io, where anyone can help translate Name Your Price into their language.
Updates
Tested with WooCommerce 11.3 and WordPress 7.1
Name Your Price 4.0.0 is tested with WooCommerce 11.3.0 and WordPress 7.1.0. The minimum versions rise to WordPress 6.5 and WooCommerce 9.7, and PHP 7.4 stays the same.
Variable billing periods are replaced by subscription plans
Older versions of Name Your Price let a customer choose how often a simple subscription bills. That setting has been deprecated since version 2.4.0 and is removed in 4.0.0. To offer a choice of billing period, add several subscription plans to the product instead.
When you update, each of these products switches to its minimum billing period, so its minimum and maximum prices keep their meaning, and its suggested price and subscription length convert to that period. Existing subscribers keep the billing period they chose and renew at the same amount. A notice lists the products that were updated so you can review them.
Fixes
Customers pay the amount they enter when prices include tax
If your store enters prices inclusive of tax, customers now pay the amount they type, whatever their tax rate. Before 4.0, customers outside your base tax location and tax exempt customers paid less: WooCommerce took your base tax off the amount they entered. On a store with a 20% base rate, a tax exempt customer who entered 12.00 was charged 10.00. If you prefer the old behaviour, a developer can restore it (see For developers). (#310)
Order again had the same problem and now uses the price the customer entered. For older orders it adds back the tax WooCommerce removed.
Security fixes in the cart and checkout
- The Store API, which powers the Cart and Checkout blocks, applied an entered price to any product, not only Name Your Price products, so a visitor could add any product to the cart at a price of their choosing. Only Name Your Price products now take an entered price. This affects Name Your Price 3.5.0 and later. (#334)
- On a subscription with a variable billing period (the setting removed above), the Store API checked the price against one billing period’s minimum but could apply another, so a customer could pay the monthly minimum once a year.
- The classic checkout let through a Name Your Price item with no entered price, such as a product switched to Name Your Price while it sat in a cart, and charged its saved price, which could be below your minimum or nothing at all. The classic checkout now refuses it, as the block checkout already did.
Prices typed with the wrong decimal mark are refused instead of misread
On a store whose decimal separator is a comma, a customer who typed 7.50 was charged 750,00, a hundred times the intended amount. The reverse happened on stores that use a dot. Name Your Price now reads prices in your store’s format and refuses anything that could mean a different amount, with a message naming your decimal mark: “Please use , for decimals.” (#336)
More fixes
- Elementor Pro single product templates showed the suggested price twice. It now shows only where you place the Product Price widget. (#205)
- The Cost field (WooCommerce’s cost of goods) disappeared from a variation when Name Your Price was enabled on it.
- A product sold on a single subscription plan with no one-time option gave no sign that the price recurs. The price label now includes the billing period, for example “Name your price ( $ / month )”. (#329)
- After a customer edited a price in the cart, adding the same product at the same price created a second cart line instead of adding to the edited one.
- A bundle containing a Name Your Price item that isn’t priced individually was refused at the block checkout, even though the bundle price already covers that item.
- Adding to the cart through CoCart could add a price with a thousands separator or comma decimal as a smaller amount (1,000.00 as 1).
- An inventory or stock update through the REST API that left out the minimum price reset the product’s price to 0, which broke sorting by price. (#331)
- On a subscription product, the billing period was tacked onto the end of the minimum price text. It now sits with the amount. (#324)
- On a store with tax-inclusive prices, Change price on a subscription opened with the amount before tax. It now opens with the amount the subscriber entered. (#326)
- In the Cart block, the Edit amount link sat flush against the product description. It now has space around it. (#333)
- With the quantity field hidden, the Add to cart button didn’t line up with the price field. It now does, and custom code that hides the quantity through the
wc_nyp_disable_quantity_selectorfilter gets the matchingnyp-hide-quantityclass too.
Improvements
Your tax suffix shows after Name Your Price prices
The price display suffix from WooCommerce → Settings → Tax (for example “incl. VAT”) now appears after a Name Your Price product’s suggested price, and after a variable product’s “From:” price, as it does for your other products. A product with no suggested price shows it after the minimum price.
Faster feedback on the price field
The price field now checks the amount when a customer pastes or autofills it, not only when they type. An error clears as soon as the price is valid, and a new error appears once the customer pauses typing, instead of waiting until they leave the field.
A new feedback survey
The “Help improve Name Your Price” notice now goes only to stores that have used Name Your Price for 30 days or more, and it links to a new feedback survey.
For developers
Name Your Price 4.0.0 removes code that was deprecated in the 2.x and 3.x releases. Check these before you update a site with custom code:
- Store API prices are now in minor units. Send
nypas a whole number in the currency’s smallest unit, like the prices the Store API returns:750for 7.50, for both/wc/store/v1/cart/add-itemand the edit request to/wc/store/v1/cart/extensions(namespacewc-name-your-price). A decimal such as7.50now returns a 400 error, and a whole number such as7reads as 0.07. A store updated from 3.x gets a notice the first time a Store API request sends a price. Details are in the Store API documentation. - Deprecated hook names are gone. The
woocommerce_nyp_*,woocommerce_name_your_price_*andnyp_*names deprecated in 3.0.0 no longer run, and a callback still attached to one fails silently. Switch to thewc_nyp_names listed in the hooks reference. - Variable billing helpers are deprecated or removed, along with the
nyp-periodrequest parameter and thenyp_periodcart item data. - REST API: order line items now show read-only Name Your Price fields (
nyp,nyp_price,nyp_suggested_price,nyp_minimum_price,nyp_maximum_price); set a line’s price withsubtotalandtotalas for any product. The product variation endpoints now read and write the Name Your Price fields (#330). See the REST API documentation. - New hooks:
wc_nyp_beforeandwc_nyp_afterintemplates/single-product/price-input.php, and thewc_nyp_price_includes_customer_taxfilter. Returnfalsefrom it to keep the pre-4.0 tax-inclusive behaviour described above.
The full list of changes is in the plugin’s changelog.txt.
Why this matters
- Suggested price buttons guide customers toward the amounts you hope for, while they stay free to type their own
- Customers change their amount in the cart without a round trip to the product page
- The Name Your Price report shows how much your customers give above your minimums, product by product
- Tax-inclusive stores collect the amount customers enter, whatever their tax rate
- The security fixes stop visitors setting their own price on products that aren’t Name Your Price products