Give every product and every variant an identifier that never changes when its name is translated. Tie stock, price and the URLs in both languages to it. A rename or a corrected translation then changes only text. It cannot create a new stock item or break the link to the other language. Below is how we built this into ShopTek, the store platform we develop, followed by six cases to test before the full import.
Four terms come up throughout:
- SKU (stock keeping unit): an internal code unique to each variant, such as PANTS-18 for linen trousers in size S.
- Slug: the readable words at the end of a URL that name the page, such as
new-arrivalsin/collections/new-arrivals. - Canonical URL: the address a page declares as its official one for search engines.
- hreflang: a tag that tells search engines where the same page lives in another language.
Key stock to the variant's SKU
Size and colour are commercial attributes; their names are text you translate. Give each variant its own SKU and record its stock and price against that SKU. Store each option value, such as size M, with separate Arabic and English labels. If you use a phrase like "large blue shirt" as the stock key, the first spelling fix creates a new variant with zero stock.
In ShopTek each variant is its own row with a SKU field, price and stock, linked to its option values. On the Inventory screen of our demo store, the linen trousers appear as four rows, one per size, each with its own SKU and quantity. ShopTek stores prices as whole numbers in the currency's smallest unit (fils for the Jordanian dinar), so totals do not pick up rounding errors.
Derive the other language's link from the product itself
A language switch works when it looks up the equivalent product or category. It breaks when it builds the link by putting /en in front of the current path. There are two sound designs:
| Design | How it works | What you gain | What it costs |
|---|---|---|---|
| One path for both languages | Arabic uses the URL as is; English adds ?lang=en | The switch can never land on a missing page | The slug is the same in both languages |
| A translated path per language | Each version stores its own slug with its translation | Readable URLs in the visitor's language | The switch must find the counterpart and handle a missing one |
ShopTek uses one path: each version names itself as canonical, points to the other with hreflang, and sets Arabic as the default (x-default). Our own site, barmajtek.com, uses a language prefix (/en) with a slug stored per translation. An article carries hreflang links only for translations that exist.
Decide up front what an English page shows when a product has no English name yet. ShopTek shows the Arabic name, so the customer still sees the item. The other option is to hide the product from the English catalogue until its translation is approved. Either way, do not fill the gap with unreviewed machine translation or specifications the supplier never gave you.
Test six cases before the full import
Import cases 1 to 4 on their own first, then check cases 5 and 6 on what you imported. Mistakes in a small sample show up within minutes, before any customer sees them.
| # | Case | What to check |
|---|---|---|
| 1 | A product with two variants | Ordering from the Arabic page and from the English page reduces the right variant's stock |
| 2 | A category named in both languages | The language switch opens the same category in the other language |
| 3 | A long Arabic product name | Variant choices stay visible and readable on a phone |
| 4 | An out-of-stock product | The status is clear, and the page stays live if it is still useful |
| 5 | A published slug that changes | The old URL reaches the new one through a single permanent redirect |
| 6 | Filtering by colour and sorting by price | Filter combinations do not each become a separate page in search results |
Test combinations too, such as a long Arabic variant name in a colour-filtered category, or a filter that returns no products. They can expose faults that no single case does.
In ShopTek, which opens for signup soon, a store owner runs the test like this:
- On the Products screen choose Import from a file, then Download a sample file. The file puts the Arabic and English names in adjacent columns (
name_ar,name_en) next to SKU, stock and category. For a product with variants, addoption1_name,option1_value,variant_skuandvariant_stockcolumns. Add acategory_encolumn for the English name of a new category. - Fill in cases 1 to 4 and import them. Option values written in Latin letters, such as M, show as they are in the English store; other values show their Arabic label.
- If rows are rejected, choose Download the rows with errors; the file gives the reason for each one.
- If the import got something wrong, choose Undo in the import panel. Only the store owner and managers can do this.
- Check the imported cases in the storefront in both languages, run cases 5 and 6, then import the full catalogue.
Make what search engines read match what the customer sees
Every complete language version needs its own title, description and a canonical URL pointing to itself. The two versions must point to each other with hreflang. Google ignores the tags when one page points to another and gets no link back. Keep the Arabic page canonical to itself, even though the English page describes the same product.
Product structured data (the machine-readable description of price, currency and stock) must match the page. If you mark up variants, Google expects an identifier for each one, such as its SKU. It also expects a URL that opens the page with that variant selected, with its own image, price and availability. Never add price markup to a page that sells nothing just to earn a richer search result.
When a published name or URL changes
Before launch, name who renames products, who reviews translations and who approves category changes. When a category, brand or collection in ShopTek gets a new slug, the system redirects the old URL to the new one. It also repoints any older URLs straight at the newest, so redirects never chain.
Repeat these checks whenever the importer or the link-building logic changes:
- Open every category in Arabic, then in English.
- Switch language from each category and confirm you reach its counterpart.
- Look for doubled language prefixes such as
/en/en/and for links that lead nowhere. - Open an old URL of a renamed category and confirm one redirect takes you to the new one.
- Review the sitemap and menus and remove the old paths.
A custom store or a ready-made one
Some catalogues need rules of their own, such as a link to an existing stock or accounting system. We build those stores as part of custom ecommerce development. If a ready-made store is enough, ShopTek opens for signup soon and you can register your interest now. The small-business store launch guide covers what to prepare before going live. Our guide to right-to-left interface design covers long names and numbers on small screens.




