subscription-cancel
Form that cancels the contract of its wrapper and reloads the page.
Where it can go
- Inside any of:
customer-subscription,subscription-page. - Must contain
form. - Out of place, Smootify removes it from the page: also removed when the contract status does not allow it.
What it requires
- Shopify’s customer accounts, and
newCustomerAccountsPublicKeyinSmootifyUserOptions.
Fields in the form
It reads no field of yours: the contract comes from the wrapper’s data-contract-id.
Attributes on the element
- It reads
data-contract-idoncustomer-subscription,subscription-page.
Loading
Its code loads only on pages that have subscription-cancel.