Project Description:
I am looking for someone who will be able to add the following stock handling features to my Zen Cart installation:
1- The option of deriving the in-stock quantity of a product from the lowest quantity available of a list of other products.
This would be used in the instance where a product is actually comprised of a selection of other products (sub-products) also available at the store. Whichever sub-product has the least in-stock quantity will dictate the product's available quantity. The admin must be able to simply turn-on this option for a given product from the product page (within the admin section of course). A text-box would allow the admin to input a list of product IDs (the sub-products) as well as a number which defines the quantity of sub-products included in the main product. The string format would be of the type [{ID#, QTY},{ID#, QTY},{ID#, QTY}, etc...]
Example:
A main product is a Table, which consists of the following sub-products: 4 "legs" and 1 "top". The list would look something like [{15, 4},{17, 1}], where 15 is the "leg" product ID# and 17 is the "top" product ID#.
2- The option of making the sale of a given product affect the in-stock quantity of other products. In the same context as above, if a table is sold, the stock quantity for the legs and the top must go down by 4 and 1 respectively. The same string format approach would be used as well.
Your code must be well commented, efficient and tidy.