#Seed products with categories
12 messages · Page 1 of 1 (latest)
can you elaborate what you're looking for @turbid plank?
If you mean can you seed categories, currently you can add this in your seed.json to seed categories
{
"store": {},
"users": [],
"regions": [],
"shipping_options": [],
"products": [],
"categories":[
{
"name":"Men",
"rank":0,
"category_children":[
{
"name":"Clothing",
"rank":0,
"category_children":[],
"handle":"men/clothing"
}
],
"handle":"men"
},
]
}
@Riqwan, I am looking for a way to link these specified categories to the product
Like the screenshot
try this and see if it works -
"categories": [{ id: "category1" }]
Nope
which version are you using?
I will try to use the new version
Same behavior
I have not found in the documentation that such a scenario has been considered
Try with the latest version, we had made some changes regarding this one.