3 min read • Updated 2 months ago
Use Wix Stores to manage Foxy products
As soon as you make the following changes, they will be live, so you may want to duplicate your Wix site and test or have Foxy already configured.
Step 1: Wix Website Editor setup
Product Page settings
1From your Wix Website Editor, go to the Product Page
2Click anywhere within the product section, and two options should show above your cursor
3Click the Settings button to go to the product page settings
4Click Settings from the side bar
5Scroll to the "Add to Cart" section
6For the "When button is clicked" setting, select the Stay in Product Page option
7Scroll to the "Buy Now" section
8For the "Show button" setting, toggle it off
Step 2: Add Foxy code snippets
There are two code snippets need to be added to your Wix website.
Foxy loader.js file
1From your Wix Dashboard, go to Settings > Custom Code (under Advanced)
2Click the Add Custom Code button at the top right
3From your Foxy Admin, go to Settings > Website & Products
4Copy the Foxy loader.js code snippet (other code snippets on the page are not needed for this tutorial)
5Go back to the Wix settings page, then paste the code from the previous step in the text box
6For the "Add Code to Pages" setting, select All pages and Load code once
7For the "Place Code in" setting, select Body - End
Foxy + Wix integration code
1From the same Custom Code settings page, click the Add Custom Code button again to add the second code snippet
2Copy the code snippet below and paste in the text box
<script src="https://foxy-integrations.netlify.app/foxy-wix.js"></script>
3For the "Add Code to Pages" setting, select All pages and Load code on each new page
4For the "Place Code in" setting, select Body - End
After finishing the steps above, you should be able to add products to Foxy cart by clicking the "Add to Cart" button on the product page.
Optional: Update product inventory with Byteline
2Click the Create flow button
3From the integration list, select Foxy > Foxy - New or Updated Transaction Trigger
4Open the Foxy trigger node and sign in to your Foxy account
5Click the Test run button
6Add a new node. Select Wix > Wix - Create Order from the integration list
7Open the Wix node and sign in to your Wix account