This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
AddEventHandler("catalog", "OnCondCatControlBuildList", Array("CatalogCondCtrlUserProps", "GetControlDescr")); | |
class CatalogCondCtrlUserProps extends \CCatalogCondCtrlComplex | |
{ | |
public static function GetClassName() | |
{ | |
return __CLASS__; | |
} | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return array ( | |
/*Отвечает за кодиорвку*/ | |
'utf_mode' => | |
array ( | |
'value' => true, | |
'readonly' => true, | |
), | |
/*Отвечает за кодиорвку по умолчанию*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
$ip = '192.168.11.5'; | |
if($ch = curl_init()){ | |
$url = "http://freegeoip.net/json/". $ip; | |
$headers = array( | |
"Content-type: application/json", | |
"Accept: application/json", | |
"Accept-Language:ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4" | |
); | |
$ch = curl_init(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
CBitrixComponent::includeComponentClass("bitrix:sale.basket.basket"); | |
$basket = new CBitrixBasketComponent(); | |
$basket->onIncludeComponentLang(); | |
$arRes["BASKET_DATA"] = $basket->getBasketItems(); | |
$count = count($arRes["BASKET_DATA"]['ITEMS']['AnDelCanBuy']); | |
$summ = CCurrencyLang::CurrencyFormat($arRes['BASKET_DATA']['allSum'],'RUB',false); |