cancel
Showing results for 
Search instead for 
Did you mean: 

How to define "\" as root category to all other categories in categories.impex file

Former Member
0 Kudos

Hi,

There are some categories like Electronics, Stationary, Clothes, Men, Women, Kids and all these have some sub-categories, I want to define a root category as "\" which holds all the categories mentioned above. How can achieve this through impex. I tried this

INSERT_UPDATE Category;code[unique=true];allowedPrincipals(uid)[default='customergroup'];$catalogVersion

;\

it showed import is success, but I'm not able to see this category in hmc->Catalog->Categories

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Try in quotes or to put "root" as "code" and "/" as name.

Former Member
0 Kudos

Thanks Konrad, it worked for me.. everywhere I replaced ;\ with ;"\"

Answers (1)

Answers (1)

former_member654664
Discoverer
0 Kudos

You can use this script for the same. This worked fine for me.

INSERT_UPDATE Category;code[unique=true];$catalogVersion;supercategories(code,$catalogVersion);allowedPrincipals(uid)[default='customergroup']

;\;;

;Electronics;;\;

;Stationary;;\;

;Clothes;;\;

;Men;;\;

;Women;;\;

;Kids;;\;