Page 1 of 2

inventory control in broadleaf commerce

Posted: Sat Dec 15, 2012 2:50 pm
by madhu
Hi, I downloaded the broadleaf commerce 2.0.1 GA version from GitHub. I was also able to configure mysql DB and everything is running fine. But wanted to know how to control the inventory

I see a table by name blc_sku_availability, is this the right table.
Say for instance I have only 10 SKU's which i can sell online and say 2 of them are already sold. How will i know that only 8 of the SKU's are available for selling. Also I would want the product to go off the site if the quantity is zero

I looked at the broadlead inventory module, but it use a table called blc_inventory. Did not find that table in my mysql DB
Please guide me on this. Thanks in advance

Re: inventory control in broadleaf commerce

Posted: Sat Dec 15, 2012 3:33 pm
by phillipuniverse
The SkuAvailability entity is deprecated in favor of a more robust solution with you can see in the Inventory module that you found on GitHub. To complement that module, there is also a fully-implemented versio (with import scripts, UI feedback and admin) containe in the 'inventory' branch of DemoSite. Full docs in plugging that module into a pre-existing site is a work in progress; some made by me yesterday ( check the README in the Inventontory repo on GitHub.

Also worth noting that inventory uses the 2.2.0-SNAPSHOT version of the framework.

Re: inventory control in broadleaf commerce

Posted: Sun Dec 16, 2012 11:04 am
by madhu
Thanks a lot phillip. So i need to upgrade to 2.2.0-SNAPSHOT to make use of the inventory module

Re: inventory control in broadleaf commerce

Posted: Mon Dec 17, 2012 4:10 pm
by phillipuniverse
Yes. FYI, the docs have been completed with full instructions on how to make use of it in your site.

Re: inventory control in broadleaf commerce

Posted: Fri Dec 21, 2012 4:31 pm
by skystar3
How do i get the demo site based on 2.2.0 version?

Currently using DemoSite-2.0.2-GA-eclipse-workspace.zip is this version using the inventory module?

Re: inventory control in broadleaf commerce

Posted: Fri Dec 21, 2012 4:52 pm
by phillipuniverse
No, that is the 2.0.2-GA version of Broadleaf. Usually we try to release a version of the workspace with our GA releases. 2.2 is not GA yet, so there is no specific Eclipse download for it. However, the only thing that we do to create the workspace download is to take the DemoSite project on GitHub at a certain point, import that into Eclipse, and then package all of that up into a zip. So you could get the same thing by simply cloning DemoSite locally, then importing that into Eclipse.

What I would recommend is doing just that; clone DemoSite onto your machine, then switch to the inventory branch and use that as your starting point. This is assuming that you're just starting your development. If you've already made extensive progress, you should probably attempt merging the latest changes in DemoSite from the BroadleafCommerce-2.0.x branch up what is currently on the 'develop' branch.

Re: inventory control in broadleaf commerce

Posted: Fri Dec 21, 2012 5:09 pm
by skystar3
Great ...thank you

If i downloaded DemoSite as a Zip directly from https://github.com/BroadleafCommerce/DemoSite/tree/develop, then extracted that to my workspace and build the project, does this work too?

And when 2.2 GA will be available?

Re: inventory control in broadleaf commerce

Posted: Fri Dec 21, 2012 5:17 pm
by phillipuniverse
Sometime in January I expect.

Re: inventory control in broadleaf commerce

Posted: Wed Dec 26, 2012 1:38 pm
by skystar3
If i want to start the development should i choose inventory branch or develop branch? and what is the difference?

Re: inventory control in broadleaf commerce

Posted: Wed Jan 02, 2013 1:18 pm
by phillipuniverse
I would start off of the inventory branch. You can view the latest up-to-date diff at https://github.com/broadleafcommerce/de ... .inventory which compares the 'develop' branch to 'inventory'.

The inventory docs are at http://docs.broadleafcommerce.org/2.2/Inventory.html