View Full Version : Items in Stock not updating?
Chief Corn
03-29-2005, 10:43 PM
Haven't been around much since my video card died last week. I just updated to beta 5, and everything in the monster arena seems to be working fine...good job. I just noticed though after battling a few bots, and had to buy a new potion before battle. We're supposed to have only 3 of a certain item in stock (for the week), and I don't think the number in stock ever changed after buying a few of the same potions. It shows how many's been sold correctly, and it never goes out of stock it seems. Can anyone else confirm this?
Revan
03-30-2005, 04:29 AM
And here I was sure that you were going to report that the store doesn't auto restock :p
I just tested it on my live forum (using same itemshop.php as you), and I cannot confirm.
Maybe the restock code DOES work after all, and you set the minimum and maximum stock to 3, and enough people bought the potion for it to restock?
Mystery... :p
Chief Corn
03-30-2005, 07:07 AM
ok i watched it, and it is coming out of stock well i think i was confusing the weely restock with the ucash/ushop's hack. i have it set to min 1, and max 3. if the itemshop auto restocks if there's not 1...would setting my min to 0 make things randomly sold out? and when would sold out items restock?
Revan
03-30-2005, 12:23 PM
Nah I think it would still restock, only if the restock value was resulting in 0, it would loop until it got a positive value.
So yea, setting min and max to 0 would throw it into an infinite loop, which I will add checks for once I fix the code.
Chief Corn
03-30-2005, 04:41 PM
so there's no difference in having min 1/max 3, and min 1/max 100 since items auto restock when there is less than 1? when would an item go out of stock? like in the ucash/ushop if 3 is the max in stock for the week and 3 are purchased the first day then it would be out of stock until next week.
Revan
03-30-2005, 04:57 PM
Having min1/max3 would, when code is repaired, restock when it is sold out yes, and the difference between your scenarios are only the amount of items it would fill.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.