Wednesday, 8 March 2017

is there a more efficient way to do this?

I am grabbing products from store owner's shopify stores.I would like to add there products to categories.The structure I came up with would be something like this:In this case I would have to require the store owner to manually select each partLike they would need to select gender-> types-> women_clothing-> tops-> teesI feel as if it would be a lot of work to do this for each product, is there a simpler way to do this?Only thing I thought of was to grab some small clues from each products data to see if it would have any of the array elements and pre load it.{ "gender": [ "Men", "Women" ], "types": [ "Clothing", "Shoes", "Accessories" ], "women_clothing": { "Tops": ["Tees", "Tanks/Camis", "Crop Tops", "Shirts", "Sweaters", "Sweatshirts/Hoodies"] }, "men_clothing": { "Tops": ["Tees", "Polos", "Casual Shirts", "Dress Shirts", "Sweaters", "Sweatshirts/Hoodies"] } }

Submitted March 08, 2017 at 10:12AM by farhansyed7911

No comments:

Post a Comment