VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: ernst007 on November 11, 2020, 11:34:03 AM

Title: Virtuemart order status
Post by: ernst007 on November 11, 2020, 11:34:03 AM
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?
Title: Re: Virtuemart order status
Post by: bratamic on November 11, 2020, 12:59:32 PM
Did you remember to change the "stock handling" to "its reserved"?
Title: Re: Virtuemart order status
Post by: AH on November 11, 2020, 13:03:00 PM
Maybe this page will help you :

http://docs.virtuemart.net/manual/configuration-menu/order-status-edit.html
Title: Re: Virtuemart order status
Post by: ernst007 on November 11, 2020, 20:04:09 PM
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.
Title: Re: Virtuemart order status
Post by: Jörgen on November 12, 2020, 00:06:28 AM
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
Title: Re: Virtuemart order status
Post by: ernst007 on November 12, 2020, 00:22:35 AM
You're right, thank you.
Where can I find out what the internal statuses are?
Title: Re: Virtuemart order status
Post by: Jörgen on November 12, 2020, 08:09:41 AM
I an not 100% sure, but i think this is the only hidden status. Do not think this is documented.
Jörgen
Title: Re: Virtuemart order status
Post by: pinochico on November 12, 2020, 08:32:21 AM
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

Title: Re: Virtuemart order status
Post by: ernst007 on November 12, 2020, 10:11:17 AM
Thanks