From the Foxy admin, go to Settings > Customer Portal.
2
In the Allowed Origins section, specify an allowlist of domains where the portal is able to be utilized. Note that all domains have to begin with https:// except localhost, and when adding a primary domain, we recommend adding both the domain with and without the www. subdomain (for example, https://mydomain.com and https://www.mydomain.com). If you're adding a subdomain already (like https://customer.mydomain.com), then that doesn't need a www. prefixed version.
3
Configure additional options as needed:
SSO (single sign-on) - enable this option if you want to allow customers who are logged in to the portal to be automatically logged in to your website (requires some additional configuration, see that below).
Customer registration - enable this option to allow customers to create a new account directly on the login form, as opposed to completing a purchase through the checkout.
Frequency changes for subscriptions - enabling this option allows customer to changes the frequency of their subscriptions. You can define rules for what options a customer can change a subscription too, depending what subscription it is.
Next payment date changes for subscriptions - if enabled, customers will be able to modify the next date of their subscription. This can be limited based on rules to restrict how far or to what days a customer can change the next date to.
Session lifespan - allows you to define how long a customer can remain logged in to the portal for before being automatically logged out.
JWT shared secret - this secret is used to sign the tokens returned as part of authenticating with the portal. Changing this secret will invalidate any active authenticated sessions on the customer portal. Unless you have specific needs here, you can let this value be set automatically.
4
Click the Enable button.
Install the Customer Portal Element
1
Create a page for where you would like the customer portal displayed (ex: Dashboard).
2
In this new page, wherever you want the customer portal to load, copy/paste the snippet below:
To give customers access you can add a link to the customer portal page anywhere on your website. Only customers who created an account at checkout will be able to login. By default, customer accounts are enabled.
Styling the portal
The Foxy customer portal uses the Lumo Theme for styling and elements. You can make styling changes by following the instructions below:
Note
Only the Lumo Light Theme is currently supported. You can still make the needed changes to the Light Theme for a dark background.
In your Customer Portal Page Settings, paste the copied HTML into the <head> section of the page.
6
Publish changes.
Single Sign On
If you wish to keep logged in customers for the customer portal, logged in on the Foxy checkout as well, you can follow the instructions below:
Note
Single Sign On must be enabled to use this feature for your customer portal setup. You can do this within the Settings->Customer Portal settings in the beta admin at https://admin.foxy.io
In the store secret field, click Show. - If there is a single value in store secret, copy it out to the computer's clipboard. - If you see multiple name/value pairs, select the value between the quotes listed for sso and copy it.