Adding Ecwid online store to Squarespace

If you have a Squarespace-based website and want to add an online store to it, you can achieve it with Ecwid in a quick and easy way.

Sign up for an Ecwid account (you can start with the Free plan) to get online admin panel, set up your store there and then add the Ecwid store integration code to a page on your Squarespace website. As a result, your Ecwid store catalog will appear on your site and buyers will be able to add products to the shopping cart and checkout there.

To add Ecwid store to a Squarespace site, follow the instruction below that consists of two parts — adding HTML code to Squarespace page and adding the script code to Squarespace footer.

Step 1. Add the Ecwid integration code to Squarespace

  1. Log into your Ecwid account.
  2. In Ecwid admin, go to Website → Other platforms and sitebuilders.
  3. Scroll down to the "Add your store to one more website" section. Click Pick Platform and choose Squarespace.
  4. Click Copy Code to Clipboard. You’ve copied the first part of your store integration code that you will need to add to a Squarespace page:

Adding_Ecwid_online_store_to_Squarespace__2_.gif

  1. Log in to your Squarespace account and follow the steps for your editor version:
  • In the Home menu, click Pages and select the page (or add a new page) where you want your store to appear:

Adding_Ecwid_online_store_to_Squarespace__5_.png

  • Hover over the page area and click Edit:

Adding_Ecwid_online_store_to_Squarespace__11_.png

  • Click the + button in the top right corner to add a new content block:

Adding_Ecwid_online_store_to_Squarespace__12_.png

  • Select the Embed block:

Adding_Ecwid_online_store_to_Squarespace__7_.png

  • Click the </> icon to manually add the code:

Adding_Ecwid_online_store_to_Squarespace__2_.png

  • Paste the code copied on step 4 in the Embed Data window in Squarespace, click Set, then Apply, then Save:

Adding_Ecwid_online_store_to_Squarespace__9_.png

If you want to add store extensions like Category Navigation menu, Additional Shopping Bag and Product Search box besides the store to your site page, you can copy extensions’ codes in Ecwid admin and add them in this block, too (or add them in separate Embed blocks). They will appear on the page in the same order as their codes are added.
You may want to add a certain category or a product page instead of the entire store to your web page. In this case, use one of the codes below as the first part of the Ecwid integration code:
<div id='my-store-1003' data-default-category-id='2222'></div>
<div id='my-store-1003' data-default-product-id='1111'></div>
Remember to replace 1003 with your store ID, 2222 and 1111 with the respective category or product ID.

Step 2. Add the Ecwid script to Squarespace

Now let’s add the second part of store integration code:

  1. In Ecwid admin, go to Overview → Squarespace again and click the second Copy Code to Clipboard button to get a script code that you will need to add to your site footer:

Adding_Ecwid_online_store_to_Squarespace__3_.gif

  1. Return to your Squarespace account.
  2. In the Home menu, navigate to Settings → Advanced → Code Injection.
  3. In the Footer section paste the script code that you’ve copied on step 1:

Adding_Ecwid_online_store_to_Squarespace__8_.png

If you’re adding the store along with store extensions like Category Navigation menu, Additional Shopping Bag and Product Search box, the script code will be slightly different. In this case go to this page, specify there your store ID, then select what extensions you want to add to your site along with the Ecwid store. After that copy the generated script code (it starts with <script>) and add it to your site footer.
  1. Click Save in the top left corner.

Done! Now you can see your Ecwid online store in the site preview:

Adding_Ecwid_online_store_to_Squarespace__3_.png

Example for Squarespace 7.1

If the store page is not linked to the navigation, make sure to move it to your site menu and start accepting orders online.

Related articles

Marketing checklist
Levels of changing store design
Got an order? Next steps

Was this article helpful?

Awesome! Thanks for your feedback!

Thanks for your feedback!

Sorry about that! What went wrong?
45 out of 85 found this helpful
We use cookies and similar technologies to remember your preferences, measure effectiveness of our campaigns, and analyze depersonalized data to improve performance of our site. By choosing «Accept», you consent to the use of cookies.
Accept cookies Decline