An illustration of one shared platform with a classifieds board of listings on the left and a small shop counter with a bag, a parcel and a cart on the right.

One open-source script for a classifieds site or an online shop

With 7.1, one ShopClass install can be a classifieds site or a shop. What shop mode does, why it is part of core, and what it changes for a classifieds site.

ShopClass 7.1 is out, and it brings shop mode. One install can now be a classifieds site, where visitors post their own ads, or a shop, where you sell your own products with a cart, a checkout and orders you ship.

You can try it on the shop demo. Pay with the test card, nothing is charged. admin / admin opens the admin, and the demo resets every hour.

Why a shop, in a classifieds script

This was always the plan. It is why we renamed Osclass to ShopClass: the name was meant to cover both kinds of site.

A classifieds site and a shop share most of their core. A product is a listing with photos, a category, a price and search, and ShopClass already does all of that. What a shop needs on top is the part where money and stock move: options with their own price and stock, a cart priced on the server, a checkout, orders, invoices and refunds.

So we made it two modes of one core, not two products. A site runs in one mode at a time, so the features one kind of site does not need stay out of the way of the other. A classifieds site does not carry a cart it never uses, and a shop does not show public seller profiles or credit packages.

It also lets us build plugins and themes for one kind of site, or for both. Each package says which modes it supports, and our plugin and theme pages show it: Aisle is for shops, Storefront is for classifieds, and payment plugins like Stripe work for both.

The cart, checkout, orders and stock live in core, because the payment, tax, shipping and promotion plugins build on them. Stripe, PayPal and Razorpay, tax rules, shipping rates and coupons stay plugins, and you add only the ones your shop needs.

Shop mode was too big for 7.0, so we held it back and gave it its own release.

What you get

  • Products with options. Colour × size and so on, each with its own SKU, price, stock, weight and shipping class. An old price can show crossed out, and a low-stock note shows by itself.
  • Cart and checkout. Pay by card with the free Stripe, PayPal or Razorpay plugin, by bank transfer or cash on delivery. Stock is taken when the order is placed, and given back on a refund or a cancel.
  • Orders. Billing → Orders has a To ship list, parcels with tracking, and a history of every change.
  • Invoices and refunds. Every paid order gets a numbered invoice, and every refund a credit note, with tax on each line. You can refund part of an order, by amount or by units.
  • Buyer accounts. Up to 10 saved addresses, a wishlist, back-in-stock and price-drop alerts, and an e-mail at every step of an order.
  • Forms and money that fit the country. Address forms follow the country, and each currency has its own number of decimals.

Aisle, a new shop theme, comes in the release zip. It is phone-first, with a cart drawer on every page, and you edit its home page beside a live preview under Appearance → Customise.

The shop plugins are free in the plugin catalogue: Shipping, Tax, Tax GST, Promotions, Shop emails and Digital Goods. When you install a shop, the installer lists them and installs the ones you tick.

Your classifieds site stays a classifieds site

Most ShopClass sites are classifieds sites, and we did not want 7.1 to turn them into something else. So shop mode is a setting, and it is off unless you choose it:

  1. Classifieds is the default. A site stays a classifieds site until you change Settings → General → Site is a. The installer asks which one you want.
  2. Shop pages only run in shop mode. The cart, checkout and order pages are switched off on a classifieds site.
  3. Both are tested. Our tests run on a classifieds site and again on a shop site, so a change for one is checked against the other.
  4. We tested speed again for 7.1. We ran 7.1.0 side by side with Osclass and HivePress on the same server, and in our tests ShopClass was still the fastest of the three on every page we measured. The numbers are on the full comparison.

Classifieds sites get new things in 7.1 too: pay at the end of posting, messages between buyers and sellers, map area search (with the free Map search plugin), place names in each language, and faster filters: on 232,000 listings, option filter counts went from 446 to 53 ms on MariaDB.

Before you update

  • ShopClass 7.1 needs PHP 8.2 or newer.
  • A 7.0 site updates to 7.1 from 7.0.12. An older 7.0 site is offered 7.0.12 first.
  • Take a backup first, as with any update. The updating guide has the steps.

To start a shop, read the shop guide, or download ShopClass 7.1 and pick Shop in the installer.

Let us know what you think. Found a problem? Open an issue on GitHub.