frontend_order_cart_save_before
Triggered before changing of the shopping cart contents on the in-cart checkout page—selection of another service option, product removal, or product quantity change.
Shop-Script
Input (passed by reference)
$params array Parameters.
$params['updates'] array Changed cart items’ data. Array keys are shopping cart’s item IDs.
$params['errors'] array Error messages.
$params['updates'] array Changed cart items’ data. Array keys are shopping cart’s item IDs.
$params['errors'] array Error messages.
… your plugin code …
Output
Shop-Script
Plugin code example
PHP
public function frontendOrderCartSaveBefore($params) { shopMyPluginHelper::updateCartItems($params); }