products_collection.prepared
Allows to execute public methods of a shopProductsCollection class instance before generating SQL query text for retrieving a product list.
Shop-Script
Input (passed by reference)
$collection shopProductsCollection Product collection handling class instance.
… your plugin code …
Output
Shop-Script
Plugin code example
PHP
public function productsCollectionPrepared(shopProductsCollection $collection)
{
$collection->orderBy('price');
}









