I created a new order status and put the stock status reserved.
Therefore, the goods should be reserved in the warehouse. But not it. when I switch from this state to the state of processing, for example, the goods are reserved. When I switch the status back, the reservation for the goods is canceled, although I also have the stock status reserved here.
Can anyone advise please?
Did you remember to change the "stock handling" to "its reserved"?
Maybe this page will help you :
http://docs.virtuemart.net/manual/configuration-menu/order-status-edit.html
I have it set correctly according to the instructions.
Look at the picture.
However, the goods are not reserved for me in this state, and if they are already reserved, the reservation will be released when switching to this state.
Now I have installed a new installation of joomla (3.9.22), php 7.3.3 and virtuemart 3.8.4 and the problem is still the same.
You CANNOT use this status, the letter N is used inernally and will mess with Your order.
Choose another letter that is not used internally !
Jörgen @ Kreativ Fotografi
You're right, thank you.
Where can I find out what the internal statuses are?
I an not 100% sure, but i think this is the only hidden status. Do not think this is documented.
Jörgen
function handleStockAfterStatusChangedPerProduct
in
administrator/components/com_virtuemart/models/orders.php
Order status code ="N" is for a new product
Stock handles for new product is "A" = avalaible
For status "Čeká se" I use everytime "COM_VIRTUEMART_ORDER_STATUS_WAITING" with char "W" and "Reserved" for stock handling
Thanks