I deleted the hard coding... and installed your max quantity vqmod. In Admin Product .. for our promo limited qty item is saved max qty 30... From frontend I attempt to add to cart >30 and it stops me with maximum error message. From "shopping cart" I attempt to adjust qty >30 than after clicking checkout.. it stops me with maximum error message... so far this part works like a charm... awesomegrgr wrote:I've updated this so that it works without a max quantity (uses a 0 as default) and put it in the extension store (free to download).
Two versions 1.5.0.x and 1.5.1.x because there was a slight difference in one of the files and the vQmod wouldn't work.
Again, not entirely tested but it seems to be working OK.
http://www.opencart.com/index.php?route ... on_id=3327

Please explain the 0 as default.... All my other products that do not need max qty allowed... is auto set at 0 ... but it stops me from adding even 1 to shopping cart.... Obviously if I update my db maximum field to a higher number like 9999 than it will work.... but since you mentioned default set to 0 is not working for me... just to let you know... in the meantime... I updated my product maximum field to 9999... don't mind being your tester...
