category_update
Triggered before saving a product category.
Shop-Script
Input (passed by reference)
$params array Parameters.
$params['item'] array Category properties before saving—values of 'shop_category' table fields.
$params['data'] array Category properties submitted by a user.
$params['item'] array Category properties before saving—values of 'shop_category' table fields.
$params['data'] array Category properties submitted by a user.
… your plugin code …
Output
Shop-Script
Plugin code example
PHP
public function categoryUpdate($params)
{
//e.g., replace entities with ordinary whitespaces
$params['data']['description'] = str_replace(' ', ' ', $params['data']['description']);
}









