VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: idor on January 15, 2021, 12:04:11 PM

Title: Product Out of Stock when I cancel payment
Post by: idor on January 15, 2021, 12:04:11 PM
Hi
I have an online shop VM VirtueMart 3.8.6 10373 and Joomla 3.9.24

The Payment methods used: Cash on delivery, Bank account and Credit cards.
The plugin used for credit cards, is for connecting with the bank´s website (Win Bank Gateway from Web-Expert).

I use Stock Handling and most of the products have 1 item. I have selected not to display the product if there isnt in the stock.

The problem is when the user select to pay with Credit Card and goes to the bank enviroment if he cancel the payment the product gets out of stock in backend / Products Status / Booked, ordered is 1 and the product is not shown in the cart - as it is "out of stock".
I get a canceled order, but the product doesn´t return to the stock.

I don´t know if it is a VM bug or plugin´s  bug? or maybe bank´s issue???
Title: Re: Product Out of Stock when I cancel payment
Post by: GJC Web Design on January 15, 2021, 12:33:49 PM
assume the plugin .. is there any setting for status of cancelled in the plugin?
if u manually cancel any order in the admin is the stock returned?
Title: Re: Product Out of Stock when I cancel payment
Post by: idor on January 15, 2021, 13:07:25 PM
Yes!!!  :) It returns!

Title: Re: Product Out of Stock when I cancel payment
Post by: GJC Web Design on January 15, 2021, 13:30:41 PM
so must be a problem with the payment plugin
Title: Re: Product Out of Stock when I cancel payment
Post by: Jörgen on January 15, 2021, 16:15:56 PM
If the order is really cancelled, then there is some problem with the payment plugin. But if the order just gets status pending and is not really cancelled, then this is normal behaviour.

Jörgen @ Kreativ Fotografi
Title: Re: Product Out of Stock when I cancel payment
Post by: idor on January 18, 2021, 08:28:07 AM
Hi,

There is a configuration in the plugin to change the order status if the transaction is canceled "Select an order status for cancellation in Winbank".
Now is "Canceled" and the product doesn´t change status Booked/Ordered maintains to 0.
So now the behavior looks better.
If I change it to "Pending" the product status changes to Booked/ordered =1 and the product is not shown anymore in the frontend category page.
The problem now is that in both cases the product is deleted from the cart page, if the original stock is 1. I will contact back with the developer of the plugin..

Thank you anyway!