let basket_id = $("div[id*='basket_count_-']").attr("id");
<tbody>
<tr>
<th scope="row">0</th>
<td>Заправка для риса 0,47 л.</td>
<td>60</td>
<td><input value="60" min="60" max="500" type="number" data-id-product="3739" data-min-product="60" class="basket_count" id="basket_count_3739"></td>
<td>1700</td>
<td id="sum-personal-basket-3739">102000</td>
</tr>
<tr>
<th scope="row">1</th>
<td>Заправка для риса 0,24 л.</td>
<td>50</td>
<td><input value="50" min="50" max="500" type="number" data-id-product="3738" data-min-product="50" class="basket_count" id="basket_count_3738"></td>
<td>1500</td>
<td id="sum-personal-basket-3738">75000</td>
</tr>
</tbody>
Oct 28 13:50:51 bitrix372 apache_error[100036]: mona-liza.com [Fri Oct 28 13:50:51 2022] [error] [pid 85513] sapi_apache2.c(349): [client 176.115.199.18:56490] PHP Fatal error: Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0
Oct 28 13:52:45 bitrix372 apache_error[100036]: mona-liza.com [Fri Oct 28 13:52:45 2022] [error] [pid 64355] sapi_apache2.c(349): [client 176.115.199.18:56144] PHP Fatal error: Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0
Oct 28 14:30:59 bitrix372 apache_error[100036]: mona-liza.com [Fri Oct 28 14:30:59 2022] [error] [pid 74030] sapi_apache2.c(349): [client 217.107.97.213:54712] PHP Fatal error: Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0
// bitrix/.settings.php
return [
//...
'session' => [
'value' => [
'mode' => 'default',
'handlers' => [
'general' => [
'type' => 'file',
]
],
]
]
];
$pdf = $dompdf->output();
$file = file_put_contents($_SERVER['DOCUMENT_ROOT'].'/upload/pdf/Счет компании '.$company_name.'от '.date('d.m.Y H:i').'.pdf', $pdf);
$fileMake = CFile::MakeFileArray(
$_SERVER['DOCUMENT_ROOT'].'/upload/pdf/Счет компании '.$company_name.'от '.date('d.m.Y H:i').'.pdf',
false,
false,
''
);
$fileSave = CFile::SaveFile(
$fileMake,
'/pdf',
false,
false
);
\Bitrix\Main\Mail\Event::sendImmediate([
'EVENT_NAME' => 'SIMPLE',
'LID' => 's1',
'LANGUAGE_ID' => 'ru',
'MESSAGE_ID' => 84,
'C_FIELDS' => [
'EMAIL' => '0000@yandex.ru',
'SUBJECT' => 'Счет компании '. $company_name .' | Оформлен заказ с сайта',
'BODY' => implode('<br/>', $body),
],
'FILE' => array($fileSave),
]);