freakdesign / shopifyFD

JavaScript layer to provide additional functionality and fixes to the Shopify dashboard
MIT License
223 stars 49 forks source link

Bulk Export/Import Metafields #88

Open josephrlee opened 6 years ago

josephrlee commented 6 years ago

Hi Jason,

Your tool has been super helpful. I'm wondering if there's a way or if it's in the works on the next version to allow for bulk metafield import and exports that export a .csv file. I run a couple stores that have the same inventory but are for different countries and it'd be great to be able to import/export metafields across stores.

Thanks, Joe

freakdesign commented 5 years ago

Export is easy given you just need to loop over the products and dump the data into a file. The browser can do it, but there'll be a limit in which it just fails/crashes. We'll hit some memory limits depending on just how fat the data becomes. Exporting 1M records will melt some browsers/devices.

It's generally a better case for apps.

As for import, that's hard. To import to another store would mean that you'd need to know the ID of both _things. So if a product you'd need to know Store A Product ID, and Store B Product ID and have the tool know where to push the values. Not something that ShopifyFD is going to be useful for.

In theory, if the mapping existed as a metafield on the product there'd be a way to make it work.