Skip to content

Instantly share code, notes, and snippets.

@fuckuppro
fuckuppro / index.php
Created July 5, 2016 07:51
Bitrix. New order d7
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");
global $USER;
use Bitrix\Main,
Bitrix\Main\Loader,
Bitrix\Main\Config\Option,
Bitrix\Sale,
Bitrix\Sale\Order,
Bitrix\Sale\DiscountCouponsManager;
@fuckuppro
fuckuppro / init.php
Created June 21, 2016 17:46 — forked from nzy/init.php
CatalogCondCtrlUserProps.php
<?php
AddEventHandler("catalog", "OnCondCatControlBuildList", Array("CatalogCondCtrlUserProps", "GetControlDescr"));
class CatalogCondCtrlUserProps extends \CCatalogCondCtrlComplex
{
public static function GetClassName()
{
return __CLASS__;
}
/**
@fuckuppro
fuckuppro / .settings.php
Created February 18, 2016 10:58
Bitrix(d7). File .settings.php API
<?php
return array (
/*Отвечает за кодиорвку*/
'utf_mode' =>
array (
'value' => true,
'readonly' => true,
),
/*Отвечает за кодиорвку по умолчанию*/