orders_collection.prepared
Allows to execute public methods of a shopOrdersCollection class instance before generating an SQL request text to retrieve an order list.
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 ordersCollectionPrepared($collection)
{
/** @var shopOrdersCollection */
$collection->orderBy('total');
}









