#2894 - Buy button is not checking the stock before adding to cart

Identifier #2894
Issue type Major issue (breaks an entire feature)
Title Buy button is not checking the stock before adding to cart
Status Completed
Handling member Chris Graham
Addon General / Uncategorised
Description With Catalogue category embedding (main_cc_embed)

The "buy" button do not check the stock number before adding to cart, so if we are out of stock, still send the item to the cart, then the user can "buy" it with paypal with no check.

If you "view" the item, then press Buy (using the product page instead) then it do check if the stock is bigger than 0 if not, we got an error message saying that the item is out of stock.

I would expect the same behavior from the buy button of the Catalogue category embedding (main_cc_embed)

It might be a "big" flaw.
Steps to reproduce

1- Add the Main_cc_embded in a comcode page

2- add a product to sell in the catalogue

3- Using the main_cc_embded, press the "buy" button

4- Even if the stock is at "0" still add the item to the cart

Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated