News:

Support the VirtueMart project and become a member

Main Menu

Stock quantity not update?

Started by tidor, November 25, 2012, 19:42:07 PM

Previous topic - Next topic

tidor

Joomla! 2.5.8
Virtuemart 2.0.14
PHP version    5.3.17

1. Product stock not updated after shopper "Confirm Purchased". It also not updated when admin set status to confirmed, shipped or canceled in admin orders page. How to debug this? Is there any error log?

2. Before thank you page, which file and function is call? I would like to check why product stock not updated and if require i would like to hard code my own stock update there.


tidor

when i debug, i found that

$signInStock value is '='
and
signOrderedStock value is '='

not wonder it did not get in the update statement  if ($signInStock != '=' or $signOrderedStock != '=') {*update code*}

anyone have any idea what is the logic there?

dv1r

Hello,
I am having the same problem,
did you ever get it fixed?

Thank you?

Milbo

the function is in BE/models/order.php, or in short in the order model.
search for the function handleStockAfterStatusChangedPerProduct. But in your case it looks like you changed the orderstatus and you did not configure the inventory status correctly. The '=' sign means that the both order status  (old and new) do not imply any stock change.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/