Docs
Free ON WEBFLOW.IO DOMAINS

Launch Checklist

Tips and Tricks
Follow this guide before launching your Shopyflow store to make sure everything is in it's optimal state.

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
Attribute Value
True or 1
Nesting Rule
Can be placed anywhere in the site
No items found.
Launch Checklist
Method

① Subscribe to a Shopyflow plan

To be able to use Shopyflow on a custom domain in Webflow, you need to have a Shopyflow plan.

  1. Open the Shopyflow Shopify App and head over to the plans page.
  2. Subscribe to a monthly or yearly plan.
  3. Head back to the home page of the Shopyflow Shopify App and follow the instructions.

② Set up Shopify and Webflow domains

IMPORTANT: Make sure you are NOT using the same domain in Webflow and in Shopify. Follow the steps below and set a new Shopify domain.

Next, you will need to set your primary Shopify domain which will be used for the Shopify checkout. For that you have two options: Using a custom domain or using the default Shopify domain (ends with myshopify.com).

Using a custom domain (Recommended)

Depending on your URL strategy, you might want to use a subdomain (store.mywebsite.com) in Shopify and the main domain (mywebsite.com) in Webflow or vice versa. Follow the steps below for each scenario:

A. Subdomain in Shopify (e.g. store.mywebsite.com) and main domain (e.g. mywebsite.com) in Webflow:
  1. Head over to Shopify Admin > Settings > Domain
  2. Add a custom domain (e.g. store.mywebsite.com) for your Shopify checkout by choosing Connect existing domain.
  3. Go to your domain host (e.g. GoDaddy, Namecheap, etc.) and open up your main domain's (e.g. mywebsite.com) DNS settings.
  4. Create a CNAME record as follows:
    name = The subdomain you added to Shopify (e.g. store)
    value = shops.myshopify.com
  5. Once the subdomain is added set it as your primary domain.

You can check out this Shopify guide for more info on connecting a subdomain to your Shopify store.

B. Main domain in Shopify (e.g. mywebsite.com) and subdomain (e.g. store.mywebsite.com) in Webflow:
  1. Head over to Shopify Admin > Settings > Domain
  2. Add a domain (e.g. mywebsite.com) for your Shopify checkout by choosing Connect existing domain.
  3. Go to your domain host (e.g. GoDaddy, Namecheap, etc.) and open up your main domain's (e.g. mywebsite.com) DNS settings.
  4. Remove if there's an existing A record that has the name @
  5. Create an A record as follows:
    name = @
    value = 23.227.38.65
  6. Create a CNAME record as follows:
    name = www
    value = shops.myshopify.com
  7. Once the domain is added set it as your primary domain.

You can check out this Shopify guide for more info on connecting a domain to your Shopify store.

Domains bought through Shopify

If you have bought your domain through Shopify, you can't use it in Webflow. Shopify does not allow two A records with the name @ which is a requirement for adding a custom domain to Webflow.

In that case you have two options:

  1. Transfer your domain to a different domain host. Use a subdomain in Shopify and the main domain in Webflow (See A above).
  2. Use the main domain in Shopify and a subdomain in Webflow (See B above).

Using the default Shopify domain

If you would like to use the default Shopify domain as your primary Shopify domain

  1. Head over to Shopify Admin > Settings > Domains.
  2. Find your default Shopify domain and set it as your primary domain.

③ Verify your setup in the Shopyflow Webflow & Shopify apps

Make sure both your domains are verified (DNS propagation complete and TLS certificates valid) You can check their status here. Once verified, follow these steps:

  1. Head over to the Shopyflow Shopify App and log in. Make sure there are no notifications or error messages. Follow the instructions if needed.
  2. Head over to your Webflow project. Open the Shopyflow Webflow App and login. Make sure there are no notifications regarding installation. Follow the instructions if needed.

④ Company logo in checkout & Redirects

Add the following code snippet to your theme.liquid file to setup Shopify redirects. The snippet does the following:

  1. Redirects your customers to the correct product pages in Webflow.
  2. Prevents your customers from accessing your Shopify theme when they click on your company logo in Shopify checkout.
  3. Redirects a Shopify page to a specific Webflow page following your defined rules (e.g. Shopify login to Webflow login).
  4. Excludes certain pages from redirect (e.g. subscription login page).
  5. Redirects all the other pages to your Webflow site home page.

Don't forget to change custom-domain (e.g. mystore.com) and webflow-collection-slug (e.g. products) values to match your store in Webflow. See the video below to locate your theme.liquid file in Shopify admin.

<script src="https://cdn.shopyflow.io/scripts/1.0.0/shopify-redirect.js"

  {% # Required # %}
  webflow-custom-domain="mystore.com"

  {% # Optional. Recommended when using CMS. Redirects Shopify PDP to Webflow PDP. # %}
  webflow-collection-slug="products"
  
  {% # Optional. Define page(s) that have explicit redirect rules. E.g. Shopify login -> Webflow login # %}
  redirect="account/login=login, account/register=sign-up"

  {% # Optional. Define page(s) that should be excluded from redirect. E.g. subscription login page # %}
  no-redirect="apps/subscriptions, tools/recurring, tools/calendar"
  
></script>

                                                    How to find your theme.liquid file in Shopify

⑤ Hide your Shopify Online Store (theme) from search engines

Add this line close to the top of your theme.liquid file to stop Google and other crawlers from indexing your Shopify theme. Refer to the video above to locate your theme.liquid file in Shopify admin.

<meta name="robots" content="noindex">

⑥ Share cart sessions between Webflow and the Shopify theme

To be able to use some of the Shopify apps that work only in a Shopify theme (Online Store), you can let Shopyflow sync your cart session from Webflow over to Shopify.

For that to work, domains on both platforms must be under the same top level domain. This means any domain + subdomain or subdomain + subdomain combination for Webflow and Shopify would work.

Cart syncing does not work if you are on webflow.io domain or if your Shopify domain ends with myshopify.com, since in both scenarios domains do not belong to the same top level domain.

✅ In these scenarios cart syncing will work:

  • Webflow: mywebsite.com
  • Shopify:   checkout.mywebsite.com
  • Webflow: store.mywebsite.com
  • Shopify:   mywebsite.com
  • Webflow: store.mywebsite.com
  • Shopify:   checkout.mywebsite.com


❌ In these scenarios cart syncing will not work:

  • Webflow: mywebsite.com
  • Shopify:   store.myshopify.com
  • Webflow: mywebsite.webflow.io
  • Shopify:   checkout.mywebsite.com

Once you have a working setup, you can add e.g. sf-redirect="https://mywebsite.com/cart" attribute to your checkout button to send your users to your cart page in your Shopify theme.

Class name
Target elements
Can be placed anywhere in the site
No items found.

Webflow app usage

Webflow app settings

Inner components

Module contents

Available methods

No items found.

Tips and Tricks

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.