Framer Shopify integration: storefront and checkout
Connect a Framer storefront to Shopify through a supported method, then verify product data, cart and checkout boundaries with an actual test order.
- Published
- Last updated
Yes, a Framer Shopify integration can use Shopify’s Buy Button embed to display products and hand purchases to Shopify checkout. Framer supplies the surrounding pages. Shopify supplies the product records and commerce process, with an embedded cart when you select that buying action.
For a small product range, this is a documented embed route without a separate catalogue-sync plugin. A fully designed Framer catalogue with a shared cart across pages needs a connector or custom implementation with its own data-refresh rules.
Assign storefront and commerce ownership
Keep Shopify as the source of product and order records, and use Framer for page design and editorial content. Shopify’s Buy Button documentation supports adding product displays to external websites. It also states that changes to product details in Shopify appear on the Buy Button.
Framer documents embedding scripts through its Embed component. Combining that surface with Shopify’s generated embed code is different from turning Framer into a Shopify theme. Checkout settings and payment processing remain in Shopify.
Agree on the buying experience before designing every product card. A direct-checkout action suits a single-product purchase. An embedded cart suits customers who need to add products before paying. A copied product photo with a styled Framer button supplies neither behaviour until the button has a working commerce destination.
Choose the connection you need
| Method | Product display | Cart and checkout | Ongoing work |
|---|---|---|---|
| Shopify Buy Button embed | Shopify-powered product or collection display inside Framer | Embedded cart or direct checkout, according to the chosen action | Maintain the embed and check its behaviour in Framer |
| Shopify cart permalink | Framer-authored display with a checkout link for specific variants | Shopify receives the variant and quantity in the link | Maintain the Framer copy and the variant-to-link mapping |
| Connector or custom storefront | Framer display using the chosen integration’s product data | Depends on the implementation, with Shopify checkout as the intended destination | Own catalogue refresh and cart behaviour across pages |
Shopify’s cart permalink guide documents links containing variant identifiers and quantities. These are useful for a fixed purchase button. The link itself does not refresh a price or stock message you typed into Framer.
Use the embed route below when Shopify’s product presentation fits your page. If you require custom product layouts, document who maintains each displayed fact before choosing another route. Framer’s custom integration guide distinguishes simple script embeds from coded components that need fuller control.
Connect products and the buying path
Create the Buy Button from the intended Shopify products, then place its generated code in Framer’s Embed component. Keep the product selection and buying action consistent with the page’s promise.
- Add Shopify’s Buy Button sales channel if it is absent. Use the store with the intended catalogue and a payment gateway supported in your merchant country.
- Create a product or collection Buy Button. For a product with options, select all variants when customers need to choose between them. Select one variant only for a page selling that exact option.
- Choose the action and layout in Shopify. Use the preview to confirm that customers can select the intended product before you copy the code.
- Copy the full generated embed code. In Framer, insert an Embed component and place the code in its HTML field. Allow enough space for the product display and its interactive states.
- Open a published test version of the Framer page. Follow the purchase through to Shopify checkout, including any new window opened by the button.
Shopify’s Buy Button creation guide defines the actions. “Add product to cart” lets customers continue shopping. “Direct to checkout” takes the purchase straight to checkout and prevents adding further products to that order. Buttons on the same page must use the same action.
The generated-code route does not require you to create a separate custom application or choose API scopes yourself. Use the code produced by your store’s Buy Button channel. Keep private Admin API credentials out of Framer embeds and page code. A custom storefront connection is a separate setup with its own credentials and permissions.
Shopify’s embed-code instructions explain that the generated code contains a display element and a script. Retain both when transferring the embed. A button that looks correct while its script fails cannot create the intended buying path.
Keep prices and stock consistent
Let the Shopify-powered display carry product facts wherever possible. A price typed beside the embed in Framer is a second copy that someone must maintain. The same applies to a manually written “In stock” message.
Compare the displayed variant and its price with checkout in your intended market. Check the currency as well as the amount. Store currency, customer market and payment configuration must produce a result your customer can understand before they pay.
Do not promise a catalogue-refresh interval for an embed unless the implementation supplies one. After a Shopify change, reload the Framer test page and inspect the result. A connector importing products into Framer’s content management system needs a separate explanation of when imports run and how changed variants reach checkout.
Check an order and changed product
Use a Shopify test store and a published Framer test page to verify the complete purchase. Shopify’s test-order guidance covers a test gateway and Shopify Payments test mode. Live customers cannot order while payment providers are in test mode, so keep these checks away from a trading store.
For a fictional example, create a “Coastal shirt” test product with blue and green variants. Give the variants different stock levels so choosing the wrong one produces a visible difference. Use a test customer and an inbox you control for the confirmation.
| Test action | What to inspect | Passing result |
|---|---|---|
| Choose green and add one shirt | Embedded cart and checkout line | Green remains selected with the correct quantity |
| Complete a supported test payment | Shopify order and confirmation | The same variant and amount appear in both records |
| Change the test product price in Shopify | Reloaded Framer display and checkout | The customer sees a consistent current price and currency |
| Sell out the green variant | Variant selector and checkout | The result follows Shopify’s inventory policy for that variant |
| Return to the product page | Button and cart behaviour | The customer can start another intended purchase without a broken control |
| Open the page on a phone | Product options and checkout handover | Controls remain usable and checkout opens successfully |
For the sold-out check, enable inventory tracking and disable selling beyond available stock on the test variant. Then set its available quantity to zero. A store that permits continued selling needs a different expected result, so record that inventory policy before judging the test.
Check a second product if you offer a multi-product basket. Add it through the same page, then through another page if your design requires that journey. Separate embeds or page transitions must not silently split the customer’s intended order. If the required basket does not persist, change the implementation or buying journey before adding more products.
Treat Shopify’s saved test order as the purchase record. The Framer page looking correct proves only presentation. Match the chosen variant to the saved order, then resolve any price, stock or cart mismatch before using the same arrangement for customer purchases.
Give your store its own shopping agent
Customers ask in their own words. Your agent finds, compares and checks out from your catalogue, right on your site.