You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the products spreadsheet, just have a categories column. If they put a numeric value it assumes its the category ID, if they put alphanumeric text it assumes its the name of an existing category, or category to create. Categories separated by comma and optional white space after the comma. A slash indicates hierarchy e.g. "clothing/shirts" instructs it to create "clothing", and within that create a subcategory "shirts".
Not sure if they need the ability to mix & match category IDs & category names within the same row. I don't see that being needed in practice, doesn't hurt anything if it happens to behave that way though.
Prefixing a category ID or name with a minus unlinks that product from that category.
They should also be able to delete categories standalone, without products. In this version, prefixing with a minus deletes the whole category! (powerful operation, they better be warned about the products that would be affected!)
The text was updated successfully, but these errors were encountered:
This is done but only works with top level categories for adding new categories. As far as creating nested categories at import, performance would be killed unless changed to materialized path for storing the hierarchical data. However since a category can have multiple parents, the materialized path itself will have to be stored in an association table.
Also consider the following
"baz/bat/foo/bar; foo; bar/foo".
In this DSL the user is asking for 3 categories, all of which contain "foo" in their path. Is there one category named foo created? Or multiple? Will have to decide how this works.
In the products spreadsheet, just have a categories column. If they put a numeric value it assumes its the category ID, if they put alphanumeric text it assumes its the name of an existing category, or category to create. Categories separated by comma and optional white space after the comma. A slash indicates hierarchy e.g. "clothing/shirts" instructs it to create "clothing", and within that create a subcategory "shirts".
Not sure if they need the ability to mix & match category IDs & category names within the same row. I don't see that being needed in practice, doesn't hurt anything if it happens to behave that way though.
Prefixing a category ID or name with a minus unlinks that product from that category.
They should also be able to delete categories standalone, without products. In this version, prefixing with a minus deletes the whole category! (powerful operation, they better be warned about the products that would be affected!)
The text was updated successfully, but these errors were encountered: