General settings
All global settings live at WooCommerce → Settings → Subscriptions. Seven tabs group the 61 options the plugin registers. This page covers the General tab and the cross-cutting toggles that apply everywhere; per-feature settings have their own dedicated docs.
The seven tabs
| Tab | What lives there | Detail doc |
|---|---|---|
| General | Global enable, button labels, logger, expiry visibility | This page |
| Customer | Pause, cancel and manual-payment toggles | My Account |
| Discounts | Tier-based engine and table appearance | Discounts overview |
| Plan switch | Upgrade / downgrade, prorate, signup fee on switch | Plan switching |
| Renewals | Retry attempts, reminder lead time, expiry warning, full-refund cancel | Retry attempts |
| Multi-currency | Per-currency rate, decimals and cents handling | — |
| API | REST API enable + secret key | Developer API |
The General tab in detail
Five toggles. Defaults are safe — nothing here will break an existing store. Use this tab to set baseline behaviour before you ship subscription products to production.
| Option | What it does | Default |
|---|---|---|
aswc_gen_tab_enable | Master plugin toggle. Off = subscription products behave as one-off and no renewals are scheduled. | On |
aswc_enable_subscription_log | Write a structured log of every renewal, retry, switch and gateway event to WooCommerce → Status → Logs. | Off (recommended On in production) |
aswc_allow_subscription_expiry_customer | Show "Expires on" date to the customer in My Account for fixed-length plans. | On |
aswc_add_to_cart_text | Replace the default "Add to cart" button label on subscription product pages. | Empty (uses Woo default) |
aswc_place_order_button_text | Replace the "Place order" label at checkout when a subscription is in the cart. | Empty |
A note on the Multi-currency tab
The Multi-currency tab adds a fixed exchange rate per currency at the time of the original purchase. It is a complement to a multi-currency plugin like WPML Multi-Currency or Aelia, not a replacement: those plugins handle the display and switcher; ours stores the locked rate against the subscription so renewals always charge the original currency at the original rate.
Relevant hooks
aswc_settings_tabs— add a custom tab to the settings page.aswc_get_option— filter any option value at read time (useful to drive a setting from an external config).aswc_log_event— fires whenever the logger writes an entry; use it to ship logs to an external service.