I have a question about Get SAME free item as the item they purchased -
How can I check stock on shopping cart page in this case? Say I have 5 items in-stock, and they can buy one get one free. Currently if I input 5 as purchased qty, the free item shows as 1, which ends up 6 totally. And I can check out from that point. The stock check is by product id, but when 2 items are the same but show in 2 different rows, the same id will repeat twice in the array and both can pass the stock check, since 6 and 1 are both <= 5.
Another interesting thing I found is, if I bought 1 item in the cart, it shows 1 free item; but if I want to change qty in the cart, say buy 2, the qty stays same (1) if I do this change in the PURCHASED item qty box; but if do it in FREE ITEM qty box, it works - buy becomes 2, and free is still 1 (I have limited free to 1). Same thing if I want to decrease the qty that I buy. I have to change qty in free item qty box instead of buy qty box... which would definately confuses my customers.
Any fix for these 2 issues?
Thanks a bunch! I really want to make this great mod to work!