OpenCart 2.3–4.1 extension

Supreme Variant Matrix

Stock and availability for each COMBINATION of options, for example size and colour together. Standard OpenCart tracks stock for one option value at a time, so a shop can sell a size that is sold out in the colour the shopper picked. With this module every size and colour pair has its own stock number.

$20
Supreme Variant Matrix — overview

What it does

  • An admin page where you search a product that has select or radio options. It lists every combination of one value of each of those options and lets you set a stock number, an optional SKU and an On sale switch for each. A "set every quantity" button fills the grid fast. Up to 400 combinations per product.
  • A product with a matrix is sold only in the combinations you list and switch on. A combination that is not listed, switched off or sold out cannot be bought.
  • Product page: a message above the Add to Cart button as the shopper picks options ("Only 3 left of this option combination.", "This option combination is sold out.", "This option combination is not available."). For a sold out or unavailable combination the button is disabled.
  • Add to cart check: the server checks the chosen combination, counting what the cart already holds. The message appears under the option on the product page. A missing choice is left to the shop's own "required" message.
  • Checkout check: a cart that holds more than is left, or a combination that was switched off after it went in the cart, goes back to the cart page with the message (the normal checkout address was tested; the Supreme One Page Checkout controller is hooked the same way but was not tested on its own for this module).
  • Order status: stock of the combinations goes down when an order reaches a processing or complete status and comes back when the order leaves them (for example Canceled). Every order line is counted once and exactly what was taken is put back. An order for more than is left takes what is there.
  • The shop quantity of the product is set to the total stock of the combinations that are on sale, so the shop's own sold out display stays right.
  • The tables stay when the module is uninstalled, so a reinstall does not lose your numbers. Status switch. The three storefront texts are in a language file you can copy and translate.

What it does not do

  • No price per combination. OpenCart's cart cannot change the price of a line without changing core files, so prices stay as the shop's option price adjustments make them.
  • Only select and radio options are part of a combination. Check boxes, text, date, file and other options are not.
  • Do not use the shop's own per-option stock for the same options as well: the two sets of numbers would disagree.
  • Stock is taken when an order's status is set to a processing or complete status (like the shop's own stock), not when the order is placed. Orders that already have such a status when you install are not counted back, and changing the lines of an order afterwards is not tracked.

Tested

Installed and used through the real admin installer on OpenCart 2.3.0.2, 3.0.5.1, 4.0.2.3 and 4.1.0.4 (80 to 86 checks each, 0 failures): saving and cleaning matrices, the admin search and lists, the product page settings, the add to cart check with real requests (stock left, sold out, not available, switched off, a missing choice), the checkout check, the order status take and give back (once only, cancel, second cancel, more than the stock), the shop quantity, status off, removing a matrix, uninstall and reinstall. The product page messages and the disabled button were also tried in a real browser on 3.0 and 4.1, and the admin editor on 3.0 (search, grid, fill, save).

Note

Screenshots are not included yet.

Screenshots

Supreme Variant Matrix — Admin settings part 1
Admin settings part 1
Supreme Variant Matrix — Backend settings
Backend settings

More modules

You May Also Need.

Supreme No-Results Search Help

A search that finds nothing is a lost sale. This module replaces the dead end with a helpful box: your heading, a few lines of advice and buttons to pages that help, like the contact page or your special offers.

Supreme Store Locator and Click-and-Collect

Show your shops on a public page with address, phone, opening hours and a map, and let customers choose "Pick up in store" at checkout. When the order is ready you press one button and the customer gets an e-mail with the address and the hours. No theme file is edited: the stores page is its own page, and the pick-up choice is a normal shipping method.

See all OpenCart modules