orders_collection.filter
Allows specifying custom initial conditions for generating order lists.
Shop-Script
Input (passed by reference)
$collection shopOrdersCollection Instance of order collection handling class.
… your plugin code …
Output
Shop-Script
Plugin code example
PHP
public function ordersCollectionFilter(shopOrdersCollection $collection)
{
//e.g., never show orders placed by backend users
$collection->addJoin('wa_contact', ':table.id = o.contact_id', ':table.is_user <> 1');
}









