News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Adding more products to the basket than it is available

Started by wyder, February 23, 2019, 09:18:44 AM

Previous topic - Next topic

wyder

there is a product in the store that has only two items available to buy
the logged-in customer adds two pieces to the basket - everything is ok, he can not add more
then the client logs off
after logging out, he adds two more items to the cart as an unlogged user (he can not add more)
after re-login in the cart there are 4 products and you can order 4, although only two items are possible to order

Joomla 3.9.2
Virtuemart 3.4.2

GJC Web Design

assume it is a bug .. I guess the re-added "old cart" is not checked against stock when added to the current cart

can u actually checkout with the 4?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

diri

edit because of further thinking about it ...

IMHO multiple orders of products running out of stock are correct when there is nothing like a check of reservation or confirmation of orders - stock isn't touched than. A message like "sale reserved" should be shown in case products without stock cannot be ordered.

Another possibility causing such behaviour is a setting in backend of VM "products without stock can be ordered". AFAIK it's a "global" setting. I'm not aware to have chance to apply it on single product(s) only without modyfing VM.

cu, diri

Studio 42

I think that you can solve it.
Check the stock in the layout and add a Joomla message : "sorry you have 4 MY PRODUCT in the basket and only 2 are available. the quantity was set too 2" and modify the column quantity to 2 for eg.