New Zenner
- Join Date:
- Apr 2011
- Posts:
- 9
- Plugin Contributions:
- 0
"Subtract stock" individually
I wonder if there is any way to select individually for each product if stock should be substracted or not when a customer makes a purchase?
I know there is a "Subtract stock" setting in admin, which can be set to true or false, but this affects all products.
(What I *really *want is ta be able to handle compound products, since I sell both assembled products and their parts, so when someone buys an assembled product (assembled from i e 5 parts), then all parts it is made of should also have the stock substracted. But I have already understood that no e-commerce systems can handle that, it is not specific for zencart.)
My main problem is that I sell a lot sometimes of the parts, and perhaps during the night all my stock is sold but the shop still show that I have a stock, so people might keep on ordering, and get disappointed when I tell them it has actually just gone out of stock (for a while). So an acceptable way for me to handle this would be to have the "Subtract stock" function for the parts I sell a lot of.
Another option is to hide stock and set stock value to "infinity" for items I don't want to be checked for stock amount. A drawback with this is that then customers have no idea if my stock is 1 or 1000.
If I was able to set minimum stock level individually, that would have the same effect.
I suppose I could try to hack the php code but since it is individual I would have to add a variable for each product (which says if stock shall be fixed or not) and that goes a bit beyond my knowledge of php (I've only done minor tweaking).
I fear this is not the most common problem in the world so perhaps there is no solution except hacking? If so, does anyone have a link that describes for dummies how to add a variable?