camaleon-ecommerce
camaleon-ecommerce copied to clipboard
Able to change product quantity more than available during checkout
I am able to change product quantity more than available during checkout, but it should be restricted to currently available product quantity.

@owen2345, also I observed that product availability quantity is not changed even after adding products to cart.
Product availability is changed after the cart is paid.
ohh ok, Let me test it.
Hi @owen2345, I have one query, if product availability is changed once payment is done, then how we can avoid two customers trying to add a product at same time, with current design both able to add product to cart, but finally only one customer's checkout will be successful. It would be frustrating experience for customer to complete all steps and finally find out product is not in stock.
So I feel its better update the product quantity whenever a customers added a item to cart, if customer didn't complete the transaction in time then revert back the quantity( e.g after 5 minutes). What do you feel?
@owen2345 , product availability quantity is not changing even after I marked as payment as successful.
I agree with you @mazharoddin
sure @owen2345. Thanks.
Fixed!
Great ..thanks @owen2345
Hi @owen2345, Now Product availability is changing after I marked as payment as successful. however the issue I originally reported still persists. i.e I am able to change the order quantity to any number during checkout.

It is strange, I tested again with both kind of products (normal and variations) and works well:
Product available (123):
User x: can not update more than 23
User y: already has been taken 100 items but it still in cart
ohh ok, let me retest, but i am sure it was not working for me..any way thanks for looking it..
Not sure, what's the issue, but I am able to change product quantity more than available at checkout.
could you share me a repo or publish in heroku?
Hi @owen2345 , Please find below for the repo, I newly created this repo to create this issue.
https://github.com/mazharoddin/camaleon_cms_debug
One more issue I noticed is, user can checkout a product with '0' quantity, finally after completing all steps payment is failing with error related to coupon, but it should be better if we restrict checkout using '0' quantity.