2namespace Bitrix\Sale\Internals;
27 isset($this->quantities[
$code])
28 && is_array($this->quantities[
$code])
31 return array_sum($this->quantities[
$code]);
45 if (isset($this->quantities[
$code][$storeId]))
47 return $this->quantities[
$code][$storeId];
57 public function set(
$code, $quantity)
61 if (!isset($this->quantities[
$code][$storeId]))
63 $this->quantities[
$code][$storeId] = 0;
66 $this->quantities[
$code][$storeId] = $quantity;
75 if (!isset($this->quantities[
$code][$storeId]))
77 $this->quantities[
$code][$storeId] = 0;
80 $this->quantities[
$code][$storeId] = $quantity;
88 if (isset($this->quantities[
$code]))
90 unset($this->quantities[
$code]);
99 if (isset($this->quantities[
$code][$storeId]))
101 unset($this->quantities[
$code][$storeId]);
111 if (!array_key_exists(
$code, $this->items))
113 $this->items[
$code] = $item;
123 foreach ($this->quantities as
$code => $item)
136 return $this->quantities;
static getDefaultStoreId()
deleteByStore($code, $storeId)
getByStore($code, $storeId)
setByStore($code, $storeId, $quantity)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
if(!is_null($config))($config as $configItem)(! $configItem->isVisible()) $code