Hi,
You can take a look on the trigger "onBeforeProductListingLoad" and on the "HikaShop market" plugin (plugins/com_hikashop/market/market.php).
This plugin uses a lot of trigger and you would find the trigger which could give you some examples.
/**
*
* @param array $filters
* @param string $order
* @param object $view
* @param string $select
* @param string $select2
* @param string $ON_a
* @param string $ON_B
* @param string $ON_c
*/
public function onBeforeProductListingLoad(&$filters, &$order, &$view, &$select, &$select2, &$ON_a, &$ON_b, &$ON_c)
We are updating the developer documentation in order to give more details on this trigger and his possibilities.
The trigger allow you to modify the SQL request which would be done for the product listing. You can add a "filter" in the $filters array which would be use in the "WHERE" clause.
$order is for the ordering
$view if the view object so you can access to his parameters
The $select are for extra queries and the $ON_ are for the table links.
Regards,