Author Topic: VM2 allows checkout of out of stock products  (Read 10433 times)

e-trader

  • Jr. Member
  • **
  • Posts: 69
VM2 allows checkout of out of stock products
« on: January 31, 2014, 16:57:22 pm »
Version VM2.0.24b  JM 2.5.14

Hello,

We do not allow customers to order products out of stock. Still, we get orders for products that are out of stock. Scenario:

Customer A has a product in cart
Customer B has same product in cart
Customer A clicks confirm order to go to payment page. Stock for product should be 1 and booked 1. Product is now out of stock.
Customer B now clicks confirm... it places the order! It should check the stock again before allowing this.

Screenshots of settings attached.

Can you reproduce this and confirm it is a bug?

Thanks.

[attachment cleanup by admin]

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9997
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: VM2 allows checkout of out of stock products
« Reply #1 on: January 31, 2014, 21:02:26 pm »
Please update to 2.0.26D, maybe it was fixed meanwhile.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

e-trader

  • Jr. Member
  • **
  • Posts: 69
Re: VM2 allows checkout of out of stock products
« Reply #2 on: January 31, 2014, 21:50:50 pm »
Hello Milbo,

With a new clean setup using 2.0.26D I can also checkout products not in stock  :'(

lindapowers

  • Full Member
  • ***
  • Posts: 1335
  • If you're going through hell, keep going.
    • Venta de naranjas online y mandarinas
  • Skype Name: manu.gonzalez91
  • VirtueMart Version: Latest avi
Re: VM2 allows checkout of out of stock products
« Reply #3 on: February 01, 2014, 19:25:07 pm »
Have not checked but I should since this affects us also, I believe that is the reason why this plugin exists http://extensions.joomla.org/extensions/extension-specific/virtuemart-extensions/virtuemart-orders/25835

e-trader

  • Jr. Member
  • **
  • Posts: 69
Re: VM2 allows checkout of out of stock products
« Reply #4 on: February 01, 2014, 19:34:54 pm »
Thanks for the tip on the plugin lindapowers, no idea the plug-in existed.

VM1.1 managed the checkout of products not in stock; checkout was refused until the item that was no longer in stock was removed from the cart.
Now I'm praying Milbo can help with a fix within VM2.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9997
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: VM2 allows checkout of out of stock products
« Reply #5 on: February 03, 2014, 10:37:33 am »
This is strange, cause we "fixed" that already, you can find old posts here. But maybe the problem is in vm2.0 and I solved it already for vm2.1.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

e-trader

  • Jr. Member
  • **
  • Posts: 69
Re: VM2 allows checkout of out of stock products
« Reply #6 on: February 03, 2014, 14:55:58 pm »
Hi Milbo,

Seems like you did not fix it in 2.0.
Could you kindly have a look and see if you can re-produce it?

Thanks.

e-trader

  • Jr. Member
  • **
  • Posts: 69
Re: VM2 allows checkout of out of stock products
« Reply #7 on: February 10, 2014, 21:32:39 pm »
Guess we just leave the bugs where they are?

bunglehaze

  • Jr. Member
  • **
  • Posts: 487
Re: VM2 allows checkout of out of stock products
« Reply #8 on: February 13, 2014, 01:03:21 am »
It is something I experienced for the first time earlier too. I know that customers couldn't order zero stocked items before 2.0.26D though.

I am getting more and more anxious to try 2.1 though Milbo :)

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9223
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: VM2 allows checkout of out of stock products
« Reply #9 on: February 13, 2014, 12:28:34 pm »
If this is because you had two people with the "stock level of 1 product" in their carts simultaneously (there is NO check that someone else hasn't added it to their cart before you do  - this is all BEFORE checkout and confirm)
then one checked out and confirmed (stock level goes to 0)

2nd client checks out and confirms (there is NO check of stock level in 2.0.26 at this point) they will be able to - and you will get an order for a out of stock item

this - as lindapowers mentions - is why I wrote this plugin .. http://extensions.joomla.org/extensions/extension-specific/virtuemart-extensions/virtuemart-orders/25835
http://forum.virtuemart.net/index.php?topic=119859.0

it simply adds a custom field to the product as soon as it is added to a cart - this custom field prevents anyone else from adding it to their cart until it is either deleted from the other cart or a timed script deletes the custom field from dead cart sessions
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

bunglehaze

  • Jr. Member
  • **
  • Posts: 487
Re: VM2 allows checkout of out of stock products
« Reply #10 on: February 13, 2014, 13:17:26 pm »
In my case it was products in a coming soon category that had zero stock level so th problem was with ordering non stock items really

e-trader

  • Jr. Member
  • **
  • Posts: 69
Re: VM2 allows checkout of out of stock products
« Reply #11 on: March 06, 2014, 21:50:24 pm »
Version VM2.0.26d  JM 2.5.18 confirmed still not fixed.
Is VM 2.0 still supported or only VM 2.5 now?

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9997
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: VM2 allows checkout of out of stock products
« Reply #12 on: March 07, 2014, 02:24:50 am »
vm2.5 is vm2.0, you can directly update to it without hazzle, but the problem is solved in vm3, which is currently still vm2.1 at dev.virtuemart.net. You may test it
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

zczfwz

  • Beginner
  • *
  • Posts: 6
Re: VM2 allows checkout of out of stock products
« Reply #13 on: May 09, 2014, 14:02:56 pm »
Hi Milbo,

Could you give us a simple solution first please? Something like check stock before the final check out step!
I'm running VM 2.6.0

Many thanks!

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9997
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: VM2 allows checkout of out of stock products
« Reply #14 on: May 13, 2014, 02:02:41 am »
In vm2.6.0a should be a fix to prevent it. Vm3 has another architecture to prevent it.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/