Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Product CSV product variant names #9

Open
jtrotsky opened this issue Mar 4, 2015 · 4 comments
Open

Product CSV product variant names #9

jtrotsky opened this issue Mar 4, 2015 · 4 comments

Comments

@jtrotsky
Copy link

jtrotsky commented Mar 4, 2015

The name column in the product CSV should not contain the variant option values.
The variant values are added automatically to the name once already imported.

Take the example product called hi.
Here's how it looks now, notice it shows hi / 13:

screenshot 2015-03-04 09 57 08

Here's how it needs to look:

screenshot 2015-03-04 09 57 15

The fix is to use base_name rather than name from /api/products.

products: [
{
id: "b8ca3a65-0109-11e4-fbb5-a75acaaa630d",
handle: "hi",
variant_parent_id: "",
variant_option_one_name: "Amount",
variant_option_one_value: "13",
variant_option_two_name: "",
variant_option_two_value: "",
variant_option_three_name: "",
variant_option_three_value: "",
active: true,
name: "hi / 13",
base_name: "hi",
@pulkitsinghal
Copy link
Contributor

Very cool, good to know about base_name! I'm thinking that I should distinguish between just an export for external usage w/ 3rd party software and an export which will be imported right back into Vend ...

@jtrotsky
Copy link
Author

jtrotsky commented Mar 4, 2015

Good point @pulkitsinghal .
I suppose it is useful to keep the format as similar as possible, but you could format the CSV drastically differently if it were better for use by 3rd parties.

id, name, handle, sku, retail_price, tax_name are the only mandatory fields for importing to an inclusive store, for example.

@pulkitsinghal
Copy link
Contributor

I'm thinking of an explicit flag to enable the functionality, something like:

  1. --formatForVend true, or
  2. --vendCompatible true, or
  3. --vendFriendly true, or
  4. --vendFormatted true, or
  5. --dataFormat vend

@jtrotsky
Copy link
Author

jtrotsky commented Mar 6, 2015

As in the other issue, I like #3 personally :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants