Name Your Price v3.8.1 – Subscription Price Labels, Edit in Cart Plan Fix & WooCommerce 11.1

Name Your Price 3.8.1 is a fix release for stores that sell subscriptions through All Products for WooCommerce Subscriptions, whether the extension runs on its own or as the copy bundled with WooCommerce Subscriptions 9.0. The Subscribe option on a Name Your Price product now shows the amount the customer entered, updating as they type, and editing a price from the cart keeps the subscription plan the customer originally chose. The release is also tested with WooCommerce 11.1.0 and WordPress 7.1.0. There is no database update with this release.

Updates

Tested with WooCommerce 11.1 and WordPress 7.1

Name Your Price 3.8.1 is tested with WooCommerce 11.1.0 and WordPress 7.1.0. Minimum requirements are unchanged: WordPress 6.2, WooCommerce 8.2 and PHP 7.4.

Fixes

The Subscribe option shows the customer’s price as they type

WooCommerce Subscriptions 9.0 bundles All Products for WooCommerce Subscriptions into the core plugin, so its purchase options appear on every Name Your Price product with subscription plans. Those option labels build their price text from the product’s catalog price, and on a Name Your Price product that text is not a price. With a suggested price set, the option read “Subscribe for Suggested price: $14.00 / month”, nesting one label inside another. Without a suggested price it read “Subscribe for / month”, with no amount at all. The charge itself was always right: whatever the customer entered became the recurring price. The label was the problem.

3.8.1 replaces that borrowed text in both states. Before the customer enters an amount, the option describes the plan without inventing a number: “Subscribe every month” on a product with a single plan, or “Subscribe” when the product offers several. As soon as the customer types an amount, the label updates live to the real price, so entering 25 on a monthly plan shows “Subscribe for $25.00 / month”. The amount is formatted by Name Your Price’s own price formatter, so the currency symbol, position and decimals follow your store’s settings.

Editing a price from the cart keeps the subscription plan

Name Your Price 3.8.0 reworked the Edit in Cart flow so a price edit replaces the cart line cleanly. 3.8.1 closes the gap that flow left for subscription lines. When a customer added a Name Your Price product as a subscription and then selected Edit price in the cart, the product page came back with One-time purchase selected. Updating the price replaced the subscription line with a one-time line, and the renewal was gone. For a donation store, that turned a price tweak into a cancelled recurring donation.

In 3.8.1 the edit link reopens the product page with the customer’s plan pre-selected and their current amount filled in. Selecting Update Cart changes the amount and keeps the plan: a $10.00 yearly subscription edited to $12.00 stays a yearly subscription, on one cart line. A line added as a one-time purchase reopens with One-time purchase selected in the same way, so the choice round-trips in both directions.

For developers: Name Your Price now builds the edit link by passing the cart line through WooCommerce’s standard woocommerce_cart_item_permalink filter, and it hands the cart item to the permalink lookup so variations keep their attributes. A plugin that records extra choices on a cart line and exposes them through that filter carries those choices into the edit link automatically; that is exactly how All Products for WooCommerce Subscriptions restores the plan. The wc_nyp_edit_in_cart_args filter still works for integrations that append their own parameters.

Why this matters

  • Customers see the amount they typed in the Subscribe option, formatted the way your store formats prices
  • A price edit from the cart keeps the customer’s subscription plan, so a small adjustment never cancels a renewal
  • Both fixes apply whether you run All Products for WooCommerce Subscriptions standalone or the copy bundled with WooCommerce Subscriptions 9.0
  • Tested with WooCommerce 11.1.0 and WordPress 7.1.0, with no database update to run

Similar Posts