47 if (!isset($this->fields))
49 $this->fields = array();
50 $pricesList =\CPrice::getListEx(array(), array(
51 "=PRODUCT_ID" => $this->
id,
52 "+<=QUANTITY_FROM" => 1,
53 "+>=QUANTITY_TO" => 1,
54 ),
false,
false, array(
"PRICE",
"CURRENCY",
"CATALOG_GROUP_ID",
"CATALOG_GROUP_CODE"));
55 $this->fields = array();
56 while ($priceInfo = $pricesList->fetch())
58 $priceId = $priceInfo[
"CATALOG_GROUP_ID"];
59 $price = \CCurrencyLang::currencyFormat($priceInfo[
"PRICE"], $priceInfo[
"CURRENCY"],
true);
60 $this->fields[$priceId][] = $price;
61 $this->addField($priceId, $priceId, $price);
62 $this->addField($priceInfo[
"CATALOG_GROUP_CODE"], $priceId, $price);
65 return is_array($this->fields);