Skip to content

Instantly share code, notes, and snippets.

@yos-virtus
yos-virtus / process_large_xml.php
Last active February 16, 2021 07:31
Read large xml files with php
<?php
// Assuming we have the following xml structure:
//<redords>
// <record>
// <field1>Lorem ipsum</field1>
// <field2>Doler</field2>
// <field3>Sit amet</field3>
// </record>
// ...
@dmitryburov
dmitryburov / bitrix_custom_discount_rules.php
Last active March 17, 2023 13:18
Интеграция через событие (OnCondSaleControlBuildList) кастомных условий для каталога или корзины 1С-Битрикс(>16.x). Результат - http://prntscr.com/mnpcop
<?php
namespace Burov\Handlers;
use Bitrix\Main\Loader;
use Bitrix\Sale\Location;
use Bitrix\Main\GroupTable;
/**
@aclips
aclips / add_tasks_checklist.php
Last active August 24, 2023 19:40
Bitrix24 добавление чеклиста в задачу
<?php
use Bitrix\Main\Loader;
use Bitrix\Tasks\CheckList\Task\TaskCheckListFacade;
Loader::IncludeModule('tasks');
$taskId = 104;
$userId = 1;