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
Adds the product to cart with the selected quantity and variant options on click. Add to Cart Button is a Div Block with the sf-add-to-cart attribute.
Add to Cart Button is a required component for Buy module in order to both adding the Product to the cart on click and for the parent Buy Module content to be fetched from Shopify.
Default: Adds the product to cart on click.
Buy Now: If selected the user adds the product to cart on click and gets redirected to checkout. When this option is selected the element takes an additional attribute call sf-buy-now.
Redirect : If selected the user adds the product to cart on click and gets redirected to a custom url. When this option is selected the element takes an additional attribute call sf-redirect.
Customize the text that is displayed on the add to cart button when the selected variant is out of stock.
Customize the text that is displayed on the button when the selected quantity exceeds the available stock for the selected variant.
When the selected variant is out of stock the Add to Cart Button and all its children elements are given the sf-out-of-stock class. sf-out-of-stock class can be used to change the look of the the Add to Cart Button and its children to indicate the state visually. For instance you can hide one inner Text Block saying "Add to cart" when in Out of stock state and display the other saying "Out of stock" or change the color of the button to a inactive gray.
When the selected quantity is exceeding the available stock of the selected variant the Add to Cart Button and all its children elements are given the sf-stock-exceeded class.
sf-stock-exceeded class can be used to change the look of the the Add to Cart Button and its children to indicate the state visually. For instance you can hide one inner Text Block saying "Add to cart" when in stock exceeded state and display other Text Block saying “Stock exceeded” or change the color of the button to a inactive gray.
When the Add to Cart Button is clicked it's given sf-loading class until the product is added to the cart. sf-loading class can be used to change the look of the Add to Cart Button. By default a loading spinner is displayed on the button and it replaces the button text. You can disable the loading spinner animation by adding sf-no-animation="1" custom attribute to the Add to Cart Button.