2namespace Sale\Handlers\Delivery\Additional;
4use Bitrix\Main\Config\Option;
14 const EXECUTED_OPTION =
'handlers_dlv_add_action_executed';
26 $result->addError(
new Error(
'Action type type is undefined'));
36 if(self::isExecuted(
$params[
'ID']))
41 case 'TYPE_CACHE_CLEAR':
43 if(!isset(
$params[
'PARAMS'][
'CACHE_TYPE']))
46 if(!$cache = CacheManager::getItem(
$params[
'PARAMS'][
'CACHE_TYPE']))
52 case 'TYPE_LOCATIONS_CHANGED':
62 self::setExecuted(
$params[
'ID']);
71 private static function isExecuted($id)
76 explode(
',',Option::get(
'sale', self::EXECUTED_OPTION,
'')
85 private static function setExecuted($id)
87 if(!self::isExecuted($id))
89 $value = Option::get(
'sale', self::EXECUTED_OPTION,
'');
96 Option::set(
'sale', self::EXECUTED_OPTION, $value);
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']