An online clothing store on OpenCart can launch without heavy custom development. Sizes and colors are configured through product options, stock and characteristics are presented as attributes, and returns requests are handled by the built-in module. There are two issues you will need to solve separately, which the standard core only partly covers: stock trackingSubtracting the quantity after an order is enabled on the product form (the "Data" tab, "Subtract Stock"). More in the glossary → by the "size × color" pair and filtering by size that is in stock.
Examples are for OpenCart 4.1; in 4.0.x, model triggers and event handling differ.
How is a clothing store different from a regular catalog?
In most niches, one product card corresponds to one item in stock. With clothing, one T-shirt model comes in 5–6 sizes and several colors. In stock, it becomes dozens of separate items, each with its own quantity. The customer arrives with a specific request: "black, size M". If the site shows M when it is already gone, you get a cancelled order and a negative review instead of a sale.
The second feature of this niche is a high return rate. A person cannot try the item on, so some orders are returned because of size, fit, or a shade that differs from the photo. Each return costs you two deliveries, manager time, and frozen inventory. That is why you should factor a share of returns into your profit calculation right away, as described in the article on unit economics of a single order.
For clothing, these things matter on the site:
- size and color selection on the card with accurate stock levels;
- a size chart tied to a specific brand or pattern;
- a photo of each color, ideally on a model with stated height and size;
- a filter by size, color, season, and material;
- clear exchange and return terms before the order is placed.
For how to build a selling product card in general, read the separate material about the online store product card. Below we cover only the specifics of clothing.
How do you set up sizes and colors through options?
An option in OpenCart is a parameter the customer selects before adding the item to the cart. Each of its values can have its own stock quantity, price surcharge, and weight. Options work the same way in 3.0 and 4.1. The only difference is the look of the admin panel.
Step 1. Create option lists
- Open "Catalog → Options" (Catalog → Options) and click "Add".
- Create an option "Size" with the type "Select" or "Radio". Radio is more convenient on mobile because all sizes are visible at once.
- Add values in the order the customer expects: XS, S, M, L, XL. Set the sort order, otherwise the values may line up alphabetically.
- Create an option "Color" with the type "Radio". Upload a small sample image for each value, a so-called swatch. The standard theme shows the picture next to the value for radio and checkbox types.

Do not create separate options such as "T-shirt Size" or "Jeans Size" without need. For jeans with sizes like 28/32, a separate option is indeed required. Keep letter sizes in one list; imports and filters will then be simpler.
Step 2. Attach options to the product
In the product form, go to the "Option" tab (Option) and add "Size". For each value, enter the quantity and set "Subtract Stock: Yes". Leave the price empty if all sizes cost the same. For larger sizes that cost more, enter a "+" surcharge.

To keep the cart from accepting a size that is not available, check "System → Settings" (System → Settings), the "Option" tab. There is a setting that allows or prohibits checkout when items are out of stock. For clothing, it is usually turned off. Then the cart blocks an order if the stock of the option valueA specific variant: "M," "L," "Red." More in the glossary → is insufficient.
Size and color together: how do you track stock by combinations?
This is the core's main limitation. OpenCart tracks stock separately for each value of each option, not for their pairs. If you add both "Size" and "Color" to one product, the system will know that there are 5 size M items in total and 8 black items in total. It will not know how many of those are black M. For a store with physical stock, this is a direct path to selling non-existent items. There are three workable approaches.
| Approach | How it works | Pros | Cons |
|---|---|---|---|
| Color as a separate product, size as an option | "Black T-shirt" and "White T-shirt" are two cards, with colors linked through "Related products" or swatches in the theme | Accurate stock without modules, separate photos and SEO URL for each color | More cards; switching color requires theme customization |
| Option combinations module | A separate table with stock, SKU, and price for each "size + color" pair | One card, accurate tracking | Dependence on the module; check compatibility with import and CRM |
| Product variants in 4.1 | A variant is a separate product linked to the main one; it inherits its data and can have its own SKU, price, photo, and stock | The mechanism is in the core | Display on the storefront depends on the theme; test on a copy of the site |
For a start, the first option is the most reliable: "color = product, size = option". It works the same in 3.0 and 4.1. Product feeds handle it well. Each color also gets its own page that can be promoted for queries like "linen beige dress". If the range is large and a ready-made combinations module does not fit, you can order one tailored to your tracking needs, for example through OpenCart module development.
To quickly find sizes that have run out, a manager will need a simple database query. The table names are the same in both versions. The prefixes oc_ and language_id may differ in your installation:
SELECT pd.name AS product, ovd.name AS option_value, pov.quantity
FROM oc_product_option_value pov
JOIN oc_product_description pd
ON pd.product_id = pov.product_id AND pd.language_id = 1
JOIN oc_option_value_description ovd
ON ovd.option_value_id = pov.option_value_id AND ovd.language_id = 1
WHERE pov.quantity <= 0
ORDER BY pd.name, ovd.name;
For more on warehouse, write-offs, and control, read the article on stock tracking in OpenCart. If your supplier sends products in spreadsheets, set up importing from Excel without duplicates. Entering hundreds of sizes by hand is a guarantee of errors.
How do you present the size chart and characteristics to reduce returns?
Most clothing returns are related to size. That is why the size chart is not a formality but a cost-saving tool. A general table such as "S = 44–46" helps very little. Customers need the measurements of the specific item: chest girth, garment length, sleeve length, and waist and hip girth for trousers.
Options for placing it in OpenCart:
- An information page for the brand or product type. Created in "Catalog → Information" (Catalog → Information). You link to it from the product description. This is simple, but the customer leaves the card.
- A table directly in the product description. Suitable if measurements differ from model to model. Keep a table template so the content manager does not have to build it from scratch each time.
- A "Size chart" pop-up next to the size selector. The most convenient for the customer, but requires theme or module customization.

