How do I get the cart to appear on every page of a Webflow site when using the new Shopify code that includes both the product and cart code together?

Published on
September 22, 2023

To get the cart to appear on every page of a Webflow site when using the new Shopify code that includes both the product and cart code together, you can follow these steps:

  1. Step 1: Add the Shopify code to your Webflow site
  • Open your Webflow project and navigate to the page where you want the cart to appear.
  • Click on the "Head" section of the page.
  • Paste the Shopify code provided by Shopify in the "Custom Code" field of the "Head" section. This code includes both the product and cart code together.
  1. Step 2: Create a symbol for the cart
  • Open the Webflow Designer and navigate to the page where you want the cart to appear.
  • Design and style the cart element according to your preferences. You can use Webflow's built-in elements or create your own custom cart design.
  • Once you have designed the cart, select all the cart elements and click the "Create symbol" button. This will turn the cart into a reusable symbol.
  1. Step 3: Add the symbol to every page
  • Open each page of your Webflow site where you want the cart to appear.
  • Drag and drop the cart symbol onto the page wherever you want it to be displayed.
  • Adjust the position and size of the cart symbol as needed.
  1. Step 4: Ensure the cart symbol is visible on all pages
  • Double-click on the cart symbol to edit its contents.
  • In the symbol editor, make sure that the cart element is not hidden on any breakpoints or interactions.
  • Check the visibility settings for the cart symbol and its child elements to ensure they are set to "visible".
  1. Step 5: Publish your Webflow site
  • Once you have added the cart symbol to all the necessary pages, publish your Webflow site for the changes to take effect.

By following these steps, you should now have the cart appearing on every page of your Webflow site when using the new Shopify code that includes both the product and cart code together.

Additional Questions:

  • How can I add a shopping cart to my Webflow site?
  • Can I customize the appearance of the shopping cart in Webflow?
  • Are there any limitations to using the Shopify code with Webflow?