view_categories
Triggered on generation of a product category array to be returned by {$wa->shop->categories()} method.
Shop-Script
Input (passed by reference)
$params array Parameters.
$categories array Product categories.
$tree bool Whether a category array must be returned as a tree.
$categories array Product categories.
$tree bool Whether a category array must be returned as a tree.
… your plugin code …
Output
Shop-Script
Plugin code example
PHP
public function viewCategories(&$params)
{
shopMyPluginHelper::updateDisplayedCategories($params);
}









