Commerce Orders Search Bug in CP? I'm trying to figure out how searching for Commerce Orders in the CP works. I've run some tests searching against the following fields:


Shipping Business Name
Billing Business Name
Shipping Method


In all cases, searches seem to match nothing in these columns. For example, if the Shipping Business Name was "Acme" and I enter that in the CP search bar, I get no results.

Is this expected behaviour? That seems hard to believe if it is. How would a user filter down the list of Orders for a particular company or shipping method... or whatever?
We are working on providing better search for entries, products, orders,  and all other custom elements in Craft within Craft 3. For example we recently added the search keywords method to the element interface to allow searching on non core attributes or custom fields: https://github.com/craftcms/cms/commit/afffaa5dcdb0fc02b484192e42cd5c9d528db94a

The above additions like above will help us provide searching on attributes that aren't actual properties/getter methods on the order.

This of course doesn't help you in the short term when searching for orders on the attributes you listed. I have added it as a priority to see if we can somehow make searching on those attributes easier in Commerce 1.x

A temporary work around would be adding the information to the search index by creating some pre-parse custom fields: https://github.com/aelvan/Preparse-Field-Craft

For example you could create a pre-parse field called "businessShippingName" and add it to the order field layout. In the settings for that field, you could use the template: {{ commerce_order.shippingAddress.businessName }}. This would allow you to search based on the business shipping name, as well as list it more easily in the order index screen.