Edit me / Wire up Shopify
Connect every button to your Shopify store in ten minutes.
This page is your setup guide. It walks through creating a product in Shopify, copying its checkout link, and pasting it into the CMS so every Buy now and Add to bag button works. You can delete this page when you are done.
A Shopify store
Any plan works. You only need to be able to add products and open the Buy Button sales channel.
Your products
Titles, prices, photos and variants (size and colour) created in Shopify’s Products page.
This Framer project
Open the CMS panel and find the Products collection. Every product on this site is one item there.
01 / Step by step
1
Create the product in Shopify
In Shopify, open Products, then Add product. Add a title, price, photos and your size and colour variants, set the status to Active and save.
You should see
You should see the product in your Products list with a green Active tag.
2
Copy the checkout link
Pick the link style you prefer. Direct cart link: https://YOURSTORE.myshopify.com/cart/VARIANT_ID:1 sends the shopper straight to checkout with one item. Product page link: open the product and press View, then copy the address. Buy Button: in Sales channels, open Buy Button, create a button for the product and copy the link it gives you.
You should see
You should see a link that starts with https:// and ends with a number and :1, or with /products/your-product.
3
Find the item in the Framer CMS
In Framer, open the CMS panel, choose Products and open the item that matches. Every product on the site is one row here, and its name, price, photos and badges all come from the same row.
You should see
You should see fields for Name, Price, Category, Colours, Images and, near the bottom, Checkout link.
4
Paste the link into Checkout link
Click the Checkout link field and paste the link from step 2. Buy now and Add to bag on the product page, the sticky bar on phones and every product card link use this one field.
You should see
You should see the pasted link under the field and no red warning.
5
Optional: use the Shopify Buy Button embed
If you prefer Shopify’s own button, paste the embed snippet from the Buy Button channel into the Shopify Buy Button embed field. Add Framer’s Embed element on the product page and bind its HTML to this field.
You should see
You should see Shopify’s button render in place on the published product page.
6
Point the Bag link at your cart
Open the layout template named Main, select the Bag link in the Navigation and set its link to https://YOURSTORE.myshopify.com/cart. The same link is used in the phone menu.
You should see
You should see the bag open your Shopify cart in a new tab.
7
Repeat, then publish
Copy each remaining product the same way. Change prices, photos, colours and badges in the same rows. Press Publish in the top right of Framer when you are ready.
You should see
You should see your live site and a working checkout for every product.
02 / Field guide
Name and Slug
The product title and its web address, for example /products/harbour-bomber.
Price and Price label
Price is a number used to filter and sort. Price label is the text on cards, such as $148. Change both.
Was price
Optional. Fill it in to show a struck-through old price, and set Badge to Sale.
Category and Collection
Choose from the lists. A product appears on its category page and in its collection automatically.
Badge
Short label on the card: New, Sale, Best seller, Low stock. Leave empty for no badge.
Colours and Colour 1 to 4
Colours is the text list. Colour 1 to 4 are the swatch dots on the product page.
Sizes, Material, Fit
Plain text shown on the product page.
Image, Hover image, Image 3, Image 4
Use 4:5 portrait photos on a plain background. The hover image swaps in when the shopper points at the card.
Featured, Best seller, New arrival, On sale
Switches that decide which sections of the home page a product appears in.
Checkout link
The link every Buy now and Add to bag button uses. Required for checkout.
Shopify Buy Button embed
Optional embed snippet if you prefer Shopify’s own button.
03 / Good to know
Test with a draft order
Use Shopify’s bogus gateway or a 100 percent discount code to run a full test checkout without paying.
Add a discount code
Add ?discount=CODE to the end of a direct cart link and the discount applies at checkout.
Different sizes
Give each size its own Shopify variant, then link the product to the variant most people buy. Shoppers can change size at checkout.
Bag count
The Bag (0) label is a static link to your Shopify cart. Shopify shows the live count on its own pages.
Photos
Use 4:5 portrait images, at least 1200 pixels wide, on a plain background so the grid stays consistent.
Speed
Images load lazily. Keep hover and gallery images under 300 kilobytes each for a fast catalog.
Stuck on a step?
Every field on the Products collection has a description that repeats these steps. Hover over a field name in the CMS panel to read it.