<!-- Canonical: https://www.ezdis.net/en/manual/1.0/features/product-variants | Language: en -->

# Versions and sale by measure

---

EzDIS lets you sell a product in two ways that are often confused:

- **by versions:** the product has specific options, like a black T-shirt in size M;
- **by measure:** the client says how much they take, like 1.5 kg of meat.

The **category defines which attribute exists** and the **product defines its price**. The category doesn’t store the price per kilo or the price of a version: those values are entered on each product.

## What each attribute type means

In the category, under **Product versions**, you can add an attribute and choose its type:

| Type | What it’s for | Example | Use it as a version? |
| --- | --- | --- | --- |
| **Dropdown list** | Pick one option from a fixed list. | Color: Black, White. | Yes, when each option has its own stock or price. |
| **Decimal number** | Enter quantities with decimals. | Kilos, liters, meters. | Yes, to sell by measure. |
| **Whole number** | Enter quantities without decimals. | Units per pack, numeric size. | Yes, if the value defines a version or a whole measure. |
| **Text** | Store a short free-text value. | Material: Cotton. | Only to tell versions apart; it doesn’t calculate prices per option. |
| **Long text** | Store a long description. | Composition or care. | Usually not a version. |
| **Boolean** | Yes/no. | Is it customized? | Only if that difference changes the item or its price. |
| **Date** | Store a date. | Expiry or harvest. | Usually not a version. |

Tick **Tells versions apart** only when that value changes the stock, the price or how the item is chosen. The **Show in lists and invoices** option shows the value in lists and on invoices; it doesn’t replace the SKU or the price setup.

## 1. Define the attribute in the category

1. Go to **Menu → Categories** and open an existing category or create a new one.
2. Scroll down to **Product versions**.
3. Tap **Add what tells versions apart**.
4. Type the name, choose the type and turn on **Tells versions apart**.
5. If you choose **Dropdown list**, add each option and its value. Use clear, distinct values.
6. Save the category.

![Attributes defined in the Meats category](/docs/ezdis/screenshots/es/category-measures.webp)

<ol class="docs-shot-legend"><li><strong>Product versions.</strong> The category only defines which value will be asked for.</li><li><strong>Kilos.</strong> A numeric attribute that lets you ask for a quantity when selling.</li><li><strong>Add what tells versions apart.</strong> This is where you add Color, Size, Kilos or other attributes.</li></ol>

### How to name a measure

The unit must be in the attribute name: use <code>Kilos</code>, <code>Liters</code>, <code>Grams</code> or <code>Meters</code>. That name is shown when selling and can appear in the line description, for example <code>Kilos: 1.5</code>.

Don’t use a dropdown list with <code>0.5</code>, <code>1</code>, <code>1.5</code> and <code>2</code> to represent kilos: that creates fixed options and doesn’t let you sell any quantity. Use **Decimal number** for that.

## 2. Add the product and its price

Go to **Menu → Products**, open a product or create a new one and choose the category before filling in the versions.

In **Price by this feature** you enter the amount for each option or each unit of measure:

- **Dropdown list:** enter how much each option adds. The final price is the base price plus the option’s extra.
- **Decimal or whole number:** enter the price per unit. For example, <code>120</code> means $120 per kilo if the attribute is called <code>Kilos</code>.
- **Price before VAT / Price with VAT:** you can type either; EzDIS calculates the other with the product’s VAT rate and stores the price before VAT.
- **Base price:** leave it at <code>0</code> if the whole price is in the attribute. If the product costs $450 and an option adds $50, enter $450 as the base and $50 as the extra.
- **Price without tax (overrides product price):** if a version has its own exact price, that price replaces the base price plus extras.

![Product sold by the kilo with a price per unit](/docs/ezdis/screenshots/es/product-meat-by-kilo.webp)

<ol class="docs-shot-legend"><li><strong>Base price.</strong> In this example it is 0 because the whole value is in the kilo.</li><li><strong>Price by this feature.</strong> The section appears because the category has the Kilos attribute.</li><li><strong>Price per unit.</strong> $120 before VAT per kilo; EzDIS also shows the amount with VAT.</li><li><strong>Infinite stock.</strong> The recommended option for a measure that is set at the time of sale.</li></ol>

## 3. Use case: butcher shop selling by the kilo

### The idea, in one line

The product is **Short ribs**, the price is **$120 per kilo** and, when the client buys, the seller types **how many kilos they take**.

### Setup

Do exactly this:

| Screen | What to type or choose |
| --- | --- |
| **Category → Name** | <code>Meats</code> |
| **Category → Add attribute → Name** | <code>Kilos</code> |
| **Category → Type** | <code>Decimal number</code> |
| **Category → Tells versions apart** | On |
| **Product → Name** | <code>Short ribs</code> |
| **Product → Category** | <code>Meats</code> |
| **Product → Price before VAT** | <code>0</code> |
| **Product → Price by this feature → Price without tax per unit** | <code>120</code> |
| **Product → Infinite stock** | On |

