Database Deleted item still available after publish

General ShopSite user discussion

Database Deleted item still available after publish

Postby artattack » Fri Dec 07, 2007 4:14 am

Hi.

I have had two problems.

We use order anywhere linker.

I deleted a product from the database and published, but for some reason 24 hours later the product was still ordered by a customer, even though to me and others customers it was unavailable it came up with the SKU error this was what I would expect.

Problem 2. very similar.

I changed the description of an item and orders were coming through fine with the new description then for no reason I can think an order came through with the old description much later.

I thought this would be impossible.

Any ideas?

Arthur.
artattack
 
Posts: 28
Joined: Mon May 21, 2007 12:22 pm
Location: Blackburn UK

Postby Jim » Fri Dec 07, 2007 7:05 am

If the order was started before the item was deleted and completed after you delete it this might occur.

Once the item is added to the cart it is not checked again to see if the item is still in the database unless inventory tracking is enabled. So if someone added an item to the cart and waited a few days to finalize the order they could still have the item in the cart and checkout. The amount of time that a non-completed shopping cart is kept would come into play here, the default time is 7 days and can be configured on Commerce Setup > Order System > Shopping cart in the field "Keep unfinished shopping carts:" So a person would have 7 days to complete the order once they put an item in the cart.

If you have inventory tracking enabled the database is checked to see if the item exists and is in stock when the item is placed in the cart. Each time the cart is recalculated (done on the initial shopping cart screen) the quantity is checked to see that there are still enough to complete the order. Once the quantity drops below the " Out of Stock limit:" set for the product the shopper would get an error saying the item is out of stock. The inventory quantity on hand is not reduced until the thankyou.cgi is executed when the shopper actually finalizes the order by paying for it . So this does leave a small window when a shopper could checkout with an item that is no longer in stock.

So if you have limited stock of items I would turn on inventory tracking and set the number of days uncompleted shopping carts are kept to 1 day. This would minimize the possibility of the problem happening.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby artattack » Fri Dec 07, 2007 12:00 pm

That explains it nicely.

We have the no. of days set quite high, but I did not realise that this could happen and is very useful to know.

Thanks.

Arthur.
artattack
 
Posts: 28
Joined: Mon May 21, 2007 12:22 pm
Location: Blackburn UK


Return to User Forum

Who is online

Users browsing this forum: No registered users and 102 guests

cron