3namespace Bitrix\Sale\Delivery\ExtraServices;
5use Bitrix\Main\Localization\Loc;
7Loc::loadMessages(__FILE__);
13 if(isset($structure[
"PARAMS"][
"PRICE"]))
14 $structure[
"PARAMS"][
"ONCHANGE"] = $this->
createJSOnchange($id, $structure[
"PARAMS"][
"PRICE"]);
16 parent::__construct($id, $structure,
$currency, $value);
17 $this->params[
"TYPE"] =
"STRING";
22 return Loc::getMessage(
"DELIVERY_EXTRA_SERVICE_QUANTITY_TITLE");
27 $this->value = intval($value) >= 0 ? intval($value) : 0;
32 return floatval($this->getPrice())*floatval($this->value);
37 return Loc::getMessage(
"DELIVERY_EXTRA_SERVICE_QUANTITY_PRICE");
42 if(!empty(
$params[
"PARAMS"][
"PRICE"]))
47 return '<input type="text" name="'.$name.
'[PARAMS][PRICE]" value="'.$price.
'">'.(
$currency <> '' ?
" (".htmlspecialcharsbx(
$currency).
")" :
"");
52 $this->params[
"ONCHANGE"] = $this->
createJSOnchange($this->
id, $this->getPrice());
59 return "BX.onCustomEvent('onDeliveryExtraServiceValueChange', [{'id' : '".$id.
"', 'value': this.value, 'price': this.value*parseFloat('".$price.
"')}]);";
</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']
const SALE_VALUE_PRECISION