My Account customer area
The plugin registers three rewrite endpoints inside WooCommerce → My Account and exposes six self-service actions. No theme override required: the endpoints appear in the account menu automatically and inherit your theme's My Account styling.
Prerequisites
- WooCommerce 9.0+ with the My Account page configured (default
/my-account/). - Pretty permalinks enabled (Settings → Permalinks set to anything other than "Plain").
- After activating the plugin, flush rewrite rules once by visiting Settings → Permalinks and clicking Save.
The three endpoints
All three are standard WooCommerce account endpoints registered with add_rewrite_endpoint(). They sit at the same level as /orders/ or /downloads/.
/my-account/aswc-subscriptions/— list of all the customer's subscriptions with status badges and quick actions./my-account/show-subscription/<id>/— detail page for a single subscription with action buttons and the renewal-order timeline./my-account/aswc-add-payment-method/— guided flow to save a new payment method or switch the gateway used for a subscription.
The six self-service actions
Each action is governed by an admin setting (Subscriptions → Settings → Customer). Toggle off the ones your business model doesn't allow.
| Action | Setting | Default |
|---|---|---|
| Pause & resume | aswc_enable_pause_subscription_by_customer | Off |
| Choose pause start date | aswc_start_pause_subscription_by_customer | Off |
| Cancel from My Account | aswc_cancel_subscription_for_customer | On |
| Cancellation time window | aswc_allow_time_subscription_cancellation + aswc_time_duration_subscription_cancellation | Off |
| Change payment method / gateway | Always on if at least one tokenising gateway is enabled | — |
| Switch plan (upgrade/downgrade) | aswc_enable_prorate_on_price_downgrade_upgrade_subscription + aswc_enable_signup_fee_downgrade_upgrade_subscription | Off / Off |
| Pay a failed renewal manually | aswc_enbale_accept_manual_payment (typo in option name is intentional, do not rename) | Off |
Overriding templates
All three endpoints render through PHP templates under /templates/myaccount/. Copy any of them into your-theme/advanced-subscriptions-for-woocommerce/myaccount/ to override, the same convention WooCommerce uses for its own templates.
aswc-subscriptions.php— the list view.show-subscription.php— the detail view.aswc-add-payment-method.php— the add-payment-method flow.
Relevant hooks
aswc_my_account_menu_items— filter the items added to the My Account menu.aswc_before_cancel_subscription_by_customer— fires before a customer-initiated cancellation. ReturnWP_Errorto veto.aswc_after_pause_subscription_by_customer— fires after a customer pauses; use it to send tracking events.aswc_add_payment_method_redirect— change where the customer is redirected after saving a new payment method.