Fabric composition, care instructions, fit, season, and country of manufacture are conveniently kept as attributes ("Catalog → Attributes", Catalog → Attributes). Group them under "Composition and care". Attributes are displayed in a separate "Specification" tab and do not affect the price. Be sure to add the line "Model in photo: height 172 cm, size S". This is one of the most useful hints for choosing a size.
How do you set up a filter by size, color, and season?
In standard OpenCart, filters and options are separate entities. The filter cannot see which sizes are listed in a product's options or how many remain. So the values have to be duplicated. You create filter groups "Size", "Color", "Season", and "Material". In 3.0, filter groups and values are created in "Catalog → Filters" (Catalog → Filters). In 4.1, first create the group in "Catalog → Filters → Filter Groups" (Catalog → Filters → Filter Groups), then the values in "Catalog → Filters → Filters". Then link them to products on the "Links" tab and to categories. Finally, enable the "Filter" module in "Extensions → Extensions" (Extensions → Extensions), type "Modules", and add it to the category layout.

The main trap of this approach: a product stays in the results for the "M" filter even when size M is already sold out. Someone removes the filter manually during each stock update, but on a large catalog this discipline quickly disappears. That is why clothing stores with several hundred models usually use a filter that builds its values from the options and takes availability into account. We covered the variants, settings, and typical mistakes in the article on product filters in OpenCart.
Name colors in the filter the same way as in the options. Do not mix "gray", "graphite", and "dark gray" if, for the customer, they are the same color. You can leave the exact shade in the product name and put a basic palette of 10–15 colors in the filter.
How do you organize returns and exchanges?
The general rule of Ukrainian consumer protection law is this: a customer may return or exchange a non-food product of proper quality within 14 days. The item must have no signs of use and must keep its tags and commercial appearance. For certain product groups, such as underwear or hosiery, a list of exceptions applies. Distance sales have their own requirements for informing the customer.
OpenCart has a built-in returns module. The customer fills in the "Product Return" form, which is linked in the footer. In the form, they specify the order number, the product, and the reason. Requests appear under "Sales → Returns" (Sales → Returns). Reference lists for statuses, reasons, and actions are configured in "System → Localisation" (System → Localisation). For clothing, it is worth creating reasons such as "Size did not fit", "Did not like the color / fit", "Defect", and "Wrong item sent". Statistics by these reasons will show what needs fixing in the cards.
The workflow is usually as follows:
- The customer submits a request on the site or to a manager. You agree on an exchange or a refund.
- The customer ships the item, most often via Nova PoshtaThe most popular carrier in Ukraine. The integration usually pulls cities and branches through an API. More in the glossary →. Specify in your rules in advance who pays for return shipping. Integration details are described in the article on Nova Poshta in OpenCart.
- The warehouse checks the condition of the item. The manager updates the return status and, if the item is intact, returns the size to stock. The core does not do this automatically.
- Money is refunded using the same method as the payment. If you issue fiscal receipts, a refund receipt is generated. Details are in the material on cash register systems (PRRO) for an online store.
Exchanging for a different size is often better handled as a new order with zero additional payment than by "editing" the old one. This keeps a clean history of product movement in reports and in the warehouse.
What else is needed: photos, feeds, marketplaces
In clothing, photos sell more than text. Each color needs separate shots: on a model, a close-up of the fabric, and the back. Set thumbnail sizes in "Extensions → Extensions", type "Themes", in the default theme settings. Choose a vertical aspect ratio, for example 3:4. Square thumbnails crop clothing and show excess background.
For advertising in Google Shopping and Meta, clothing has stricter requirements for the product feed. You need the fields "color", "size", "gender", "age group", and a shared group identifier so that all sizes of one model appear as a single offer. Check whether your feed module pulls these values from the options. Step-by-step setup is described in the article on Google Merchant Center for OpenCart. If you also sell on marketplaces, synchronize stock by size from a single source. Otherwise, the same last size M will be sold twice.
To raise the average order valueRevenue divided by the number of orders. More in the glossary →, "Complete the look" collections and related productsProducts shown on a product page as recommendations. They increase the average order value. More in the glossary → on the card work well. We covered these mechanics in the blog article on increasing the average order value.
Summary
- Sizes and colors are configured through options. For colors, use radio with swatches, and enable stock subtraction for each size value.
- The core does not calculate the stock of a "size + color" pair. The simplest reliable scheme: color as a separate product, size as an option. Alternatives: a combinations module or variants in 4.1.
- The standard filter does not know about options or availability. A large catalog needs a filter that builds its values from the options.
- Measurements of the specific item, model parameters in photos, and recorded return reasons reduce returns the most.
- Agree on return terms with current law and set up the reason lists in the returns module.
Start with the option lists and the "color = product" scheme. Then set up the filter and size chart pages, and launch the feed and advertising once stock by size is already accurate. Reviews of other niches are collected in the section Stores by niche.