Post by HenrysCat » Sun Jul 25, 2021 6:18 pm

I have got it so when stock is zero you cant add any items to the cart, but if stock is 1 then its still possible to add 2 items to the cart.
I have found a few other fairly old threads asking the same qustion, but no solution.
Any thoughts?

OC Version 3.0.3.7 - Debian 10 - ISPConfig


Newbie

Posts

Joined
Fri Jul 23, 2021 2:01 pm

Post by grgr » Sun Jul 25, 2021 8:53 pm

I did a stock check extension for all such matters.
https://www.opencart.com/index.php?rout ... n_id=13703

-
Image Image Image Image
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK

Post by justin9584 » Mon Jul 26, 2021 6:45 pm

There IS already such warning by default. But to actually make it work, the order should be placed and have Processing status. You can not and actually SHOULD NOT add this option live. I mean, if several customers added a particular product and their total quantity exceeds your stock,firstcallonline none of them should see any warnings. The right logic is already there don't change it.

Newbie

Posts

Joined
Mon Jul 26, 2021 6:31 pm
Who is online

Users browsing this forum: No registered users and 118 guests