Product Variants - Not Working

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
niall08
Commander (CMDR)
Commander (CMDR)
Posts: 175
Joined: Tue Dec 09, 2008 10:29 am

Product Variants - Not Working

Post by niall08 » Wed Apr 22, 2009 8:57 am

OK - what is the relationship between Products, Product Variants, and Options??

When I create a Rroduct, then create a Variant ("Lens"), return to the Product and "Track By Variant", return to the "Options and Variants" tab and create Options, everything appears to be OK on the client side.

BUT, looking at the database, there are no variants associated with the Product - only Options?!!

By entering stock levels and low level values the Options also appear in the Variants table, but without SKU or Variant Names..

What on earth is going on??

I've built an bespoke inventory form to allow the admin to update product variant prices from the inventory form - but the fact that variants aren't appearing with SKU, Name, or Price data in the Variants table is making a mess of this functionality.

What is a Variant, and why are they not appearing in the Variants table, but in the Options table??

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Product Variants - Not Working

Post by jmestep » Wed Apr 22, 2009 9:19 am

From what I have been able to figure out, the options are not put into the variant table until there is a change to them, like price, sku modifier, inventory, etc.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

niall08
Commander (CMDR)
Commander (CMDR)
Posts: 175
Joined: Tue Dec 09, 2008 10:29 am

Re: Product Variants - Not Working

Post by niall08 » Wed Apr 22, 2009 9:31 am

Thanks - I see what you mean..

So - when the variant is first created, options added, and options edited (in the Edit Options form) no Variant is created in the ac_ProductVariants table.

If you "Manage Variants" and make changes, then a Product Variant record is created. And only the field that you have edited has it's value added to this Variant record, the rest remaining blank and overidden by the Options on the client-side.

Is that right?

In order to make my bespoke inventory control work, I guess that, rather than editing the options with SKU modifier etc, I could go straight into the Manage Variants form and add SKUs etc there..

Can anyone see a problem with that (i.e. never editing the options)??

Post Reply