Jump to content

Order status not changing for some orders after payment.


Recommended Posts

I recently moved from a shared hosting account to a VPS.  PS 1.4.7.3.  I am trying to pinpoint what may have gone wrong that is causing this issue.

 

The store appears to be running ok, except for this one issue.  I only use PayPal to process payments.  Some orders are processed just fine with no problems.  But occasionally, a customer places an order, makes their payment, and then an error occurs.  

 

  • Payment and order details show up in PayPal.
  • Order slip is created for the customer in PS and the order can be seen from the customer's profile.
  • Order overview does not show any information about what products were ordered, but does show the amount of the order.
  • The order status is not being set.
  • The order doesn't show up on the orders tab in the list of total orders.
  • If I look up the customer name, I can see the order there with an error message.
  • Error reporting shows some problem pertaining to the order state.  $currentState
  • Trying to get property of non-object in /tabs/AdminOrders.php on line 517 Notice: Trying to get property of non-object in /tabs/AdminOrders.php on line 520
  • Trying to get property of non-object in /tabs/AdminOrders.php on line 620
  • Trying to get property of non-object in /tabs/AdminOrders.php on line 635
  • Notice: Undefined index: order_state in /tabs/AdminCustomers.php on line 509
  • If I set the order status from nothing to "payment accepted", it saves the change with no problem. But there is still no product information.
  • I checked ps_order_status table to make sure there were no empty fields or anything missing.  It looks to be ok.  
  • The orders with errors are missing an entry for the order in ps_order_history.  
  • When looking at orders that appear normal, there are no errors generated.  
  • This started after the server change.
  • Some orders process normally and some do not. 

Any ideas?  Thanks!

Link to comment
Share on other sites

  • 3 weeks later...
  • 6 months later...
  • 2 weeks later...
  • 7 months later...

Im still looking into this but for us we have a POSSIBLE potential fix for this problem.

 

We're on prestashop 1.6.0.11 but could work on other versions?

 

1) Localization > countries > the section ''address format''  change to use 'default format'

 

For this to work properly, you might need to go to: localization > localization  and make sure you have imported your countries localization pack.

 

2) after upgrading prestashop and changing hosting companies we noticed a few settings had changed. We also had to go to localization > states > input the ISO code for each state (you can get them from wikipedia)

 

After we did these two changes things seemed to work much better.

 

 

NOTE:  im not a developer or programmer and both of the above might have been completely irrelevant to fixing the problem, but they seemed to have helped for us. 

Edited by kayb100 (see edit history)
Link to comment
Share on other sites

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...