view_products.after

Triggered before returning a product array by the call of {$wa->shop->products()} method.

Shop-Script

Input (passed by reference)

$products array Products.
… your plugin code …

Output

Shop-Script

Plugin code example

PHP

public function viewProductsAfter(&$products)
{
    shopMyPluginHelper::updateProducts($products);
}