Use CSV with OpenCart
How CSV and TSV files work with OpenCart product data: what conversion changes, where spreadsheets corrupt values, and when manual entry is the safer choice.
Is CSV a good fit for your OpenCart task?
For moving many product records in or out of an OpenCart store, a delimited text file is usually the practical choice. It is plain text, almost every spreadsheet and script can read it, and a whole catalog can be reviewed or bulk-edited in one place. The decisive tradeoff is fragility. A CSV file carries no column types, no fixed encoding and no single agreed format, so values such as model codes, prices and HTML descriptions can be silently altered between export, editing and import. Use CSV when the volume of changes justifies setting up and testing an import routine. For a handful of products, one-off edits, or items with complex options, editing in the admin forms is often safer, because each value is entered once and validated by the store itself.
What a CSV or TSV conversion actually changes
Converting between comma-separated values (CSV) and tab-separated values (TSV) changes the structure characters in the file, not the product data. In CSV, a comma ends each field. A field that contains a comma, a double quote or a line break must be wrapped in double quotes, and any double quote inside it is written twice. This convention is described in RFC 4180, though many programs deviate from it. In TSV, a tab ends each field. Quoting is generally not part of the basic format, so a field cannot safely contain a tab or a line break unless the tool on both ends agrees on an escaping rule.
The illustrative rows below show the same record in both formats. The column names are placeholders, not OpenCart's actual import columns; the import tool you use defines those.
model,name,description
00123,"Mug, ceramic","<p>The ""Classic"" mug.</p>"
model name description
00123 Mug, ceramic <p>The "Classic" mug.</p>
Checking the pair against the rules: the name field is quoted in CSV only because it contains a comma, and the doubled quotes around Classic collapse to single quotes in the TSV version. A converter that copies the doubled quotes across unchanged, or that leaves the wrapping quotes in place, has altered the stored text. That error would appear on the storefront as stray quotation marks in the product description.
Character encoding is a separate layer. The delimiter rules govern where fields begin and end; the encoding governs how each letter is stored as bytes. If a file is saved in one encoding and read as another, accented letters, currency symbols and non-Latin scripts turn into garbled sequences. UTF-8 is the common choice for web stores, but whether your import routine expects UTF-8, and whether it accepts or rejects a byte order mark at the start of the file, depends on the specific tool.
It also helps to separate stored content from presentation. A spreadsheet's display of a value is not necessarily what it will save. A model code shown as 123 may still be 00123 in the file until you save, at which point the spreadsheet writes what it displays. Likewise, right-to-left text such as Arabic or Hebrew is stored in logical reading order. If a plain text editor shows it in an odd sequence, that is a display issue, not a reversal of the data, and editing it to look correct in the editor can actually scramble it.
Where OpenCart comes in
The built-in maintenance tools in OpenCart's admin are generally oriented toward database backup and restore rather than spreadsheet-style product import. CSV product import and export is commonly added through extensions. Behavior varies between OpenCart versions and between extensions, so confirm what your installation provides before planning a workflow. No version-specific documentation or test results were available for this review. Treat the points below as questions to answer from your tool's documentation, not as descriptions of how it behaves.
- Which delimiter it expects, and whether the delimiter can be configured
- Which encoding it reads, and how it handles a byte order mark
- The exact column names and which columns are required
- Which field identifies an existing product for updates, such as product ID or model, and what happens when no match is found
- How it represents multiple store languages, categories, options, attributes and image paths
- Whether an empty cell clears a value or leaves the existing value unchanged
- Whether HTML in descriptions is imported as-is or escaped
Will the file stay readable and usable after copying or sharing?
Most damage happens when a file passes through a spreadsheet, not in the export or the import. Spreadsheets guess a type for each cell when they open a delimited file. Quoting a value in the CSV does not reliably stop that guess. The dependable safeguard is to import the columns as text using the spreadsheet's import options, or to edit the file in a plain text editor or with a script.
| Value at risk | What can happen in a spreadsheet | Safeguard |
| Model codes, SKUs, barcodes | Leading zeros dropped; long digit strings shown in scientific notation and saved with lost digits | Import those columns as text |
| Prices | Decimal separator or currency formatting changed by regional settings | Keep a plain number format; check the system locale |
| Dates | Reformatted to the local date style | Import as text, or confirm the format the importer expects |
| HTML descriptions | Line breaks or quotes mishandled, splitting one record across rows | Verify quoting after saving; spot-check long descriptions |
| Non-English text | Garbled characters if saved in the wrong encoding | Save explicitly as UTF-8, or whatever the importer requires |
Copying and pasting behaves differently for the two formats. Tab-separated text pasted into a spreadsheet typically spreads across columns, which makes TSV convenient for quick transfers between a sheet and a text field. Comma-separated text often lands in a single column unless you run a split or import step. Delimiter conventions also vary by region; in some locales spreadsheets default to semicolons, so a file shared with a colleague elsewhere may open with every row in one cell.
Accessibility depends mainly on where the data is reviewed. No assistive-technology testing was available for this review, so it cannot say how any particular screen reader announces raw delimited text. Generally, a table view with column headers gives structure that a single line of commas and quotes lacks. People reviewing data with assistive technology will usually do better in a spreadsheet grid or the store's admin forms than in the raw file. For shoppers, what matters is the rendered product page. Any corruption introduced in the file, such as stray quotes, broken HTML or garbled characters, appears there and in the store's search results, where a mangled product name may no longer match what customers type.
When to avoid CSV
Editing products directly in the admin is often the better route when you are changing only a few products, or when products have option combinations or attributes your import tool represents awkwardly. It is also the safer route when nobody on the team can verify the file before import. For a full-site safeguard before any bulk import, a database backup protects you more completely than a CSV export, because a CSV export captures only the fields the tool chooses to include.
If you do use CSV, run a small test first: export a few products, change one harmless field, import the file into a staging copy of the store, and compare the results field by field, including descriptions, prices and non-English text.
Gaps in the available evidence
This review is based on general properties of delimited text and spreadsheets. No confirmed details were available about specific OpenCart versions, import extensions, their column layouts, their handling of encoding, or their privacy and data-handling practices. Nor was any testing done with named spreadsheet programs or assistive technologies. Check each of these points against the documentation for your own setup and a test import.