Home / Ecommerce basics

How does ecommerce work? One order, from click to doorstep

How does ecommerce work behind the screen? Every online order passes through the same chain: a store, a cart, a card processor, a stockroom and a carrier. This guide follows a single order through all of them, step by step, so you can see what each part does and what an owner has to decide.

Talk to us about your store

Key takeaways

  • Ecommerce is the buying and selling of goods or services over the internet.
  • One order touches five systems: store, card processor, inventory, fulfilment and carrier.
  • Hosted platforms save time; self-hosted ones give control.

Who this is for

New owners, students and anyone asking how does online shopping work or what happens when you buy something online. No technical background needed.

What is ecommerce?

What is ecommerce in plain terms? It is selling products or services through a website, an app or a marketplace instead of across a counter. The customer never has to visit a physical shop, and the business never has to staff one all day.

An online store is made of a few parts that always exist, however big the business. A storefront shows products. A database remembers them. The purchase form turns interest into an order. A gateway moves the money. A fulfilment process moves the goods. Platforms and plugins package these parts differently, but the parts are the same, which is why the answer to how does ecommerce business work barely changes between a one-person shop and a large retailer.

Mobile commerce matters because most shoppers use a phone: the same store has to work on a small screen with one thumb. If you are new to the subject, think of ecommerce for beginners as a relay race where each runner hands the order to the next.

Each ecommerce transaction has a seller and a buyer, and four models describe who sells to whom. More on them below.

How does ecommerce work step by step?

This is how ecommerce works for one order, from the first click to the unboxing. Read it as a checklist for your own store: if any step is slow, confusing or manual, that is where customers and profit leak away.

  1. 1

    A shopper finds the product

    Search, a social post, an email or a marketplace listing sends a visitor to a product page. Good product pages carry a title, photos, price, stock status and delivery information, because they are where the decision is made.

  2. 2

    The product goes into a shopping cart

    The shopping cart is a temporary record tied to the visitor's browser. It lists items, quantities and the running total, and the store recalculates it whenever the shopper changes something.

  3. 3

    Checkout collects the details

    At checkout the shopper gives an address, a delivery option and a way to pay. The store adds taxes and shipping rates according to your rules, then shows a final total before any money moves.

  4. 4

    The payment gateway takes over

    The checkout passes card details to the payment gateway over an encrypted connection. The gateway asks the card network and the shopper's bank to approve the payment and returns a yes or a no in seconds.

  5. 5

    The order is recorded and stock updates

    On approval the store creates an order, lowers the inventory count through inventory management, emails a confirmation and notifies you or your supplier. This is the moment ecommerce stops being a web page and becomes a job.

  6. 6

    Someone picks and packs the parcel

    Order fulfillment means picking and packing: finding the item, checking it, packing it and printing the label. It happens in your spare room, a third-party warehouse, or at a dropshipping supplier.

  7. 7

    The carrier handles shipping and delivery

    The carrier scans the parcel, the tracking number goes back to the shopper and the store marks the order shipped. Clear delivery times and tracking reduce most support questions.

  8. 8

    After the sale: returns, support and data

    Returns and refunds, reviews and post-purchase support close the loop. Your ecommerce analytics then show where shoppers dropped out, so the next order goes more smoothly.

The card is locked in transit; the bank answers in seconds.

How ecommerce payments work

How ecommerce payments work is the part beginners worry about most, so here is the short version. The store never needs to keep card numbers. The checkout sends them to the gateway, which is the online equivalent of a card reader, and the gateway returns approved or declined.

Secure payment processing rests on three layers. First, an SSL certificate makes the connection encrypted, so the padlock appears and card details cannot be read in transit. Second, many banks ask the buyer to confirm the payment through 3-D Secure, which reduces fraud. Third, a merchant account receives the approved money and pays it out to your bank account. Many providers combine the gateway and the merchant account in one sign-up.

Fraud prevention is part of the same system: address checks, order-value alerts and holding unusual orders for review. For an applied example, see our beginner's guide to WooCommerce payments.

