Bob.E Posted February 12, 2020 Share Posted February 12, 2020 Hi, Wierd issue. Is there a way to limit the amount of products added to cart. e.g. I have only 1 laptop in stock, but the system allows me to add more than 1, I then get the message in cart that "The item REFURBISHED DELL VOSTRO 15 3568 LAPTOP in your cart is no longer available in this quantity. You cannot proceed with your order until the quantity is adjusted." Which is sort of fine, but I cannot adjust the quantity in the basket. If I change it to any value, it refreshes the cart using Ajax and then just goes back to the original value. Ideally if I could only ever add the amount of stock available to the cart. so if I have 3 in stock, I cannot add 4 etc to cart. Is this possible? I know this exists on WoOCommerce. rob. Link to comment Share on other sites More sharing options...
popescu.laurentiu Posted July 27, 2020 Share Posted July 27, 2020 It can be done by editing the file cart.php Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now