**Very important:** on the product you type <code>120</code>, because it’s $120 per kilo. Don’t type <code>1.5</code> there: <code>1.5</code> is the quantity that will be asked for later, when you sell.

Infinite stock is the most practical option when the exact quantity is decided when cutting and selling. If you need to track available kilos, use your business’s stock process; don’t create a version for every possible weight.

### Sale

When the client buys:

1. Open an invoice or an order.
2. Add the product **Short ribs**.
3. In the **Sell Short ribs** window, find **Kilos**.
4. Type <code>1.5</code>.
5. Tap **Add**.

EzDIS shows:

<pre><code>1.5 kg × $120 = $180 before VAT
$180 × 1.22 = $219.60 with 22% VAT</code></pre>

Then, on the order or invoice line, the **quantity** says how many times that measure is repeated. A quantity of <code>2</code> means:

<code>2 × 1.5 kg = 3 kg</code>

The subtotal before VAT will be <code>2 × $180 = $360</code>.

Each cut can be a different product with its own price per kilo: **Short ribs**, **Rump tail** and **Breaded cutlet** don’t share the price even if they are in the same category.

![Sale by measure window](/docs/ezdis/screenshots/es/sale-measure-dialog.webp)

<ol class="docs-shot-legend"><li><strong>Measure.</strong> The seller types how much the client takes, for example 1.5 kilos.</li><li><strong>Unit price.</strong> EzDIS calculates the amount before and with VAT using the product’s price per kilo.</li><li><strong>Add.</strong> Confirms the measure and adds it to the order or invoice line.</li></ol>

## 4. Use case: T-shirt shop by color and size

### The idea, in one line

The T-shirt has two attributes: **Color** and **Size**. Each combination is a different item: <code>Black / M</code> doesn’t share stock with <code>White / M</code>.

### Setup

Do exactly this:

| Screen | What to type or choose |
| --- | --- |
| **Category → Name** | <code>T-shirts</code> |
| **Attribute 1 → Name** | <code>Color</code> |
| **Attribute 1 → Type** | <code>Dropdown list</code> |
| **Attribute 1 → Options** | <code>Black</code>, <code>White</code> |
| **Attribute 2 → Name** | <code>Size</code> |
| **Attribute 2 → Type** | <code>Dropdown list</code> |
| **Attribute 2 → Options** | <code>S</code>, <code>M</code>, <code>L</code> |
| **Color and Size → Tells versions apart** | On |
| **Product → Name** | <code>Basic T-shirt</code> |
| **Product → Category** | <code>T-shirts</code> |
| **Product → Price before VAT** | <code>450</code> |

Then:

1. Scroll down to **Product versions**.
2. Tap **Generate all combinations**.
3. EzDIS creates six versions: Black/S, Black/M, Black/L, White/S, White/M and White/L.
4. For each version, enter its **SKU** and **Initial stock**.
5. If a version has a different price, type it in **Price without tax (overrides product price)**.
6. Save the product.

You don’t need six separate products. You create one product (**Basic T-shirt**) with six versions.

![Product with color and size versions](/docs/ezdis/screenshots/es/product-shirt-versions.webp)

<ol class="docs-shot-legend"><li><strong>Price by feature.</strong> You can enter extras for each color or size.</li><li><strong>Generate all combinations.</strong> Creates one version per combination of options.</li><li><strong>SKU, stock and price.</strong> Each version can have its own code, stock and price.</li><li><strong>Version price.</strong> EzDIS shows the calculated price; the override field lets you set another one.</li></ol>

### Sale

When you add the **Basic T-shirt** to an invoice or order, you pick the exact version, for example **Black / M**. Stock is deducted from that combination and not from the other sizes or colors.

## What your team sees when selling

- A product sold by measure shows as **By measure** in the list, because you still need to enter how many kilos, liters or meters the client takes.
- A product with versions shows **From** and the lowest available price.
- On an invoice or order, you pick the version or measure first and then the quantity.
- The order keeps the agreed price and quantity. When you turn it into an invoice, those values don’t change even if you later change the product’s price.

Sale by measure works when invoicing, when [taking an order](/en/manual/1.0/features/orders) and in [usual orders](/en/manual/1.0/features/order-templates). Products sold by measure can’t be added from a WhatsApp order, because the measured quantity needs to be confirmed in the app.

## Common mistakes

- **Entering the price per kilo in the category:** the price goes on each product, because each cut can have a different value.
- **Using a list for kilos:** a list limits the sale to the values entered; use a decimal to accept <code>1.25</code>, <code>1.5</code> or any other valid quantity.
- **Leaving a base price when it doesn’t apply:** if the whole value is per kilo, leave the base price at zero so it isn’t charged twice.
- **Creating versions for a measure:** versions are for finite options like color and size; the measure is asked for when selling.
- **Forgetting stock or SKU on a combination:** each T-shirt version can have different stock and codes.

## The price is kept end to end

Once a version or a measure is added to an order, EzDIS keeps that line’s price and quantity. When you turn the order into an invoice or edit the invoice later, those values aren’t recalculated by later catalog changes.
