1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
storewithproductsinfo.php
См. документацию.
1<?php
2
3namespace Bitrix\Catalog\Integration\Report\StoreStock\Entity\Store;
4
5use Bitrix\Catalog\Integration\Report\StoreStock\Entity\ProductInfo;
6
8{
9 protected array $productList = [];
10
15 public function getProductList(): array
16 {
17 return $this->productList;
18 }
19
25 public function addProduct(ProductInfo ...$product): void
26 {
27 array_push($this->productList, ...$product);
28 }
29
34 public function getCalculatedSumPrice(): float
35 {
36 $sum = 0.0;
37
39 foreach ($this->getProductList() as $product)
40 {
41 $sum += $product->getPrice() * $product->getQuantity();
42 }
43
44 return $sum;
45 }
46}
$sum
Определения checkout.php:6
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804