less than a minute read • Updated a day ago
Add the customer portal to your website
How to embed the customer portal element and script on your site so customers can log in and manage their orders and subscriptions.
Once the customer portal is enabled in your Foxy admin, you add it to your site by embedding the foxy-customer-portal element and its script.
Steps
You can see a working example on the customer portal demo page.
Notes
The
@1in the CDN URLs points to the current stable release and updates automatically. To try beta releases, useelements@betainstead — not recommended for production.If you’re customizing your portal (adding custom elements or translations), lock to a specific version instead of
@1, for exampleelements@1.28.0. Check the Elements GitHub releases for the latest version, and watch that repository for updates.You can also load the portal from a third-party CDN like jsDelivr, though the Foxy CDN is recommended unless you have a specific reason not to:
https://cdn.jsdelivr.net/npm/@foxy.io/elements@1/dist/cdn/foxy-customer-portal.js https://cdn.jsdelivr.net/npm/@foxy.io/elements@1/dist/cdn/translations
For more configuration options and demo code, see the customer portal playground.