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.
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?
Hello,
I am having the same problem,
did you ever get it fixed?
Thank you?
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.