Docs
Free ON WEBFLOW.IO DOMAINS

Cart pop-up opened state

Utility Class
Utility
Customise the open state of the Cart Popup

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

Webflow designer
Custom Attributes
sf-add-to-cart="1"
Custom Attributes
sf-change-quantity="1"
Custom Attributes
sf-change-option="{Option Name}"
Custom Attributes
sf-cart-count="1"
Custom Attributes
sf-change-option="{Option Name}"
Custom Attributes
sf-product="{Product ID}"
Custom Attributes
sf-show-image="1"
Attribute Name
sf-cart-opened
Attribute Value
True or 1
Nesting Rule
Can be placed anywhere in the site
Cart Popup
>
Cart Container
>
Cart pop-up opened state
Method
sf-cart-opened

Once you added a Cart component to your page with the With pop-up option selected you will have an invisible element with the class called Cart Popup. Cart Popup component’s CSS "visibility" property is set to "hidden" by default. It turns visible with the addition of the sf-cart-opened class whenever a new product is added to the cart. To have the Cart Popup visible add it the sf-cart-opened class as a combo class.

sf-cart-opened class can be used as a combo class to style the open state of the Cart Popup component and create a transition between 2 states in Webflow designer. The class is added to all the elements that are contained inside the Cart Popup component.

Class name
sf-cart-opened
Target elements
Can be placed anywhere in the site
Cart Popup
Cart Container

Webflow app usage

Webflow app settings

Inner components

Module contents

Available methods

No items found.

Utility Class

contents

No items found.

State management

No items found.

Related Utilities

No items found.
Can't find a solution? Join our Discord server to get an instant reply from our experts and the community.