Before getting started
- This integration supports up to 3 types of variants. If you have more, please contact us.
- For the product details page layout, choose Simple.
- Some Squarespace features are not supported, please disable them:
Add Foxy code snippet
- In your Squarespace site, go to Website > Pages. Under Utilities, select Website Tools > Code Injection
- Go to the Sample Code page in the Foxy admin, and copy the code snippet in Step 1 (code from Step 2 is not needed for this tutorial)
- Back in Squarespace settings, paste the code from the previous step in the Footer text box
- Open this link: https://pastebin.com/raw/tE3Dez9X and copy the code there
- In the same Footer text box in Squarespace settings, paste the code from the previous step, after the existing code
- Save the changes and test
When a product is added to cart, you'll also see the SKU and code product options listed under the product. If you wish to hide them, follow the steps below:
- Go to the Template Configurations in the Foxy admin
- Under the Cart section, select the Customize Cart Display option
- Uncheck the Show Product Code to hide the code product option
- In the text box beside Custom Product Options to Hide, input SKU to hide the SKU product option
- Scroll to the bottom of the page and click the Update button to save
Optional: Update product inventory using Make
- Add the webhook to Make following this tutorial: Integrating the Foxy Webhook with Make/Integromat
- Add a new module connected to the Foxy webhook, select Flow Control then Iterator, and choose _embed: fx:items[] for the Array field
- Add a new Squarespace module connected to the Iterator and select Update Stock Quantities (under the Inventory section)
- In the Connection field, click Add
- Enter a name for the connection then click Continue, a window will pop up to authenticate your Squarespace account and select a site
- In the Decrease Stock field, click Add item
- Select code for the Product Variant ID field, and quantity for the Quantity field
- Test the scenario by clicking Run once. You can then complete a new transaction or refeed the webhook for a completed transaction from the Foxy admin: in the transactions page, expand one of the transactions. Under the Webhooks section of the transaction, check the box for your Make webhook and click the Refeed selected webhooks button
- If the test completes without errors, you can activate the scenario