I believe I've found a bug in cart.php
the stock-tracking doesn't work correctly for the 'stock'
value in the table 'Size' is updated to soon.
It should be updated in stats.php instead of cart.php.....
Now is some one goes to the pay.php form the cart and
after that leaves his order.....the size value is updated
but nothing is ordered.......
Am I correct on this one or am I missing something?????
Best Regards,
Jeroen
Logged In: YES
user_id=367331
This is not a bug, but this is, how it works. There is a longer thread
somewhere in forums (in German ;-).
Existing concept hangs in situation you described (problem is fixed, when
session is automatic deleted in start.php - or should so - if not, that would
be a bug). I think this concept is like in real life. If you go into super market to
buy last piece of bread, you put it into your cart and is 'away' for other
customers. (update stock in cart.php). If you leave super market without
buying things from your cart, cart stand around somewhere in that place.
Last bread keeps in cart until clerk clean up (our start.php).
Your concept hangs in another situation: Two customers want buy last
exemplar of a product. First put's last one into its cart, second can do so too
- because first hasn#t finished its purchase.
At the end both order last exemplar. What to do?
That's why I decide to handle stock into cart.php and not in stats.php.
Both concept have good sides, but I have no idea how to bring them
together ...
Greetings,
Andreas.
Logged In: YES
user_id=723611
I'm going to work it out and try to implant the function in
stats.php.......for it's always a matter of choosing who to
send the last product. even when the stock is updated in
cart.php.
For al the products I want to have onstock .... I keep the
real stock updated so I don't run out of the products.
But for this I have to have the virtual stock updated when
the ordering definatly took place......
I'll keep you posted with the work....
Best Regards
Jeroen