Can I Change the Default Search Status for Orders?

By default, when you access the Orders page, the orders shown have a Status of Process and Payment status of Pending or Received. This can be changed, but it must be done in a source php file. If you have source code access, you can follow the steps below to change the default order search status.

Applies to Version(s): 3.8.0 - Current

Complexity Level: Advanced

Estimated Time for Completion: 10 minutes

Requirements: Source code access.

How to Change the Default Search Status for Orders.

First thing you will need to do is open up your source code package or navigate to the files of your cart on the server.

Navigate to content/classes/Admin/Controller and edit the file Order.php.

On line 23, you will see the following code:

'status' => ORDER::STATUS_PROCESS,

You will be changing ORDER::STATUS_PROCESS. To see what this can be replaced with, checkout line 89. This array will show easy status that can be used. So, if you wanted the Status to be Any by default, the above line 23 would be changed to:

'status' => 'any',

If you wanted to see only Completed orders on that page, it would be:

'status' => 'Completed',

The same concept can be used for the Payment status. On line 25, you would replace 'any' with one of the options in the payment status array at line 116.

Once you've made your changes, save the file and make sure it's uploaded to the same path on your web server.

Links to Related Articles.

Can I Change the Deault Search Status for Orders?

If you didn't get your question answered, please contact the Pinnacle Cart Support Team. To submit a ticket, go to the My Account drop-down menu at the top right of the admin area and select Support

Was this article helpful?
0 out of 0 found this helpful