59 if (!isset($this->fields))
61 $pricesList =\CPrice::getListEx(array(), array(
62 "=PRODUCT_ID" => $this->
id,
63 "+<=QUANTITY_FROM" => 1,
64 "+>=QUANTITY_TO" => 1,
65 ),
false,
false, array(
"PRICE",
"CURRENCY",
"CATALOG_GROUP_ID",
"CATALOG_GROUP_CODE"));
66 $this->fields = array();
67 while ($priceInfo = $pricesList->fetch())
69 $priceId = $priceInfo[
"CATALOG_GROUP_ID"];
70 $price = \CCurrencyLang::currencyFormat($priceInfo[
"PRICE"], $priceInfo[
"CURRENCY"],
true);
71 $this->addField($priceId, $priceId, $price);
72 $this->addField($priceInfo[
"CATALOG_GROUP_CODE"], $priceId, $price);
75 return is_array($this->fields);