How to Create New Store Categories from Supplier Categories
Create new store categories from supplier paths in IHASHOP, reuse existing parent categories and safely complete category mapping.
New store categories in IHASHOP Dropshipping 1.0.0 can be created from a supplier category path with administrator approval. Source catalog and store category tree remain separate. This guide is based on reviewed source code and existing tests.
1. Prepare category creation
Valid module entitlement, Seller role and settings.edit permission are required. Verify feed and field mapping, then complete a successful initial Apply sync. Open Marketplace > Dropshipping Category Mapping (/secure/dropshipping/kategori-esleme) and select the supplier. Only active source categories appear. Preview alone does not save source categories.
2. Look for an existing target first
Use Search category path. If an appropriate store category exists, select it and click Map instead of creating duplicates. Otherwise click Create new category and map on the source row. The confirmation explains that new categories start inactive. Synchronization does not trigger this operation automatically.
3. Understand tree construction
The source path is normalized using > separators, discarding empty segments and collapsing whitespace. Empty paths, #ID fallback names and segments over 190 characters are rejected. Starting at the root, the service compares names only under the relevant parent; any language's name may match after case and whitespace normalization. The first matching ID is used. Existing intermediate categories remain unchanged; missing levels are created through the core Category model with parent_id. NodeTrait maintains the nested set structure. The final leaf is mapped.
4. Compare GiyimDepom and Luxstoree
GiyimDepom JSON reads CategoryPath from the first Categories entry; saved @kategori mapping may fall back to CategorName. The XML template suggests Kategori. Luxstoree XML builds a path from main_category, top_category, sub_category and category, skipping empty and consecutive duplicate segments. Table paths are illustrative, not live catalog data. If Women already exists, the GiyimDepom example creates Dresses and Midi; Luxstoree creates Lingerie and Bras. Only the final leaf is mapped.
Comparative category creation examples
SupplierSource pathExisting parentNew levelsMapped leafGiyimDepomWomen > Dresses > MidiWomenDresses > MidiMidiLuxstoreeWomen > Lingerie > BrasWomenLingerie > BrasBras5. Review the same-name warning
If the final segment already exists under the same parent, AYNI_AD_VAR stops creation. The suggestion panel shows paths of categories with the same leaf name across the store. Map to this category connects an existing target; Create anyway explicitly authorizes a new leaf. Cancel closes the suggestions. A matching name in another branch alone does not necessarily stop creation: the initial check is scoped to the current parent. Intermediate categories can be reused.
6. Complete multilingual names and slugs
New names use the normalized source text in the store's default language key, not the current admin language. No automatic translation, description, image or SEO content is produced. Str::slug generates the slug; an empty result uses kategori. The service checks all slug values in all languages and includes slugs created during the same operation. If elbise exists, elbise-2 is tried, then -3 and so on. This is application-level checking, not a general database unique guarantee.
7. Transaction and concurrency protection
KategoriEslemeServisi creates the tree and approves mapping in one outer database transaction. Mapping failure rolls back newly created categories. Before the transaction, the creation flow acquires the ds:kategori-kur cache lock for 60 seconds with a default 10-second wait. The lock is released after commit. Lock timeout or deadlock becomes MESGUL. Refresh and check the result before retrying. This protection applies to the Dropshipping creation flow, not necessarily every other category writer.
8. Prepare new categories for publication
New category status is false; existing parent status is unchanged. Review the tree in Catalog > Categories. Complete names, slugs, descriptions and SEO in required languages; check images and applicable tax settings. Verify visibility conditions including parent categories, then deliberately activate. Category creation does not open products for sale.
9. Review the next sync and corrections
Success displays A new (inactive) category was created and mapped. Source products are evaluated during the next successful applied sync; eligible requires_mapping products may become staged. Product Publishing is separate. Revoke removes mapping but does not delete the created category. Review references before deleting a wrong category. Existing tests cover tree integrity, language key, slug collisions, atomic rollback and no writes while locked.
Related guides
- Supplier Category Mapping: How to Map Categories to Your Store
- What Is Supplier Field Mapping and How Do You Configure It?
- How to Integrate GiyimDepom Dropshipping with IHASHOP
- How to Integrate Luxstoree Dropshipping with IHASHOP
- IHASHOP Dropshipping
Frequently asked questions
Are categories created automatically?
No. An authorized administrator approves creation.
Are existing parents duplicated?
No. Matching intermediate levels under the relevant parent are reused.
Are new categories active?
No. They start inactive and require deliberate activation.
What if another language uses the slug?
The service checks all language values and tries a suffix such as -2.
Do new categories remain if mapping fails?
No. The same transaction rolls them back.