backend_prod_save
Triggered upon product saving in the product editor in the new interface (2.0).
Shop-Script
Input (passed by reference)
$params['product'] shopProduct Product properties object.
$params['data'] array Saved product data. The data content in various product editor tabs may differ.
$params['content_id'] string Identifier of the current product editor tab.
$params['data'] array Saved product data. The data content in various product editor tabs may differ.
$params['content_id'] string Identifier of the current product editor tab.
… your plugin code …
Output
Shop-Script
Plugin code example
PHP
public function backendProdSave($params)
{
// Get values from plugin’s custom fields.
// See description of the 'backend_prod_content' event.
$plugin_fields_values = waRequest::post('myplugin', [], waRequest::TYPE_ARRAY_TRIM);
// Save $plugin_fields_values to some plugin storage.
/** @var shopProduct $product */
$product = $params['product'];
// Or execute public methods of the shopProduct class instance.
}









