# Add a shopping cart to any website.

Paste one script tag into your HTML, put a container where your products should show, and your site has a catalogue, a cart and a checkout. No cart code to write, no platform to move to, 0% platform fees.

[Start Free Trial](https://app.shoprocket.io/signup)[See how it works](#how-to-add-a-cart)

14-Day Free Trial

No Credit Card

0% Platform Fees

Works on any website

1

Script tag

Any

Website

Full

Cart & checkout

0%

Platform fees

● How to add a shopping cart to your website

## Three steps, about fifteen minutes.

You need three things: a Shoprocket store with your products in it, a payment account such as Stripe or PayPal, and one snippet pasted into your site.

01

### 1. Add your products.

Create a store and add products with photos, prices, options and stock. Physical goods, digital downloads, licence keys and gift cards all live in the same catalogue.

02

### 2. Connect how you get paid.

Connect your own Stripe, PayPal or another of our payment gateways. Money goes straight to your account, and Shoprocket takes 0% of each sale.

03

### 3. Paste the snippet.

Copy the snippet from your dashboard and paste it into your HTML, or into your site builder's HTML or embed block. The cart appears on your page and works straight away.

The HTML

### The whole cart is two lines of HTML.

The script tag goes in your page once. The container goes wherever products should appear: a full catalogue on a shop page, a single product inside an article, or just a buy button. The script loads without slowing your page, finds every container, and fills it. A floating cart follows shoppers from page to page, so they can keep browsing and check out once.

- ✓ Works on plain HTML, static sites and any CMS
- ✓ Loads without blocking your page
- ✓ The cart stays with shoppers across every page
- ✓ No server, database or cart code of your own

● What the cart does

## More than a buy button.

A free cart script or a single payment button takes one payment for one item. Shoprocket is a full store behind your HTML.

01

### A real cart.

Shoppers add several products, change quantities, apply a discount code and pay once, with shipping and tax worked out before they pay.

02

### Checkout on your site.

Checkout runs inside the cart on your page. At the payment step your provider's secure form opens inside the cart, or shoppers take a short trip to its page and come straight back to their order confirmation.

03

### Orders, stock and emails.

Every order lands in your dashboard with its address and items. Stock goes down as items sell, and customers get their confirmation and shipping emails automatically.

04

### Nothing to maintain.

No plugin to update and no cart code to patch. Security, payments and new features update on their own, on every site you have pasted the snippet into.

● Common questions

## Adding a shopping cart, answered.

What people ask before they add a cart to their website.

How do I add a shopping cart to my website? +

Create a Shoprocket store, add your products, connect Stripe or PayPal, then paste the snippet from your dashboard into your site's HTML. The cart and checkout appear on your page straight away. Most people are selling within fifteen minutes.

What do I need to add a shopping cart to my website? +

A website where you can paste HTML, products to sell, and a payment account such as Stripe or PayPal. You don't need hosting for the cart, a database, or any coding beyond pasting the snippet.

Can I add a shopping cart to a plain HTML website? +

Yes. A static HTML site is the simplest case: paste the script tag into your page and add a container where the products should show. The same snippet works on sites built with Hugo, Jekyll, Astro or anything else that outputs HTML.

Can I add a cart to my existing website without rebuilding it? +

Yes. Your site, design and content stay exactly as they are. The cart appears inside the pages you already have, on WordPress, Webflow, Squarespace, Wix, Framer, Ghost, Carrd or your own HTML.

Is there a free HTML shopping cart? +

Free cart scripts exist, but you host, secure and maintain them yourself, and most stop at the cart without stock, tax, shipping or order emails. Shoprocket is free for 14 days with no credit card, then a flat monthly plan, with 0% platform fees on every plan.

Do I need to write any shopping cart code? +

No. You copy the snippet from your dashboard and paste it into your page. Products, prices and the cart's look are all managed in the dashboard, so changing them never means editing your HTML.

## See it and set it up

- [Try a live demo of the cart and checkout](https://shoprocket.io/demo.md)
- [Add Shoprocket to your website: step-by-step help](https://shoprocket.io/help/embed-on-any-website.md)
- [Every way to sell on the site you already have](https://shoprocket.io/features/sell-on-any-website.md)

## Give your website a shopping cart.

14-day free trial. No credit card. Paste one snippet and start selling on the site you already have.

[Start Free Trial](https://app.shoprocket.io/signup)[Try the demo](https://shoprocket.io/demo.md)

---

- HTML version: https://shoprocket.io/html-shopping-cart
- Language: English (en)
- Also in: [العربية](https://shoprocket.io/ar/html-shopping-cart.md), [Deutsch](https://shoprocket.io/de/html-warenkorb.md), [Ελληνικά](https://shoprocket.io/el/html-shopping-cart.md), [Español](https://shoprocket.io/es/carrito-de-compras-html.md), [Français](https://shoprocket.io/fr/panier-html.md), [עברית](https://shoprocket.io/he/html-shopping-cart.md), [हिन्दी](https://shoprocket.io/hi/html-shopping-cart.md), [Bahasa Indonesia](https://shoprocket.io/id/keranjang-belanja-html.md), [Italiano](https://shoprocket.io/it/carrello-html.md), [日本語](https://shoprocket.io/ja/html-shopping-cart.md), [Lietuvių](https://shoprocket.io/lt/html-pirkiniu-krepselis.md), [Norsk](https://shoprocket.io/nb/html-handlekurv.md), [Nederlands](https://shoprocket.io/nl/html-winkelwagen.md), [Polski](https://shoprocket.io/pl/koszyk-html.md), [Português](https://shoprocket.io/pt/carrinho-de-compras-html.md), [Română](https://shoprocket.io/ro/cos-de-cumparaturi-html.md), [Русский](https://shoprocket.io/ru/html-shopping-cart.md), [ไทย](https://shoprocket.io/th/html-shopping-cart.md), [Türkçe](https://shoprocket.io/tr/html-alisveris-sepeti.md), [中文](https://shoprocket.io/zh/html-shopping-cart.md)
