Quote:
Originally Posted by micheal332001
I do see what you mean and its a good idea and im thinking on a way to add this to the store.
As if the product has no option it would have to use the stock level system already there but if the options had a stock level within it it would use that so there is a bit of coding here to add.
I will have alook into this and get back to you on what i come up with.
|
I'm in the same boat. The killer feature for me is an inventory-based option that we could label, and assign inventory counts. As for coding, couldn't you check for an additional pipe "|" separator, and use that for inventory, and only allow one (multiple would be too confusing)?
Example:
Field Title: Size
Options:
Amount | Name | Count
0|S|16
0|M|37
0|L|45
0|XL|33
2|2XL|13
2|3XL|11
This example would give me an inventory count of 155 items, and override any value in the Stock number, plus it allows me to charge more for "plus" sizes automatically.
This also opens up the door for after market or used sales, where you could have a "Quality" field that's inventory based, and apply extra charges or discounts based on your inventory's quality:
Example:
Field Title: Used Quality
Options:
Amount | Name | Count
-2|Worn|16
-1|Okay|37
0|Good|45
0|Great|33
2|Excellent|13
3|Mint|11
This doesn't seem like it would be too hard to code up since it's based on your current Options code. It would just need some simple sanity-check functions to validate the existence of the extra option value and override the normal stock field, increment and decrement the inventory in the option instead of the stock field, and check for attempts to add additional inventory-based options. You could show the individual counts in the option's drop down menu on the store page, like you do with the price changes.
In fact, any "option" that isn't inventory-based is actually an "add-on" selection, like Gift Wrap, Insurance, Expedited Delivery, etc.
Anyway, I hope you add this special option to your commercial product. I'll be one happy new customer if you do!