Admin Inventory control

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

Admin Inventory control

Post by niall08 » Wed Apr 08, 2009 6:51 am

I'm attempting to re-write the Inventory control under Manage > Inventory - our client wants to update stock levels and price from this point, as well as ordering on Sku and searching on the same field..

Does the original inventory control actually work? Does it allow the administrator to update the stock levels for variants??

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Admin Inventory control

Post by mazhar » Wed Apr 08, 2009 7:01 am

Yes you can update variant stock.

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

Re: Admin Inventory control

Post by niall08 » Wed Apr 08, 2009 7:26 am

Mazhar,
I can see that the "out-of-the-box" inventory control works..

But in building a bespoke version, I'm unsure of the relationship between ac_ProductVariants (esp. in relation to the values in Option1 - 8) and ac_OptionChoices..

In the ac_ProductVAriants some products seem to have two records (same ProductId, different ProductVariantIds) even though there are 3 or more variants associated with the product, while other products have the same number of records as variants associated with the product.

Any ideas??

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

Re: Admin Inventory control

Post by niall08 » Wed Apr 08, 2009 8:25 am

Does this look to be along the right lines for integration with the inventory control??

NB. binds a gridview

Code: Select all

SELECT     t.ProductId, s.ProductVariantId, t.Name, t.Price, t.Sku, t.InStock, t.InStockWarningLevel, t.InventoryModeId, s.InStock AS VariantInStock, 
                      s.InStockWarningLevel AS VariantStockWarningLevel, ac_OptionChoices.Name AS VariantName, s.InStock AS VariantInStock, 
                      s.InStockWarningLevel AS VariantStockWarningLevel
FROM         ac_Products AS t LEFT OUTER JOIN
                      ac_ProductVariants AS s INNER JOIN
                      ac_ProductOptions ON s.ProductId = ac_ProductOptions.ProductId INNER JOIN
                      ac_OptionChoices ON ac_ProductOptions.OptionId = ac_OptionChoices.OptionId ON t.ProductId = s.ProductId

Post Reply