Jump to content

(SOLVED) Invalid new order state???????


Recommended Posts

Hi,

My shop is nearly ready for launch and I was doing some test orders and everthing was fine no problems at all, then on my next test after I complete the credit card details I get a blank screen with Invalid new order state message at the top. Now I am stuck in what to do as I am pulling my hair out with this of what I have left..

Hope you can help soon,

Mark..

Link to comment
Share on other sites

When I click submit, where it should say about your order confirmation I get a message saying 'Invalid new order state' at the top of the page.
The url that it gives is only the url for the payment screen, please go to www.handlestudio.co.uk and do a test order to see the error.
I also don't get a order confirmation in the back office either. Hope you can help.

Thanks,

Mark.

Link to comment
Share on other sites

Could someone please take alook at this piece of code below as to the error I seem to have while trying to submit a test order with paying with a credit card, this is in the classes/orderhistory.php file


/* Change invoice number of order ? */
$newOS = new OrderState(intval($new_order_state));
$order = new Order(intval($id_order));
if (!Validate::isLoadedObject($newOS) OR !Validate::isLoadedObject($order))
die(Tools::displayError('Invalid new order state'));
if ($newOS->invoice AND !$order->invoice_number)
$order->setInvoice();
if ($newOS->delivery AND !$order->delivery_number)
$order->setDelivery();
Hook::postUpdateOrderStatus(intval($new_order_state), intval($id_order));

The highlighted piece is the error I am getting does anyone know why this is??

Regards,

Mark.

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 months later...

Where is support forum ?

I just finished adding a new state then i make a modification module base on Bank Wire module to give an ability for my customer to pay via local bank

When i testing it with my new product download and also product non-download, i've got this problem too!
"Invalid new order state"

If i'm going back, my cart is empty

How can i solve this problem ?

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...