Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shopping cart not updated after stock levels adjusted


artur78

Recommended Posts

Guys,

 

Again I had a customer who managed to order an item which was not in stock and not showing in the webshop.

I looked closely into that and this is what happens:

 

1. The product exists in qty>0 - customer logs in and start making shopping - lets say he puts into a cart product A in qty 1

2. Customers logs off not finishing an order

3. In the meantime I change qty of product A to 0 so it is no longer visible in the webshop

4. Customer returns to the shop, logs back in and what he sees in the shopping cart? - product A!, moreover the script allows the customer to finish checkout process and buy something which I stock checked down to 0.

 

Where is the problem and how can I fix it?

 

My webshop is ms2.2, partly upgraded to v2.2 RC1

 

Many thanks

 

Artur

Link to comment
Share on other sites

That is not the problem, this is set to false.

Simply Customer's shopping cart stored in database is not updated after stock check so if customer has some items in the cart and logs off, then back to the store after for example a week he still sees the same items in his cart even if some of them were stock checked down either automatically or manually.

 

I got fictional account in my shop so I loggeg in and put some items to the basket. I logged off and then set qty of one of the items to 0. I logged back and I was able to buy it and the product was invisible in my shop.

Link to comment
Share on other sites

Just tried this with stock osc 2.3.1

 

Check stock level true

Subtract stock true

Allow Checkout false

Mark product out of stock ***

Stock Re-order level 5

 

setup fictional account, added to cart, cancelled at last sage of checkout, loged off,

 

in admin changed product to 0 stock

 

logged back into account and tried to order what was in my account basket, product marked *** could not complete order.

 

I see you are using 2.2 which I don't have. maybe someone else could help and check v2.2

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...