ShoppinPal / vend-tools

A command-line-interface (CLI) which allows you to easily perform custom tasks for your vendhq.com instance
http://shoppinpal.github.io/vend-tools/
GNU General Public License v2.0
3 stars 3 forks source link

Delete all variants #4

Open pulkitsinghal opened 9 years ago

pulkitsinghal commented 9 years ago

I've heard of retailers running into product import issues because they:

had a description field which wrapped the lines in the CSV file and created a slew of messed up products

The most obvious manifestation of this is getting variants for products when the retailer wanted no such thing. So for retailers who do not want any variants at all, perhaps commands should be written that can:

  1. Find all variants and their parents then output file that groups by handle for viewing by retailers
  2. Find and delete all variants but not the parent products
    1. Also output a file that lists all the parent products' data and the data for variant products that were deleted
    2. This is crucial because I've seen cases where a merchant deleted the variant but then the parent also disappeared! Whatever the reason for this strange behaviour may be, having an output file from which the retailer can recreate products will be most helpful in such scenarios