Quote:
Originally Posted by glorbgorb
I dunno, you could do it with a couple of lines of code. It's to carry on the illusion.
If it were ever possible to get to the point of them having 1 box only of a given product, then you know a box is a box and just not a string of consecutive packs. You would know if it were ONLY a box and zero packs remaining.
Same way with cases. I know we can see when there are 99 or less cases as people refresh sometimes to gauge how long something will stick around. I doubt people are buying cases at a time that often; so I have to assume when you buy a "box" it takes a "case" away, but really it's again just grabbing a run of packs in order.
Honestly, from my basic programming background, it would be easier to code everything from a pack level then to designate products at a case, box, and pack level. I could sketch it on the back of a napkin pretty easily. You can't have only cases available, as the buyer pool for a case is much smaller for a box; and you can't have only boxes available as the buyer for individual packs is larger. Have you ever seen a product on Pack that has only cases available? Only boxes? They're just increments of packs.
(Again, all guessing, but still a fun thought experiment!)
|
The programming side of it is fairly easy either way described above (faking it on a pack by pack basis or actually having case-box-pack opening), I believe when we discussed it last on these forums we determined it wasn't possible for them to have completely separate case/box/pack pools as the programming on that would be significantly more difficult and would need to rely on automation to swap cases/boxes around to allow for people to purchase the lower tier.
From my own experience in programming assigning values to each pack that includes which box and case it came from is the most likely scenario and then its a simple if statement to check when a case is no longer a complete case and how many unopened cases are left. Effectively when CaseXBox1Pack1 is opened, CaseX and Box1 are no longer full cases/boxes therefore can't be sold as such, box 2-12 in that case can still be sold as boxes tho until pack1 of each box is opened.
Having said that, I have seen far simpler systems programmed in far more convoluted ways so you never know I guess, its probably spaghetti code that was initially built to run a very simple system that has been patched and patched and patched and now resembles nothing like its initial implementation.
ok enough ranting from me