where the stock is updated after a successful checkout?

Started by uthpala, September 26, 2013, 11:02:37 AM

Previous topic - Next topic

uthpala

I am  a newbie to Virtuemart.I 've installed virtuemart 2.0.20 & i am testing the payments using  paypal sandbox. In following scenarios I can't figure out why it happens so.

1. When I do a payment & return, it seems like not maintaining the stock well(that means when i confirm checkout & do the payment via paypal & return back to tha site ,although my cart is empty now, the stock remains unchanged ,when i checked in backend. ).
2. As I know ,when returning after a success payment  'pluginresponse' controller is called. But i couldn't find a place where the stock balance is set &  status is updated.

Any help would be appreciated.

Maxim Pishnyak

Check 2.0.22. Latest 2.0.22e (see Dev Portal at the top of the current page).
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

uthpala

@Maxim Pishnyak - Does that mean the previous version of virtuemart hadn't this stock maintain facility & it is now in the latest version  2.0.22e  ? Or It exists .but I've missed where it is happening .
Please explain a bit more......

AH

Configuration/order statuses

Every status code can have an effect on the stock

Set the "stock handling" value to meet your requirements for each status code you have

Regards
A

Joomla 4.4.5
php 8.1

uthpala

Assuming user has successfully done payments(check out complete) using paypal payment method , how the product_in_stock field of corresponding product is updated .
Can anyone name the function called to perform this task please?

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart