You can accept payments on a Webflow site without an Ecommerce plan by adding one custom attribute to a button you have already designed and one script to your site's footer code. The button then opens a hosted checkout in an overlay, and the payment goes to your own Stripe, PayPal or Square account.
This guide covers the attribute method step by step, how to keep your own button styling, how to give every CMS item its own buy button, and what to do if your site cannot run custom code.
The idea: your design stays, the checkout sits on top
Webflow Ecommerce builds products, a cart and a checkout into your Webflow project. That is the right structure for a store. It is a lot of structure if you have a finished site and want to sell one template, one workshop or a short run of prints from it.
The lighter approach leaves your project alone. You tag a button you have already designed, load one small script, and that button opens a hosted checkout page over your layout. Nothing about your classes, interactions or page structure changes.
The attribute and script below belong to Chargedeck, a checkout page builder that runs on your own processor account. The plain-link fallback further down works with any hosted checkout or payment link.
Step by step: one attribute, one script
First create the checkout page and note its slug, which is the last part of its link. If the link is https://chargedeck.app/p/brand-kit, the slug is brand-kit. Then, in Webflow:
- Select the button or link block you want to sell from.
- Open Element settings.
- Under Custom attributes, add the name
data-chargedeckwith your page slug as the value. - Open Site settings, then Custom code, and paste this line into Footer code:
<script src="https://chargedeck.app/embed.js" defer></script> - Publish.
The script goes in once for the whole site. After that, any element carrying the attribute is a buy button. To sell a second product, tag a second button with a different slug. There is no more code to add.
Keep your own button styling
By default the script gives a tagged element a simple button style. If you have already styled the button in Webflow and want it left exactly as designed, add a second custom attribute: name data-cdk-raw, value 1. Your hover states and typography stay yours.
Worked example: a CMS collection where every item sells
Say you run a small print studio and your Webflow site has a "Prints" collection with a template page per print. You want a buy button on each one without building twelve buttons by hand.
- In Chargedeck, create a checkout page for each print and note each slug.
- In the Webflow CMS, add a plain text field to the collection. Call it "Checkout slug" and fill it in for every item.
- On the collection template, select your buy button and add the custom attribute
data-chargedeck. Instead of typing a value, bind the value to the "Checkout slug" field. - Publish.
On the published site each item now carries its own value:
| CMS item | "Checkout slug" field | What the button carries when published |
|---|---|---|
| Harbor at Dawn | harbor-at-dawn | data-chargedeck="harbor-at-dawn" |
| Pine Ridge | pine-ridge | data-chargedeck="pine-ridge" |
| Low Tide | low-tide | data-chargedeck="low-tide" |
One button design, and every item opens the right checkout. Two details save trouble later:
- The price lives in two places. The price in your Webflow design is text. The price the buyer is charged is the one on the checkout page. When you change one, change the other.
- Options belong on the checkout page. If a print comes in two sizes, add them there as variants with stock per option. A size that runs out shows as sold out without you touching Webflow.
The arithmetic on limited stock is worth doing before launch. An edition of 25 prints at $40 in one size and 10 at $90 in a larger size can bring in at most 25 x $40 + 10 x $90 = $1,900. Set stock to 25 and 10 on the checkout page, and each size shows as sold out once its edition is gone.
If your site cannot run custom code
Custom code in Webflow needs a paid site plan or workspace. If it is not available to you, use a plain link: select any button or link block and paste your full checkout link as its URL. The checkout opens as a full page instead of an overlay. Everything on the checkout is the same.
There is also a middle route for single pages. Drag a Code Embed element onto the page, paste the ready-made buy button snippet from the embed generator, save and publish. That keeps the button and its script together in one element, which suits a one-off landing page. Code Embed counts as custom code, so expect the same plan requirement.
The three placements compared
| Placement | What the buyer sees | What it needs | Use it when |
|---|---|---|---|
| Custom attribute | Your own button opens the checkout in an overlay | Custom code enabled on the site | You have a designed site and want buy buttons anywhere, including CMS items |
| Code Embed element | A ready-made button that opens an overlay | Custom code enabled, one element per button | You need a single button on a single landing page |
| Plain link | The checkout opens as a full page | Nothing extra | Custom code is not available, or you want no setup at all |
The Webflow setup guide has each snippet ready to copy.
Check it on the published site before you share it
- Publish, then open the published site in a normal browser tab.
- Click the button. The overlay should show the right product name, price and options.
- Repeat on a phone.
- On a CMS template, check two or three different items to confirm each opens its own product.
- When the first real order arrives, confirm it shows in your processor account.
If a click does nothing, check three things: that the script is in Footer code, that the site was published after the change, and that the slug exactly matches the last part of the checkout link.
When Webflow Ecommerce is the better choice
This method is for selling a few things from a site whose main job is something else. It is the wrong choice in these cases:
- You want to design the checkout itself. Here you style the button, not the checkout. A Chargedeck page uses one of six themes with your accent color and logo. If the cart and checkout must match your site pixel for pixel, build them in Webflow Ecommerce.
- You need the checkout on your own domain. Chargedeck does not offer custom domains for checkout pages. In overlay mode the buyer stays on your page, but the checkout is served by Chargedeck.
- You sell with subscriptions or discount codes. Chargedeck does not do recurring billing or coupons.
- You need tax worked out at checkout. Chargedeck does not calculate sales tax or VAT, so you would set tax-inclusive prices or handle it in your accounting.
- You run a large catalog and want products, stock and orders managed inside Webflow.
On cost, compare like with like. Chargedeck is a flat monthly fee from $9.99 and takes 0% of your sales, and your own processor's card fee still applies. Webflow's plan prices change, so check Webflow's pricing page against Chargedeck's for your own case.
Prefer to see the raw snippets outside Webflow? The guide to adding a buy button to any website lists every embed method, and the same attribute works in a WordPress Custom HTML block.
