Update Subscription Details
Updates only an individual Subscription’s name and description. It does not rename its shared Plan or change the terms of other Subscriptions. This works for Plan-based, entry-based and on-the-fly Subscriptions.
The visitor must be logged in and own the Subscription. Its allow_modification setting must be enabled to save changes. Edits are blocked while a payment is processing or awaiting review. A Super Admin editing on a customer’s behalf must use ExpressionEngine’s Login as Member feature.
What can be submitted?
| Form field | Saved value |
|---|---|
subscription_name |
This Subscription’s name; maximum 255 characters. |
subscription_description |
This Subscription’s description; maximum 65,535 UTF-8 bytes. |
Omitted fields retain their values. An explicitly empty field clears that value. Use the two plain field names above; the action no longer decodes encrypted update payloads. Values are cleaned through ExpressionEngine’s input handling.
No customer, Plan, permissions, Order, saved-card or billing data is updated. The normal modification timestamp is recorded with a successful text edit.
Old forms containing billing controls
If a submission contains billing fields—such as price, interval, trial, dates, Plan or Vault—even unchanged or empty values, the whole update is rejected before either text field is saved:
This form can update only the subscription name and description. Billing terms were not changed.
This includes the old encoded field aliases such as SR, SI, SIU and PI, as well as the old encrypted SUN/SUD text aliases. Obsolete update parameters on the opening tag also cause its signed form submission to be rejected; removing their hidden inputs does not enable the update. Remove those parameters and controls from your template.
The form’s wrapper, enclosed markup and nested tags continue to render. Existing Subscription variables remain available for display, including price, intervals, dates and counters, together with normal cart/customer/form variables and encoded option-variable pairs. The legacy {price} and {trial_price} variables retain their numeric values. Displaying a value does not make it editable. Internal payment-review data is not exposed.
Migration guidance for unsupported fields appears in template debugging and the Developer Log, deduplicated with a reminder after 24 hours. If developer logging fails, it falls back to the application error log. Valid name/description-only forms do not receive a retirement warning.
Parameters and response handling
sub_idis required and identifies the member’s own Subscription. Invalid, missing, logged-out or foreign lookups use the normalno_resultsbehavior.subscription_nameandsubscription_descriptionparameters retain their legacy form-data behavior; ordinary form inputs can supply the editable text.- Standard form-builder parameters such as
return,secure_return,class,id,error_handling,jsonandlanguageremain available.variable_prefixretains the standard variable aliases. - Noneditable Subscription parameters no longer generate billing-update payloads. Their presence is recorded in the signed context so submission produces the labels-only error described above.
Forms include signed context binding the Subscription ID to the logged-in member. Previously cached forms without that context must be reloaded. Editing the hidden ID does not authorize another Subscription. Ownership and modification permission are checked again on submission.
Example
{exp:cartthrob:update_subscription_details
sub_id="{segment_3}"
return="subscriptions/account"
error_handling="inline"
class="subscription-labels"
}
{if errors_exist}
{errors}<p>{error}</p>{/errors}
{/if}
<label>Name
<input name="subscription_name" value="{name:attr_safe}" maxlength="255">
</label>
<label>Description
<textarea name="subscription_description">{description:attr_safe}</textarea>
</label>
<button type="submit">Save name and description</button>
{if no_results}Subscription not found.{/if}
{/exp:cartthrob:update_subscription_details}
Both {exp:cartthrob:update_subscription_details} and {exp:cartthrob_subscriptions:update_subscription_details} use this behavior. Replace the example’s Subscription ID source with your account page’s owned Subscription ID. Treat allow_modification as a display conditional if you want to hide the button when editing is disabled; the action enforces it regardless.
For monthly/yearly billing changes, pricing, upgrades or downgrades, use change_plan_form. For payment-card changes, use update_subscription_form. This tag does not calculate matching prices, reset schedules, collect payments, refund or prorate a change. The legacy cartthrob_update_subscription_details extension hook no longer fires, including after a successful name/description edit.