HomeHome Product Discus... Product Discus...SmithCartSmithCartBulk Load of Product Variant Groups and VariantsBulk Load of Product Variant Groups and Variants
Previous
 
Next
New Post
9/15/2010 8:12 PM
 

I have loaded several products using the spreadsheet import feature. I would like to extend that to include the product variant groups and variants. I'm looking at the database schema to figure out what spreadsheets to give my customer to fill out. Has anybody done this already?

Understandably there is no import feature for variants and their groups since that might become a support nightmare... (products for sale has diverse properties/variants) but I know the technique to convert the spreadsheet into database insert statements and was wondering if anyone has examples from their bulk inserts.

This would be a huge timesaver... I'm sure for everyone... to see some example spreadsheets.

 
New Post
9/16/2010 2:43 AM
 

I havnt tried to import variants from xls but what you want to do is create 2 spreadsheets with the first row matching the fields in the following tables one to one:

  • Smith_ProductVariant
  • Smith_ProductVariantGroup

After you have the spreadsheets with data then you can use the sql server import wizard to import the data. The Smith_ProductVariant table has a foreign key from the Smith_ProductVariantGroup table called "VariantGroupID" that you will need to make sure lines up with "VariantGroupID" in the Smith_ProductVariant table. When going thru the wizard make sure you check the box to enable identity inserts so sql server doesnt poulate values for the identity fields.

Dave


At your service,
Dave Smith
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
9/16/2010 8:17 PM
 

Thank you. I figured I could put in the missing fields for my customer programmatically and simply gave her the spreadsheet with the fields she would understand only. The insert statement can generate those other fields as needed.

Sku Group Name Image SortOrder Required QtyOnHand
32111 Color Lake 32111 LAKE.JPG 0 FALSE
32111 Size S NULL 0 TRUE 1
32111 Size M NULL 0 TRUE 2
32111 Size L NULL 0 TRUE 2
32111 Size XL NULL 0 TRUE 1
32111 Color Black 32111 BLK.JPG 0 FALSE
32111 Size S NULL 0 TRUE 1
32111 Size M NULL 0 TRUE 2

It looks like she's put the sizes under each color separately... however row 2 and row 2nd from bottom look exactly the same. I think she is trying to indicate the quantity on hand per size and color simultaneously.

Which brings me to that question directly... when you have two variants that "intersect" how does quantity on hand work?

They don't use different SKUs for different colors or sizes. Perhaps your design expects us to use different SKUs for different colors of the same product.

Tell me how to set color and size up. If we should make SKUs for the various colors then we will do so... Because as it stands, I'm confused by the concept that there can be 5 black items, 3 of which are size S. If someone buys a black S then the Quantity On Hand for Black and for S would both decrement?

They want to show the product on a model as the main picture for the product. Then after clicking on the model, see the colors and sizes available.

Guy

 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartBulk Load of Product Variant Groups and VariantsBulk Load of Product Variant Groups and Variants