store-credit
Shows the customer's store credit balance and transactions.
Where it can go
- Anywhere on the page.
- Out of place, Smootify removes it from the page (the debugger reports it on .webflow.io): without Customer Accounts or a session; 2.0: without a credit account a zero balance and no transactions (1.x: removed), with body.has-store-credit / .no-store-credit.
What it requires
- Shopify’s customer accounts, and
newCustomerAccountsPublicKeyinSmootifyUserOptions.
Attributes inside it
| Group | Attribute name | Values |
|---|---|---|
| Loading | skeleton | 5 |
| Store credit | store-credit | 7 |
| Store credit (condition) | if-credit | 2 |
Loading
Its code loads only on pages that have store-credit.