Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin Order status


neil_srfc

Recommended Posts

My first post! So if this is the wrong place to post this, please be gentle with me....

 

Don't know if anyone has picked up on this, but here goes:-

 

Admin -> Customers -> Orders -> Change the pull down Order Status to (let's say) 'Pending' -> then back to 'All Orders'

 

I don't get any orders listed.

 

I think I've sorted it with

 

    } elseif (isset($HTTP_GET_VARS['status']) && tep_not_null($HTTP_GET_VARS['status']) ) {

in admin/orders.php (around 411)

 

.... but can anyone else confirm that this is a problem?

 

 

If this has already been posted and sorted - I'm sorry - I've had quick look through the forums but can't find anything similar.

 

I'm using OS2.2 MS 2

Link to comment
Share on other sites

Phew! I thought it was just me! :D

 

The think the reason why we have been getting zero results for the 'All orders' screen is because the URL is something like

 

admin/orders.php?status=

 

Taking the status parameter as 'nothing'

 

when to show 'All orders' it should be

 

admin/orders.php

 

So I just added the extra condition (tep_not_null.... section ) where the 'status' parameter is checked for.

 

} elseif (isset($HTTP_GET_VARS['status'])  && tep_not_null($HTTP_GET_VARS['status']) ) {

 

Does it work for anyone else? Has anyone else got another solution?

Link to comment
Share on other sites

  • 3 months later...

worked like a charm (once I figured out where to put it)!

 

I'll post this to "Tips and Tricks", but in catalog/admin/orders.php, search for the line:

} elseif (isset($HTTP_GET_VARS['status'])) {

 

and replace it with:

} elseif (isset($HTTP_GET_VARS['status']) && tep_not_null($HTTP_GET_VARS['status']) ) {

 

as mentioned above.

 

"All orders" now works!

 

-jared

Link to comment
Share on other sites

  • 1 year later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...