VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: uthpala on September 26, 2013, 11:02:37 AM

Title: where the stock is updated after a successful checkout?
Post by: uthpala on September 26, 2013, 11:02:37 AM
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.
Title: Re: where the stock is updated after a successful checkout?
Post by: Maxim Pishnyak on September 26, 2013, 14:39:02 PM
Check 2.0.22. Latest 2.0.22e (see Dev Portal at the top of the current page).
Title: Re: where the stock is updated after a successful checkout?
Post by: uthpala on September 27, 2013, 05:14:14 AM
@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......
Title: Re: where the stock is updated after a successful checkout?
Post by: AH on September 27, 2013, 19:00:08 PM
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

Title: Re: where the stock is updated after a successful checkout?
Post by: uthpala on September 28, 2013, 15:58:31 PM
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?
Title: Re: where the stock is updated after a successful checkout?
Post by: Maxim Pishnyak on September 29, 2013, 21:42:04 PM
You could do a text search in VM files. It's simple.