AddEventHandler( "catalog", "OnProductPriceDelete", array( "CProductEventsHandler", "test" ) );
class CProductEventsHandler
{
public function test($ProductID, $arExceptionIDs)
{
if (empty($arExceptionIDs)) {
CPrice::Add(array(
'PRODUCT_ID' => $ProductID,
'CATALOG_GROUP_ID' => 4,
'CURRENCY' => 'RUB',
'PRICE' => 0,
));
}
}
}