You can import from two places. They use the same kind of file; the difference is whether stock is included.
| Add Products | Add Products with Stock | |
|---|---|---|
| Sidebar | Inventory → Add Products | Inventory → Add Products with Stock |
| One row is | one product | one batch (a product can have several rows) |
| Stock columns | none | required |
| Problem rows | shown in red in a preview; the import waits until your file is fixed | added to your list, highlighted, so you can fix them there |
Step by step
- Click Import file at the top of the page.
- Click Template (CSV) or Template (Excel). The template has every column in the right order, and example rows to copy from.
- Fill it in. Keep the headings in the first row and don't leave blank rows between products.
- Choose your file, or drop it on the box. It must be
.csv,.xlsxor.xls. - RxShelf reads it straight away and tells you what it found.
What you see after choosing a file
Add Products shows your file as RxShelf read it. The template and column notes step aside to make room for a scrollable table of your rows, numbered like your spreadsheet. Any cell with a problem is red — hover it to see why — and a line above the table says how many problems there are and in how many rows (for example 3 problems in 3 rows). The Add button stays off until there are none. Fix the problems in your spreadsheet, then click Change and choose the file again.
Add Products with Stock shows a summary — products, batches and units — and a note of anything it couldn't use. Your products go straight onto the list, where problems are highlighted for you to fix.
If the file can't be read at all — a required column is missing, or it's too big — the template and column notes stay in view so you can see what's needed.
Columns
Column names aren't case-sensitive, and common alternatives work — for example Qty for
quantity, Exp Date for expiry_date or Cost (₦) for cost_price. Anything RxShelf
doesn't recognise is ignored, and you'll be told which columns were skipped.
Product columns — required in both
| Column | What to put | Example |
|---|---|---|
name | The brand or trade name. | Emzor Paracetamol |
generic_name | The active ingredient. Drugs only — leave the cell blank for consumables, but keep the column. | Paracetamol |
dosage_form | The form of the drug. Drugs only, same as above. | Tablet |
unit_of_measure | What one unit is at the till — Tablet, Capsule, Card, Strip, Sachet, Bottle, Pack, Pair, Tube, Vial, Ampoule, Piece, Item or Unit. Required for every row. | Tablet |
Stock columns — required when importing with stock
| Column | What to put | Example |
|---|---|---|
quantity | Units in this batch. A whole number of 1 or more; 1,000 is fine. | 500 |
expiry_date | The batch's expiry date. Drugs only — leave blank for consumables. See Dates. | 30/06/2027 |
cost_price | What you paid per unit, in ₦. ₦1,250.50 is fine. | 45 |
selling_price | What you sell it for per unit, in ₦. You may leave a cell blank if you give a markup — it's worked out from the cost. | 65 |
Optional columns — both
| Column | What to put |
|---|---|
strength | Such as 500mg. Part of what makes a product unique. |
manufacturer | Such as GSK. Also part of what makes a product unique. |
category | The category name. Matched to your existing categories by name. |
reorder_level | Low-stock alert level, a whole number. Blank means 10. |
pack_sizes | Bigger units the till can sell by, in one cell. See Pack sizes. |
type | drug or consumable. Leave it out and a row with a generic name is a drug, one without is a consumable. |
Optional columns — only when importing with stock
| Column | What to put |
|---|---|
markup | The retail markup % for that batch, such as 30. The first batch's markup also becomes the product's default. |
batch_number | The manufacturer's lot number. Leave blank if you don't have it — RxShelf never makes one up. |
supplier | The supplier's name. Must match one of your suppliers; if it doesn't, it's left blank and you're told. |
wholesale_price, rw_price | Per-unit prices for wholesale and the RW tier. Only if you use them. |
Optional columns — only when importing without stock
| Column | What to put |
|---|---|
default_markup | Your usual retail markup % for the product. It pre-fills the selling price when you later stock the product in. A plain Markup heading is read as this. |
Product details — at the end of every template
| Column | What to put |
|---|---|
nafdac_no | The NAFDAC registration number, such as A4-1234. |
sku | Your own reference code. |
default_wholesale_markup, default_rw_markup | Default markup % for wholesale and RW. Only if you use them. |
Wholesale and RW columns only appear in the template, and are only read, if you sell wholesale (RW also needs the RW price switched on in Settings). If a file contains them anyway, they're skipped and you're told.
Two batches of one product
When importing with stock, give each batch its own row and repeat the product's columns on both. Rows for the same product (same name, generic, strength, dosage form and manufacturer) are joined into one product with several batches. The first row's product details are the ones used.
In Add Products, one row is one product, so a repeated row is flagged as a duplicate.
Dates
Write expiry dates the way you normally would. Dates are read day first, which is how Nigerian pharmacies write them. These all work:
| You write | RxShelf reads |
|---|---|
30/06/2027 | 30 June 2027 |
03/04/2027 | 3 April 2027 (not 4 March) |
06/2027 or Jun 2027 | the last day of June 2027 |
2027-06-30 | 30 June 2027 |
| a real date cell in Excel | that date |
If a date can't be read, that cell is flagged so you can correct it.
Pack sizes
Put them in one cell, separated by semicolons: Card=10; Carton=100. You can add up to
5. Each needs a label of 20 characters or fewer and a whole number of pieces above 0.
Common messages
| Message | What to do |
|---|---|
| We couldn't find: … | A required column is missing or named differently. Use the template, or rename your column. |
| Generic name is required for drugs | The row is a drug, so fill in generic_name. For a consumable, set type to consumable. |
| Dosage form is required for drugs | Fill in dosage_form. |
| Unit is required | Fill in unit_of_measure. |
| Quantity must be a whole number of 1 or more | Fix quantity — no decimals, and not zero. |
| Expiry date is required for drugs | Fill in expiry_date for that batch. |
| Enter a valid expiry date | The date couldn't be read. Try 30/06/2027. |
| Cost price is required / Selling price is required | Fill in the price, or give a markup so the selling price can be worked out. |
| Markup % must be between 0 and 999.99 | Fix the markup. |
| Pack size 2: pieces must be a whole number above 0 | Fix the second entry in pack_sizes. |
| Duplicate of row 5 | The same product appears earlier in the file. |
| Already in your list | The product is already on your list (Add Products with Stock). |
Limits
- Up to 1,000 products per file (in Add Products, that means 1,000 rows — one row is one product). For more, split the file and import the parts one after another.
- Files with more than 5,000 rows are too big to read at once — split them first.