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

Product CSV vend-discount #10

Open jtrotsky opened 9 years ago

jtrotsky commented 9 years ago

Vend uses a product to process sale-wide discounts. This product has source=SYSTEM instead of source=USER as it is a system product, and will always have a handle and sku of vend-discount.

Although the product should not be changeable via a CSV import, there is potential that importing and changing the product could cause issues, so it's best to not include that in the CSV.

This one:

screenshot 2015-03-04 10 02 07

Should be an easy fix.

The way I excluded it with my export tool was during the CSV writing loop, I just skipped the loop if I matched the handle and sku to be vend-discount.

// Check and omit vend-discount.
if handle == "vend-discount" && sku == "vend-discount" {    
    continue
}
pulkitsinghal commented 9 years ago

We are careful to exclude vend-discount from showing up in our ShoppinPal app, guess I glazed over it in vend-tools, thanks for the heads-up!

jtrotsky commented 9 years ago

Welcome @pulkitsinghal :)

pulkitsinghal commented 7 years ago

@ysg410 - I don't have Purva's github handle. Would you mind assigning this task to her and coaching her through it?

pulkitsinghal commented 7 years ago

Guess this one goes back to you Yash.