Docs

Installation

Shopyflow installation takes place in 2 simple steps.

  1. Configuring Shopify
  2. Connecting to Webflow

Configure Shopify

Shopyflow requires a Storefront API access token to securely connect your Shopify Store to your Webflow site. To generate your Store API access token;

  1. Head to your Shopify Admin > Settings > Apps and Sales Channels section and click Develop apps link..

What’s a Rich Text element? What’s a Rich Text What’s a Rich Text element? What’s a Rich Text element?

The rich text element allows you to create and format headings, paragraphs, blockquotes, images, and video all in one place instead of having to add and format them individually. Just double-click and easily create content.

What’s a Rich Text element? What’s a Rich What’s a Rich Text element? What’s a Rich Text ejklkjököbömnlement?What’s a Rich Text element? What’s a Rich Text element?

The rich text element allows you to create and format headings, paragraphs, blockquotes, images, and video all in one place instead of having to add and format them individually. Just double-click and easily create content.

Shopyflow requires a Storefront API access token to securely connect your Shopify Store to your Webflow site. To generate your Store API access token;

1. Head to your Shopify Admin > Settings > Apps and Sales Channels section and click Develop apps link.

What’s a Rich Text element? What’s a Rich What’s a Rich Text element? What’s a  element?What’s a Rich Text element? What’s a Rich Text element?

The rich text element allows you to create and format headings, paragraphs, blockquotes, images, and video all in one place instead of having to add and format them individually. Just double-click and easily create content.

Static and dynamic content editing

A rich text element can be used with static or dynamic content. For static content, just drop it into any page and begin editing. For dynamic content, add a rich text field to any collection and then connect a rich text element to that field in the settings panel. Voila!

A rich text element can be used with static or dynamic content. For static content, just drop it into any page and begin editing. For dynamic content, add a rich text field to any collection and then connect a rich text element to that field in the settings panel. Voila!

How to customize formatting for each rich text

Headings, paragraphs, blockquotes, figures, images, and figure captions can all be styled after a class is added to the rich text element using the "When inside of" nested selector system.

Add to Cart Button

Attribute Name
sf-add-to-cart
Attribute Value
1
Webflow designer
Custom Attributes
sf-add-to-cart =''1'

Along with the Product Container, the Add to Cart Button is the only required element when creating a Buy Module.

  • Any Webflow element can be used as an Add to Cart Button. For styling and state management purposes we are going to use a Div Block element and give it a class
    called "Add to Cart".
  • Give your Div Block thesf-add-to-cart attribute with the value of  1.
  • Inside of the Div Block add a Text Blockand give it a class called "Add to Cart Text"
  • Place the button anywhere inside of the Product Container.

Once we have the Add to Cart Button inside of the Product Container, we already have a functioning Buy Module even though we don’t have a quantity changer, variant option selectors or any other product information in place.

Creation of a Add to Cart Button

State Management

Out of stock

If the selected variant by the user is out of stock, the Add to Cart Button and every other element nested in it receives a state class called sf-out-of-stock automatically. This class can be used to modify the look and functionality of the button when the selected variant is out of stock.

Webflow designer
Yellow variant is set to out of stock in Shopify product settings.
Webflow designer
Once Yellow option is selected in your published Webflow site Add to Cart Button receives thesf-out-of-stockclass.

To style the out of stock state of the Add to Cart Button:

1. Make sure you have a base class on your button that defines the normal state of your Add to Cart Button.

Webflow designer

2. Now add the sf-out-of-stock as a combo class to the button and change the style.

Webflow designer

3. Let’s do the same for the inner text. We want to hide the Add to Cart Text when the selected variant is out of stock and display another text. Let’s hide the add to cart text.

Webflow designer

4. Now we add another Text Block element for the “Out of Stock Text" inside of our button and set its display property to none in normal state.

Webflow designer

5. We add sf-out-of-stock class to the “Out of Stock Text" and change the display property to block.

Webflow designer

Done. Don’t forget to remove all the sf-out-of-stock classes from the elements before publishing the site.

State Management of Add to Cart Button