VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: armana on July 19, 2012, 21:04:16 PM

Title: Creating new Order Status
Post by: armana on July 19, 2012, 21:04:16 PM
When trying to create a new order status, I get error: 

vmError: TableOrderstates COM_VIRTUEMART_ORDER_STOCK_HANDLE in record is missing ! Can't save the record with no COM_VIRTUEMART_ORDER_STOCK_HANDLE.
vmError: VirtueMartModelOrderstatus::store TableOrderstates COM_VIRTUEMART_ORDER_STOCK_HANDLE in record is missing ! Can't save the record with no COM_VIRTUEMART_ORDER_STOCK_HANDLE.


When going to "Stock Handle" drop down, it's empty and I'm unsure what this is for?

Thanks in advance,

Title: Re: Creating new Order Status
Post by: rand486 on October 03, 2012, 21:54:40 PM
I know you haven't seen a response since July (!), but I came across the same problem, and after coming to the realization that this isn't finished yet, I found a workaround:

I went into PHPmyadmin, and opened the jos_virtuemart_orderstates table.

I copied a row that already existed, and changed the fields that mattered to me:

Note the following:

This is purely based on my own best guess.  No warranty for this advice, and of course, BACKUP your site before trying this!

Any corrections are certainly welcome!
Title: Re: Creating new Order Status
Post by: bytelord on October 03, 2012, 22:10:04 PM
Hi,

Did you try to go to Tools -> Tools & Migration -> Install tables and if necessary update them?

Regards