commerce_examples icon indicating copy to clipboard operation
commerce_examples copied to clipboard

SKU format

Open jpdaut opened this issue 9 years ago • 3 comments

Hi, I created new config and CSV files to test importing my own products.

But migration did not work because, as I discovered, commerce_demo SKUs have a specific format. Mine have no format (arbitrary string), I still would like to continue like this, but, how to make commerce_demo work with arbitrary SKUs?

Or maybe I'm missing something?

jpdaut avatar Oct 05 '16 22:10 jpdaut

@jpdaut come up with some way to identify "these variations are part of the same product"

Like in CK2 the title was the same https://github.com/commerceguys/commerce_kickstart/blob/7.x-2.x/modules/commerce_kickstart/commerce_kickstart_product/import/bags_cases.csv

I just took an example that was more realistic

mglaman avatar Oct 06 '16 01:10 mglaman

Title would still work and cover most use-cases.

Or, SKU, I understand your idea, but don’t have a fixed-length prefix : have 2 columns in the CSV, one for the prefix and one for the extension. Either can be any length, prefix is fixed for a given product.

jpdaut avatar Oct 06 '16 04:10 jpdaut

Just a correction : the 2nd SKU column would be the full SKU with the extension (not just the extension)

jpdaut avatar Oct 06 '16 16:10 jpdaut