// mail message
if (empty($arResult["ERROR"]))
{
$strOrderList = "";
$dbBasketItems = CSaleBasket::GetList(
array("PRIORITY" => "ASC"),
array("ORDER_ID" => $arResult["ORDER_ID"]),
false,
false,
array("ID", "NAME", "QUANTITY", "PRICE", "CURRENCY")
);
while ($arBasketItems = $dbBasketItems->Fetch())
{
$ItemsSumm = $arBasketItems["PRICE"] * $arBasketItems["QUANTITY"];
$strOrderList .=
'<table style="background-color: #ececec;">'.
'<tr>'.
'<td style="border: solid 1px #000000; width: 200px;">'.
$arBasketItems["NAME"].
'</td>'.
'<td style="border: solid 1px #000000; width: 200px;">'.
SaleFormatCurrency($arBasketItems["PRICE"], $arBasketItems["CURRENCY"]).
'</td>'.
'<td style="border: solid 1px #000000; width: 200px;">'.
$arBasketItems["QUANTITY"]. GetMessage("SOA_SHT").
'</td>'. '<td style="border: solid 1px #000000; width: 200px;">'.
$ItemsSumm. ' '. GetMessage("CURRENCY").
'</td>'.
'</tr>'.
'</table>';
$strOrderList .= "\n";
}
|