VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: JacoboPS on April 10, 2015, 09:28:14 AM

Title: Weird order status created when order is generated
Post by: JacoboPS on April 10, 2015, 09:28:14 AM

When an order is generated, I get three lines about ORDER STATUS, the last two I understand are correct, but what about the first one? Not even the date has sense...
This is what I can see this on the backend when checking the status of a test order generated yesterday:

Date Added                        Shopper Notified?    Status                                                                            Comment
Friday, 06 March 2015 06:04    No                   COM_VIRTUEMART_UNKNOWN_ORDER_STATUS   Order deleted    :o
Thursday, 09 April 2015 09:25    No                   Pending   
Thursday, 09 April 2015 09:25    Yes                   Confirmed

Any idea about where the problem could be? I just attach the screenshot of the order status configuration.

Thank you very much for any idea!
Title: Re: Weird order status created when order is generated
Post by: jenkinhill on April 10, 2015, 12:34:54 PM
You obviously dont have the COM_VIRTUEMART_UNKNOWN_ORDER_STATUS  constant translated in the language file. Create an override for it entering the value of whatever you like, eg "unknown".

That constant is not part of VM3.0.8 - but you don't give your versions.

forum.virtuemart.net/index.php?topic=113895.0



Title: Re: Weird order status created when order is generated
Post by: JacoboPS on April 10, 2015, 15:43:41 PM
Ok, once I have created the override, I don't see the constant, but I still have the same doubt... Why is that "unknown status" created when an order is created/placed? And what in a different date than the real one?

Date Added                           Shopper Notified?    Status           Comment
Friday, 06 March 2015 06:04    No                   Status unknown     Order deleted
Thursday, 09 April 2015 09:25    No                           Pending   
Thursday, 09 April 2015 09:25    Yes                           Confirmed

Just the last two lines have sense.
Title: Re: Weird order status created when order is generated
Post by: jenkinhill on April 10, 2015, 15:45:20 PM
According to the comment you have "Order deleted" - so it no longer exists.
Title: Re: Weird order status created when order is generated
Post by: JacoboPS on April 10, 2015, 16:46:46 PM

Correct! But I get this line/status created for each order even if it is completed succesfully. That is the weird thing.
Title: Re: Weird order status created when order is generated
Post by: wiesiu on December 16, 2015, 07:43:15 AM
Hello!

I have exacly the same problem.

Any idea about where the problem could be? This is very important issue.
Thank you very much for any idea!
Greetings
Title: Re: Weird order status created when order is generated
Post by: AH on December 16, 2015, 20:41:42 PM
check your database tables  relating to

orders
order_items
orderstates
order etc....


Looks like you have some bad data or old data in there!
Title: Re: Weird order status created when order is generated
Post by: StefanSTS on February 08, 2016, 22:12:33 PM
Same here,

COM_VIRTUEMART_UNKNOWN_ORDER_STATUS

after a migration to VM 3 the virtuemart_order_id was not autoincremented from the right ID onwards.
The migration left some order statusses with "-" instead of the regular "U", "P" and so on in #_virtuemart_order_histories.

So new orders took the old IDs and with them the order status "-".

Changing the value for the next virtuemart_order_id in #_virtuemart_orders did the job.

Hope it helps
Stefan
Title: Re: Weird order status created when order is generated
Post by: bazaarefarda on July 02, 2016, 00:06:14 AM
Thanks StefanSTS.
I'm having the same problem.
Do not from payment extension?
Please explain further that the solution?