02Without a templateAll chapters

Chapter 02

A shop in your own Framer project

Already have a Framer site and want to sell on it? The checkout plugin sets up the shop building blocks for you and takes colours, fonts and corners from your project.

Who this is for

For everyone who doesn't use a kspr studio template but has their own Framer project, for example an existing brand site or a project an agency built. A kspr shop template already has everything, so you can go straight to connect Stripe.

Set up shop

Open the checkout plugin (open the plugin) and go to "Design". The plugin reads your project and shows what it found under "Your style": "Accent", "Corners", the fonts for "Headings" and "Text", and the appearance ("Follow site", "Always light" or "Always dark"). If a value says "Guess, please check", take a quick look. Every change shows right away in the preview (cart, product page, thank-you page).

The "Design" section: detected style on the left, preview with the thank-you page on the right.
The "Design" section: detected style on the left, preview with the thank-you page on the right.

With "Follow my color styles" the shop follows your colour styles later: change a colour style and the shop changes with it, in light and dark.

Under "What gets added" you choose:

  1. for "Collection": "Create "Products"" (a new collection), complete an existing collection, or "Don't change the CMS";
  2. whether to create the "Thank-you page (/thanks)" and "Cart cancelled page (/cart-cancelled)";
  3. then "Add to project".

The plugin works through the steps and reports what it did for each one. Running it again doesn't create anything twice.

A "Set up shop" run with the result for each step.
A "Set up shop" run with the result for each step.

What gets added

All components get colours, fonts and corners from your project. Later you can change each value on the right of the editor, in the component's properties.

The Cart Button with its drawer open, with a subscription and the free shipping bar.
The Cart Button with its drawer open, with a subscription and the free shipping bar.

Fields of the "Products" collection

FieldWhat for
Nameproduct name, also shown in Stripe Checkout
Priceprice, as a number or text like CHF 12.50
Imageproduct image
Descriptiondescription
Sold Outswitch for products that are unavailable
Variantssizes or pack sizes with their own price
Billing IntervalOne-time, Week, Month or Year (subscription)
Billing Interval Keytext version of the interval, kept up to date by the plugin when updating
Net Weight (g)net weight, for the unit price (for example per kg)
Stripe Price IDfilled in by the plugin, don't edit by hand
Stripe Variant IDsfilled in by the plugin, don't edit by hand

Framer provides the slug itself. How prices, variants, subscriptions and "Sold Out" work is explained under update products.

What you do yourself afterwards

A few steps can't be done by a plugin in Framer. The "Overview" section shows what is still missing, with the button "Run Set up shop" for a second run.

  1. Add a detail page if your products don't have one yet: in Framer's pages, click +, then New CMS page and Detail page for the "Products" collection. Then run "Set up shop" again, and the plugin puts Add to Bag on the detail page.
  2. Connect "Add to Bag" to the fields: select Add to Bag on the detail page and connect each property on the right to its field:
PropertyCMS field
Stripe Price IDStripe Price ID
SlugSlug
NameName
PricePrice
ImageImage
Sold outSold Out
Billing intervalBilling Interval Key
VariantsVariants
Stripe Variant IDsStripe Variant IDs
Net quantityNet Weight (g)
  1. Connect Billing interval to Billing Interval Key, not to "Billing Interval": Framer can't connect option fields directly to code properties, but the text field connects with one click.
  2. Keep the thank-you and cancel pages out of search: in the page settings of /thanks and /cart-cancelled, turn off indexing.
  3. Finishing touches: move the Cart Button and Add to Bag where you want them. If your navigation has several variants (for example for phone), check the position in each.
  4. Publish your site.
Add to Bag on a product page: compare-at price, sizes, quantity, buy button.
Add to Bag on a product page: compare-at price, sizes, quantity, buy button.

What's next

From here on, the path is the same as with a template:

  1. Connect Stripe
  2. Update products
  3. Test and go live