how can "Availability" property be used ?

0 views
Skip to first unread message

ZaR

unread,
Nov 3, 2008, 3:54:17 AM11/3/08
to Open Shopping Cart
Hello ;)

Each "AddToCart" control has an "Availability" property.
I guess this property stands for the available quantity of the
product.
But 2 simple tests seem to show that this property is.. useless :(

1-
I set Availability to 3 for an AddToCartButton.
I run the website.
I CAN add more than 3 products to my cart.

2-
I set Availability to 3 for an AddToCartButton.
I run the website in a 1st session.
I add 1 product to my cart.
I run the website in a 2nd session (other browser).
I CAN add more than 2 products.

Am I wrong ?
If someone can confirm that this property has no enhanced operations
behind it ? ;)
Or, if I'm completely wrong.. please help me to use it.

Nevertheless, great work!
++

Marc Chouteau

unread,
Nov 3, 2008, 4:41:37 AM11/3/08
to open-shop...@googlegroups.com
Hi
 
If you use a stock management, the quantity ' availability ' is the physical inventory of the product, i am that it is possible to order more, the assumption that the relicat would be reserved.
 
I have not provided the case to disable the add to cart if more than physical inventory, but this is not very complicated to intercept the addtocart event.
 
As soon as i have time rework on this code i would add this option, i probably move the project on Google Code, more easy with SVN repository
 
Marc

Reply all
Reply to author
Forward
0 new messages