With our drop-in customer portal feature, you can easily allow customers to view order history, manage their subscriptions, update billing/shipping info, and more.
Demo
Foxy Code Snippet
While not required for the customer portal, adding the Foxy code snippet will display the sidecart when a customer adds a product to cart and store customer sessions. If you've already done this, you can proceed to the next section of this tutorial.
- In the Foxy admin, click on the Sample Code link under the Store column in the navigation at top.
- Copy the code snippet from Step 1.
- In Webflow, go to your Site Settings and click on the Custom Code link at top.
- Paste the copied code snippet into the Footer Code section and save changes.
Installation
- In your Webflow Project, create a page for where you would like the customer portal displayed (ex: Dashboard)
- In this new page, wherever you want the customer portal to load, add an HTML Embed element.
- Inside of the HTML Embed element, copy/paste the snippet below:
<foxy-customer-portal base="https://CHANGE.foxycart.com/s/customer/"> </foxy-customer-portal>
- Replace CHANGE with your Foxy store subdomain. If you're using a custom subdomain, replace the entire url.
- In your Webflow Project Settings > Custom Code > Footer, copy/paste the following snippet (after your Foxy loader snippet):
<script type="module"> import 'https://cdn-js.foxy.io/elements@1/foxy-customer-portal.js'; const I18nElement = customElements.get('foxy-i18n'); const i18nBase = 'https://cdn-js.foxy.io/elements@1/translations'; I18nElement.onResourceFetch((ns, lang) => fetch(`${i18nBase}/${ns}/${lang}.json`)); </script>
- Publish changes and test.
Giving Customers Access
To give customers access simply 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, but if you disabled them, you can enable them again in your Configuration Settings.
Styling
The Foxy customer portal uses the Lumo Theme for styling and elements. You can quickly and easily make styling changes by following the instructions below:
- Load up the Lumo Theme Editor here.
- Make desired style changes.
- Click the download button.
- Copy the the displayed snippet.
- In your Customer Portal Page Settings, paste the copied HTML into the "Inside <head> tag" section.
- Publish changes.
Single Sign On
Please follow the instructions below to keep logged in customers for the customer portal, logged in on the Foxy checkout as well.
- In Foxy, go to Advanced Settings here.
- 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.
- Go to the CyberChef website here.
- Replace "YOUR_SECRET_HERE" with the "Store Secret" you copied in Step 2.
- Copy the output value.
- Create a blank page in Webflow (the name and slug of the page can be anything).
- For the newly created page, go to Page Settings and copy/paste the snippet from here into the "Before </body> tag" section.
- Replace "FOXY_SUBDOMAIN" with your Foxy subdomain, like
mystore.foxycart.com
orsecure.mystore.com
(found in your Settings here). - Replace "SECRET_OUTPUT" with the output value from Step 5.
- Publish changes.
- In Foxy, go to Advanced Settings here.
- Enable the "Single Sign On" option.
- Paste the url of the new page you created in Webflow into the "Single Sign On URL" field.
- Save changes.
- Test by logging into the customer portal, add a product to cart, and proceed to checkout. You should be logged in on the checkout page.
Extending The Customer Portal
The customer portal can be extended with new functions and features. We'll be providing documentation on this soon. Please don't hesitate to contact us if there's something you're wanting to do in the customer portal.
Feedback
If you've found a bug/issue or simply have a suggestion, please fill out our feedback form here.