How do ecommerce platforms work?

How do ecommerce platforms work? They bundle the storefront, cart, order records and admin screens into one product, so you do not code them yourself. The main choice is who runs the machinery.

QuestionHosted ecommerce platformSelf-hosted ecommerce platform
Who runs the serversThe providerYou or your host
Typical exampleShopifyWooCommerce on WordPress
Speed to launchFastModerate
Control over code and dataWithin platform limitsNearly total
MaintenanceMostly handled for youUpdates, backups and security are yours

Neither is wrong. Our comparison of Shopify vs WooCommerce goes through the trade-offs, and we build on both through our Shopify website design and WooCommerce website design services.

Types of ecommerce you will meet

The types of ecommerce describe who sells to whom. Each one changes the pricing and the support you provide.

B2C ecommerce

A business sells to individual shoppers, such as a clothing store or a book shop. It is the model most people mean by online shopping.

B2B ecommerce

A business sells to other businesses: bulk orders, account pricing, invoices and repeat purchasing are common.

C2C ecommerce

Individuals sell to each other through a marketplace that provides the listing, trust and payment tools.

C2B ecommerce

An individual offers a service or content to a company, such as a freelancer licensing photos or a creator selling to a brand.

Separate from these models is the fulfilment model: you can hold stock yourself, use dropshipping, or use print on demand where the supplier makes each item after the order. Our dropshipping start-up guide explains the supplier route.

How to start an ecommerce business

If you want to know how to start an ecommerce business after reading this, work in this order and you will avoid the usual rework.

  1. Choose a product and check there is real demand for it.
  2. Pick the platform that matches your technical comfort; our beginner's guide to Shopify is one route.
  3. Build clear product pages with honest photos and delivery details.
  4. Connect your card processor and place a test order yourself.
  5. Set shipping rules; see the international shipping guide if you ship abroad.
  6. Add returns and privacy pages, set up ecommerce analytics, then promote.

The advantages of ecommerce are real: a wider market, a shop that is open all day and data on every step. They only appear when each step above works.

Test one order yourself

Before launch, buy your own product with a real payment method. Time the confirmation email, check that stock went down and follow the parcel. The twenty minutes it takes shows more faults than any checklist.

How does ecommerce work: frequently asked questions

How does an ecommerce website work?

An ecommerce website shows products from a catalogue, keeps a shopping cart for each visitor, passes the order to the card processor and then records the order so someone can pack and ship it. A database holds products, prices, stock and customers; the theme only decides how it looks.

How does online shopping work from the buyer's side?

The buyer finds a product, adds it to a cart, enters delivery and payment details, confirms with the bank if asked, and receives an order confirmation. Then the shop prepares the parcel, the carrier delivers it, and the buyer can return it within the shop's policy.

What is the difference between a payment gateway and a merchant account?

A payment gateway is the secure link that passes card details from the checkout to the bank network. A merchant account is where approved payments are settled before they reach your business bank account. Many providers, such as all-in-one processors, bundle the two so a new store needs only one sign-up.

Do I need stock to run an ecommerce business?

No. With dropshipping or print on demand a supplier stores, packs and ships for you, and your store handles marketing, pricing and customer service. You still carry the responsibility for the customer experience, so test the supplier's own products before you sell them.

Is a hosted or self-hosted platform better for a beginner?

A hosted platform is quicker to launch because the provider runs the servers, updates and security. A self-hosted platform gives more control and no platform lock-in but needs hosting, maintenance and backups. Choose by how much technical responsibility you want.

How long does it take to start an ecommerce business?

A simple store with a few products can be live within days. The slower parts are sourcing or making products, writing good product pages, testing the purchase flow and setting up shipping rules and legal pages. Plan weeks, not hours, for a launch you are proud of.

Ready to see how ecommerce works for your own store?

We design and tune WooCommerce and Shopify stores so each of the steps above runs smoothly. Tell us what you sell and we will quote the work.