Cart Module
Shopify Storefront data and cart logic is bound to your Webflow elements through Shopyflow attributes. Connecting your Webflow site to Shopify is done by adding custom attributes to your Webflow elements.
Yet, you are not required to type or edit attributes manually. Shopyflow provides you with the pre-configured components needed to create your store, as copyable Webflow elements right in Webflow designer.
All the copyable Shopyflow Components are native editable Webflow elements. There is no layout or styling limitation on any element.
In the below image hover your mouse on the hotspots to see all the required Shopyflow attributes to build a product page like this in Webflow


Cart module is a block of cart components that provide complete cart functionality to be used globally on your site.
Webflow app usage
- Click anywhere in the Webflow designer
- In the Shopyflow app; click Add new
- Select Cart
- Paste Cart component
Webflow app settings
Layout
With pop-up: Cart component placed in Cart Popup component that turns visible when a product is added to cart.
Without pop-up: Inline Cart component.
Inner components
Module contents
Available methods
Cart Container

Contains the cart module components. It is the outermost element of the Cart Module. Cart Container is a Div Block with the sf-cart attribute.
Cart Items List

Contains the list of the Cart Items currently added to cart. Cart Items List is a Div Block with the sf-cart-list attribute.
Cart Subtotal
Displays the cart total including all the line items. Cart Subtotal is a Text Block with the attribute sf-cart-subtotal.
Checkout Button

Sends the customer to Shopify checkout on click. Checkout Button is a Button element with the sf-checkout attribute.
Cart Discount Code Input

Collects Discount code from the customer. Cart Discount Code Input is a Text Field with the attribute sf-change-discount-code.
Discount Code List

Contains the list of the discount codes currently applied to the cart. Discount Code List is a Div Block with the attribute sf-discount-code-list.
Order Discount List

Contains the list of the discounts currently applied to the order. Order Discount List is a Div Block with the attribute sf-order-discount-list.
Component
contents
Cart Container

Contains the cart module components. It is the outermost element of the Cart Module. Cart Container is a Div Block with the sf-cart attribute.
Webflow app usage
Webflow app settings
Cart Items List

Contains the list of the Cart Items currently added to cart. Cart Items List is a Div Block with the sf-cart-list attribute.
Webflow app usage
- Select the Cart Container in the Webflow designer
- In the Shopyflow app; click Add new
- Click Cart Items List to copy the component
- Select the Cart Container again
- Paste Cart Items List component
Webflow app settings
Cart Subtotal
Displays the cart total including all the line items. Cart Subtotal is a Text Block with the attribute sf-cart-subtotal.
Webflow app usage
- Click anywhere in the Webflow designer
- In the Shopyflow app; click Add new
- Find and click Cart Total
- Paste Cart Subtotal component
Webflow app settings
Cart Discount Code Input

Collects Discount code from the customer. Cart Discount Code Input is a Text Field with the attribute sf-change-discount-code.
Webflow app usage
Webflow app settings
Discount Code List

Contains the list of the discount codes currently applied to the cart. Discount Code List is a Div Block with the attribute sf-discount-code-list.
Webflow app usage
Webflow app settings
Order Discount List

Contains the list of the discounts currently applied to the order. Order Discount List is a Div Block with the attribute sf-order-discount-list.
Webflow app usage
Webflow app settings
State management
Empty Cart State
Customise the empty state of the cart
When there is no product added in the cart the Cart component and all it’s children elements are given the sf-cart-empty combo class.
sf-cart-empty class can be used to change the look of the Cart component or display/hide inner components when it’s empty.
For example you can style your "cart is empy" div using this state combo class. To achieve this:
- In Webflow, select the Empty Cart Div inside your Cart element.
- Give it the sf-cart-empty combo class.
- Make the element visible.
- Remove the combo class.
- Publish.
Related Utilities
Cart Popup
Containing the Cart component and dynamically becomes visible when a product is successfully added to the cart. It is particularly useful for displaying Cart summaries. Cart Popup is a Div Block with the sf-cart-popup attribute.
The component and all its children elements are given sf-cart-opened class which turns the Cart Popup component visible when a product is added to cart or the Cart Popup Opener component is clicked. sf-cart-opened class is removed when the Cart Popup Closer component is clicked.
You can easily add a Cart Popup to your page using the Shopyflow Webflow App.
Managing the Cart Popup
Once you introduced a Cart Popup to the page you end up with Cart Module placed in a fixed positioned Div Block. The Cart Popup element becomes visible with a class called sf-cart-opened, after a new element is successfully added to the cart. To hide the cart popup initially on the page load:
- Open the Navigator Panel
- Make sure you select the Cart Popup element which is the outermost element of the Cart Module.
- Remove the class sf-cart-opened class from the element.
Cart Popup Closer
Closes the Cart Popup on click by removing the sf-cart-opened class from the Cart Popup and all its children elements.
Cart Popup Opener
Opens the Cart Popup on click by adding the sf-cart-opened class to the Cart Popup and all its children elements.
Product Link
Product Link links any element to a product page.
For example if you add the sf-product-link attribute to a link element on or inside a Cart Item, it will convert the element to a link that goes to that product's detail page. Similarly, if you add it to a Product Search Result Item, it will link the search result element to that product's detail page.
If you are using a product page path other than "Products" do the following !
If you are using a product page path other than "products", you need to set it in Shopyflow Webflow App > Installation > General Settings
For example if your product page path is "articles", you need to type in "articles" in the app.