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
/** | |
* Настройка столбцов списка элементов ИБ в админке инфоблоков | |
* | |
* @param integer $IBlockID — ID инфоблока | |
* @param string $arIBlockListAdminColumns — символьные коды полей и свойств для показа в списке элементов ИБ | |
* @param string $orderByColumnName — наименования поля или свойства по которому нудно отсортировать | |
* @param string $orderDirection - направление сортировки | |
* @param integer $pageSize - количество элементов на страницу | |
* @param boolean $isToAllUsers - значение будет для всех, или для текущего пользователя | |
* @return boolean |
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/header.php"); | |
$APPLICATION->SetTitle("Экспорт списка юзеров и получателей рассылок"); | |
$expSubscribesFile = 'subscribes.csv'; | |
$expUsersFile = 'users.csv'; | |
$strDlmtr = ';'; | |
$lineDlmtr = "\n"; | |
$arUsers = array('#,Фамилия,Имя,Отчество,EMail'); |
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
AddEventHandler("catalog", "OnBeforeProductUpdate", "OnBeforeProductUpdateHandler"); | |
function OnBeforeProductUpdateHandler($id, $arFields) { | |
global $DB; | |
$arMail = array(); | |
// Если кол-во товара больше 0 | |
if ($arFields["QUANTITY"] > 0) { | |
// Есть ли подписчики | |
$tableName = \Bitrix\Catalog\SubscribeTable::getTableName(); |
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
$(document).ready(function () { | |
var phoneInput = $('#cnPhone'); | |
phoneInput.mask('+7(000)-000-0000'); | |
phoneInput.on('focus', function () { | |
$(this).val('+7('); | |
}); | |
jQuery.validator.addMethod('mobileRu', function () { | |
var phRe = /^\+7\(([0-9]{3})\)\-([0-9]{3})\-([0-9]{4})$/; |
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
AddEventHandler("catalog", "OnBeforeProductUpdate", "OnBeforeProductUpdateHandler"); | |
function OnBeforeProductUpdateHandler($id, $arFields) { | |
global $DB; | |
$arMail = array(); | |
// Если кол-во товара больше 0 | |
if ($arFields["QUANTITY"] > 0) { | |
// Есть ли подписчики | |
$tableName = \Bitrix\Catalog\SubscribeTable::getTableName(); |