How to Add a Shopping Cart to Your Website
Updated: 4 days ago

Disclosure: this article contains affiliate links, and we may earn a commission at no extra cost to you if you sign up through them.
You've got a website, you've got products, and now you want people to actually buy them. Adding a shopping cart is the step that turns a brochure site into a store, and it's easier than it used to be. Depending on how your site is built, you can add a cart in an afternoon, sometimes in a few minutes.
The right method depends on your platform, how many products you sell and how much control you want over checkout. This guide explains what a shopping cart actually does, compares the main ways to add one to a website, and walks through the setup steps, from payments and shipping to testing your first order.
What a shopping cart does (and why it matters)
A shopping cart is the part of your site that holds products a customer wants to buy, keeps track of quantities and options, calculates totals and passes everything to checkout. A complete ecommerce cart usually handles:
Adding and removing products, including variants like size and color.
Calculating totals, with discounts, shipping and taxes.
Remembering items if a shopper leaves and comes back.
Checkout, where the customer enters shipping details and pays.
Payment processing, usually through a payment provider that handles card security.
Order management, so you can see, fulfill and track each order.
Some tools only give you a "buy" button that sends shoppers to a hosted checkout page. Others give you a full cart with a cart icon, a side cart or cart page and a checkout built into your site. Both can work, but they suit different stores.
Before you start: questions that decide the best method
A few quick answers will point you toward the right option:
What platform is your site built on? A website builder, WordPress, or custom code?
How many products will you sell? One or two products need far less than a catalog of hundreds.
Physical, digital or services? Digital products need secure file delivery; physical products need shipping and inventory.
Do you want customers to stay on your site for the entire checkout, or is a redirect to a payment page fine?
What's your budget? Consider monthly fees, transaction fees and any app or plugin costs.
How technical are you? Some options are no-code; others need developer help.
The main ways to add a shopping cart to a website
There are five common approaches. Here's how they compare.
Option 1: Use a website builder with built-in ecommerce
If your site is on a website builder, the simplest route is usually to turn on its built-in store features. You get products, a cart, checkout, payments, shipping, taxes and order management in one place, with no plugins to maintain.
On Wix, for example, adding the Wix Stores app automatically adds a cart icon to your site's header. You can choose what happens when a customer clicks "Add to Cart," like opening a side cart, going straight to the cart page, showing a quick success popup or keeping them on the same page. The cart icon can also open the side cart or the full cart page. If you deleted the cart icon by accident, you can add it back from the editor's Add Elements panel. Selling products online with Wix requires a Premium plan that supports accepting payments. You can see how the store features work on the Wix ecommerce website page.
If you don't have a site yet, it can be faster to start with an easy website builder that includes ecommerce from the beginning, rather than adding a cart to a site that wasn't designed for selling. Tools like AI Website Builder can also generate a first draft of your site from a short description of your business, which gives you a starting point to build your store on.
Best for: small businesses, creators and anyone who wants a no-code setup with everything in one dashboard.
Option 2: Install an ecommerce plugin on WordPress
If your website runs on WordPress, WooCommerce is the most common way to add a full shopping cart. It adds product pages, cart and checkout pages, and connects to payment gateways like Stripe and PayPal through extensions. It's very flexible, but you're responsible for hosting, security, updates and plugin compatibility.
Best for: existing WordPress sites, especially if you're comfortable managing plugins or have a developer.
Option 3: Add an embeddable cart to an existing site
Embeddable carts let you add buy buttons and a cart to almost any site, including custom HTML sites. Services like Shopify's Buy Button, Ecwid and Snipcart work this way: you add a snippet of code or a widget to your pages, and the service handles the cart and checkout.
Best for: sites you don't want to rebuild, or developers who want to add commerce to a custom site.
Option 4: Use payment links or buy buttons
If you only sell one or a few products, you might not need a full cart. Payment providers like Stripe, PayPal and Square let you create payment links or buttons that take customers to a hosted checkout page. It's fast and inexpensive, but there's usually no multi-item cart, and inventory, shipping and tax features are limited.
Best for: single products, donations, deposits, digital downloads or testing demand before building a full store.
Option 5: Build a custom cart
Larger businesses or those with unusual requirements sometimes build a custom cart using a headless commerce platform or their own code. This gives you full control over the experience, but it's the most expensive and time-consuming option and needs ongoing development. There's also a lighter route: Wix Headless lets you create a website from anywhere, including an AI coding tool, and use Wix's ready-made cart, checkout and payments, so you don't have to build commerce from scratch.
Best for: businesses with complex needs and development resources.
Method | Technical skill | Full cart | Best for |
|---|---|---|---|
Website builder with ecommerce | Low | Yes | Small businesses wanting an all-in-one setup |
WordPress plus WooCommerce | Medium | Yes | Existing WordPress sites |
Embeddable cart widgets | Low to medium | Yes | Adding a store to an existing site |
Payment links and buy buttons | Low | Usually not | One or a few products |
Custom or headless build | High | Yes | Complex, high-volume stores |
How to add a shopping cart to your website, step by step
Whatever method you choose, the setup follows a similar path. Here's the order that avoids the most common hold-ups.
Step 1: Choose your platform or tool
Use the comparison above to pick the method that fits your site and skills. If you're unsure, start with the simplest option that supports your product type. You can always move to a more advanced setup later.
Step 2: Add your products
Create a product for each item you sell, with:
A clear product name.
Price, plus any sale price.
High-quality photos from several angles.
A helpful product description with sizes, materials and other key details.
Variants, such as size or color, with their own prices or stock levels if needed.
Inventory quantities, if you want the store to track stock.
Weight and dimensions for physical products, which you'll need for shipping.
Organize products into categories or collections so they're easy to browse.
Step 3: Add the cart and product elements to your pages
On a website builder, this usually means adding a product gallery or shop page, product pages, a cart icon in the header, and a side cart or cart page. With an embeddable cart or plugin, you'll add the relevant widgets or shortcodes to your pages.
Put the cart icon where shoppers expect it, typically in the top right corner of the header, and make sure it shows the number of items in the cart. Decide what happens after "Add to Cart" is clicked: opening a side cart keeps shoppers on the page while confirming the item was added, which works well for stores where people buy multiple items.
Step 4: Connect a payment provider
To accept payments, you'll connect a payment provider. Common options include built-in platform payment solutions, Stripe, PayPal, Square and others, depending on your country. You'll usually need:
Business details, such as your business name and address.
A bank account for payouts.
Identity verification for the account owner.
Turn on popular payment methods like credit and debit cards, digital wallets such as Apple Pay and Google Pay, and PayPal. The more familiar the options, the more confident shoppers feel at checkout.
Step 5: Set up shipping and delivery
For physical products, define where you ship and how much you charge. Most stores start with a domestic zone and an international zone, then choose a rate model like a flat rate, free shipping over a minimum order or rate by weight. Add local delivery or pickup if you serve nearby customers. Make sure every region you sell to is covered, since customers in an uncovered region usually can't complete checkout.
Step 6: Configure taxes
Depending on where you're based and where you sell, you may need to collect sales tax, VAT or GST. Many platforms can calculate taxes automatically or let you set rates by region. Tax rules are complex and vary by location, so check with a tax professional if you're unsure what applies to your business.
Step 7: Customize the cart and checkout
Adjust the look of your cart and checkout to match your brand, and review what information you ask for. Small changes help:
Allow guest checkout so customers don't have to create an account.
Show a clear order summary with product images.
Display shipping costs and delivery estimates early.
Add a discount code field, but keep it from distracting shoppers who don't have one.
Show trust signals like secure checkout badges, return policies and contact details.
Step 8: Add your store policies
Create pages for your shipping policy, returns and refunds policy, privacy policy and terms of service. Link them from your footer and checkout. Clear policies build trust and are often required by payment providers.
Step 9: Test the full purchase flow
Before launch, place test orders from start to finish:
Add products to the cart, including variants.
Update quantities and remove items.
Apply a discount code.
Check shipping and tax calculations for different addresses.
Complete a payment using test mode or a real card you then refund.
Confirm order confirmation emails arrive and look right.
Test on mobile, since most shoppers will use a phone.
Step 10: Launch and monitor
Once everything works, publish your store and announce it. Keep an eye on your first orders, cart abandonment rate and any customer questions, then refine the setup based on what you learn.
Shopping cart features that increase sales
A basic cart works, but a few features can noticeably improve conversion and order value.
Side cart or mini cart
A side cart slides out when a customer adds an item, confirming the action and showing what's in the cart without leaving the page. It encourages continued browsing and makes it easy to go to checkout when ready.
Persistent cart
If a shopper adds items and leaves, a persistent cart keeps those items for when they return. This is especially useful for shoppers who browse on one visit and buy on another.
Abandoned cart recovery
Many platforms can automatically email shoppers who entered their email address but didn't complete checkout, reminding them of what they left behind. It's one of the most effective ways to recover lost sales.
Upsells and cross-sells
Suggest related products in the cart, like a case with a phone or a matching scarf with a coat. Keep suggestions relevant and limited to one or two items.
Free shipping progress bar
A message such as "You're $15 away from free shipping" motivates shoppers to add another item to reach the threshold.
Multiple payment options
Digital wallets, buy now pay later and local payment methods can reduce friction for shoppers who don't want to type in card details.
How much does it cost to add a shopping cart?
The cost of adding a cart varies widely depending on the method you choose. Instead of focusing only on the monthly price, look at the total cost of selling, which usually includes several parts.
Platform or plan fees
Website builders typically require a paid ecommerce or business plan to accept payments. WordPress itself is free, but you'll pay for hosting, a domain and possibly premium themes or extensions. Embeddable carts and headless platforms usually charge a monthly subscription that scales with features or sales volume.
Payment processing fees
Almost every payment provider charges a percentage plus a small fixed fee per transaction for card payments. Some platforms add their own transaction fee on top if you use an outside payment provider, so check the fine print. Digital wallets usually cost the same as cards, while buy now pay later services often carry higher fees.
Apps, plugins and extensions
Features like advanced shipping, subscriptions, product reviews or abandoned cart emails may be included or may require paid add-ons. On WordPress in particular, several paid extensions can add up quickly.
Development and maintenance
No-code options keep this cost close to zero. Plugins and custom builds may need developer time for setup, updates, security fixes and troubleshooting.
When comparing options, estimate your monthly sales and calculate what each setup would cost at that level. A tool with a slightly higher monthly price but lower transaction fees can be cheaper once sales grow.
Choosing a cart for different types of products
The best cart setup also depends on what you sell. Here's how needs differ by product type.
Physical products
You'll need inventory tracking, product variants, shipping rates by region, tax settings and order fulfillment tools. Built-in ecommerce on a website builder or a full plugin like WooCommerce covers these well.
Digital products
For ebooks, templates, music, courses or software, look for secure file delivery, download limits and instant access after purchase. You won't need shipping, but you may need to handle digital sales tax rules in some regions. Many platforms support digital products directly; payment links can work for a single download.
Services and bookings
If you sell appointments, classes or consultations, a booking system with a cart lets customers pick a time and pay in one flow. Some platforms let customers book services and buy products in the same cart, which is handy if you sell both.
Subscriptions
Subscription boxes, memberships and replenishment products need recurring billing, easy cancellation and renewal reminders. Check that your cart and payment provider support subscriptions before you commit to a platform.
Example setups by business type
To make this concrete, here are a few typical scenarios and the setup that tends to fit each one.
A local bakery taking preorders: a website builder store with a small product catalog, local delivery and pickup options, and a side cart so customers can add several items quickly.
An illustrator selling prints and digital downloads: built-in ecommerce with both physical and digital products, flat-rate shipping for prints and instant download delivery for digital files.
A WordPress blogger launching merchandise: WooCommerce or an embeddable cart added to the existing site, so the blog stays where it is and the store is added alongside it.
A coach selling one program: a payment link or buy button on a sales page, with no cart needed until more products are added.
A growing brand with complex needs: a dedicated ecommerce platform or headless setup, with developer support for custom features and integrations.
Security and compliance basics
Shoppers need to trust your checkout. A few essentials:
SSL certificate: your site should use HTTPS so data is encrypted. Most website builders include this automatically.
PCI compliance: if you accept cards, payment data must be handled securely. Using a reputable payment provider or a platform's built-in checkout means the provider handles most of this.
Privacy policy: explain what customer data you collect and how you use it.
Clear contact details: an email address, contact form or phone number helps shoppers feel confident there's a real business behind the store.
How to improve your cart after launch
Adding a cart is the start, not the finish. Once real customers are using it, you'll learn a lot about where they hesitate. A few habits help you keep improving it.
Track the right numbers
Watch your add-to-cart rate, cart abandonment rate, checkout completion rate and average order value. Most ecommerce platforms show these in their analytics, and you can add more detail with a tool like Google Analytics. A sudden drop in checkout completion often points to a technical problem, like a payment method that stopped working or a shipping rate that's calculating incorrectly.
Find where shoppers drop off
Compare how many people view the cart, start checkout and finish payment. If many shoppers view the cart but don't start checkout, the cart page itself may be the issue, for example confusing totals or a missing shipping estimate. If they start checkout but don't finish, look at the number of form fields, the payment options and any surprise costs.
Make small, measurable changes
Change one thing at a time so you can see what made the difference. Good candidates include moving the free shipping message higher, adding a digital wallet, shortening the checkout form or switching from a cart page to a side cart.
Listen to customers
Support emails, chat messages and reviews often reveal friction you'd never spot yourself. If several people ask the same question before buying, answer it on the product page or in the cart.
Keep it fast
Every extra second of loading time can cost sales, especially on mobile. Compress product images, remove apps or plugins you don't use and check your page speed regularly.
Common mistakes when adding a shopping cart
Choosing a tool that can't grow with you
Payment links are great for one product, but if you plan to sell dozens, start with a full cart so you don't have to rebuild later.
Hiding costs until the last step
Unexpected shipping fees and taxes are a leading cause of cart abandonment. Show costs as early as possible.
Forcing account creation
Requiring an account before checkout adds friction. Offer guest checkout and invite customers to create an account after purchase.
Skipping mobile testing
A cart that works on desktop can still break or feel clumsy on a phone. Test every step on mobile.
Forgetting the cart icon
If shoppers can't find the cart, they can't check out. Keep the icon visible in the header on every page.
Final thoughts
Adding a shopping cart to your website is mostly about picking the right method for your platform and product count, then following a clear setup sequence: add products, place the cart, connect payments, set shipping and taxes, customize checkout and test everything. For most small businesses, a website builder with built-in ecommerce is the quickest and lowest-maintenance path, while WordPress plugins, embeddable carts and payment links each fit specific situations. Whichever route you take, treat the cart as something you keep refining, using real customer behavior to guide each change.
If you're starting from scratch, AI Website Builder can help you generate a site in minutes so you can focus on the parts that make a store successful: great products, a smooth cart and a checkout shoppers trust.
Add a Shopping Cart to Your Website FAQ
How do I add a shopping cart to my website?
The easiest way depends on your platform. Website builders usually let you add a built-in store that includes a cart and checkout. WordPress sites typically use WooCommerce, while custom sites can use embeddable carts or payment buttons. Then add products, connect payments, set shipping and test the checkout.
Can I add a shopping cart to a website for free?
Some tools offer free plans or free plugins, but you'll almost always pay transaction fees when you accept payments, and many website builders require a paid plan to sell online. Factor in hosting, plugin and payment costs when comparing options.
What's the difference between a shopping cart and a payment button?
A shopping cart lets customers add multiple products, adjust quantities and check out once. A payment button or link usually sells a single product or amount and sends the customer straight to a payment page.
Do I need coding skills to add a shopping cart?
No. Website builders with built-in ecommerce and many embeddable carts are no-code. You'll only need coding skills if you're building a custom cart or heavily customizing a plugin.
How do I add a shopping cart to a WordPress site?
Most WordPress sites use WooCommerce. Install the plugin, follow its setup wizard to configure your store, add products, connect a payment gateway like Stripe or PayPal, set up shipping and taxes, then test the cart and checkout pages.
Is a shopping cart secure?
It is when your site uses HTTPS and you process payments through a reputable provider. Built-in platform checkouts and major payment providers handle card security and much of PCI compliance for you.
What features should a good shopping cart have?
Look for variant support, clear totals with shipping and taxes, guest checkout, multiple payment methods, a side cart or mini cart, abandoned cart recovery and a mobile-friendly design.



Comments