This file contains hidden or 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
| \Bitrix\Main\Loader::includeModule('iblock'); | |
| //@var $connection \Bitrix\Main\Data\Connection | |
| /** @var \Bitrix\Sale\Result $connection */ | |
| $test = \Bitrix\Iblock\SectionTable::getList([ | |
| 'filter' => [ | |
| '=ID' => 529 | |
| ], | |
| 'runtime' => [ | |
| 'SECTION_SECTION' => [ |
This file contains hidden or 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 \Bitrix\Main\EventManager::getInstance()->addEventHandler( | |
| 'sale', 'OnSaleOrderEntitySaved', 'OnStatusChange' | |
| ); | |
| function OnStatusChange(Bitrix\Main\Event $event) { | |
| $groupId = 18; | |
| $couponName = 'ВСЕПО300'; | |
| $order = $event->getParameter("ENTITY"); | |
| $arOrderVals = $order->getFields()->getValues(); |
This file contains hidden or 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
| $Section = []; | |
| $seoProperties = []; | |
| $entity = \Bitrix\Iblock\Model\Section::compileEntityByIblock($arParams["IBLOCK_ID"]); | |
| $Section = $entity::getList(array( | |
| 'select' => array('ID', 'UF_SEO_KEYWORDS', 'UF_SEO_TITLE', 'UF_DESCRIPTION', 'UF_SEO_PAGE_TITLE'), | |
| 'filter' => array( | |
| 'IBLOCK_ID' => $arParams["IBLOCK_ID"], | |
| 'CODE' => $arResult["VARIABLES"]["SECTION_CODE"] | |
| ), | |
| ))->fetch(); |
This file contains hidden or 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
| https://www.modpagespeed.com/doc/config_filters |
This file contains hidden or 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
| [!Wayfinder? &startId=`6` &level=`1` &hereTpl=`innerMenuHere` &outerClass=`inner_menu` &lastClass=`last` !] | |
| <link href="assets/templates/main/img/html5.css" rel="stylesheet" media="all" /> | |
| <style> | |
| .tabs .tab { | |
| display: none; | |
| background: #fff; | |
| } | |
| .tabs .tabs-nav{ |
This file contains hidden or 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
| UPDATE modx_site_content SET uri = REPLACE(uri, ".html", "/") | |
| WHERE uri LIKE "%.html" AND uri_override = 1 |
This file contains hidden or 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
| $rsVals = CSaleOrderPropsValue::GetList(array("SORT" => "ASC"), array("ORDER_ID" => $id, | |
| "ORDER_PROPS_ID" => 22)); | |
| if ($arVals = $rsVals->Fetch()) { | |
| CSaleOrderPropsValue::Update($arVals['ID'], array("VALUE" => $arOrder['ORDER_PROP'][22])); | |
| } else { | |
| $arFieldsOrder = array( | |
| "ORDER_ID" => $id, | |
| "ORDER_PROPS_ID" => 22, | |
| "NAME" => "Пункт самовывоза", |
This file contains hidden or 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 int $orderId | |
| * @param $arOrder | |
| * @param $arParams | |
| */ | |
| function AddGoogleAnalyticsEcommerceCode($orderId, $arOrder, $arParams) | |
| { | |
| global $APPLICATION; |
This file contains hidden or 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
| <div class="tabs"> | |
| <div class="tabs-nav"> | |
| <a href="#tab1">Таб 1</a> | |
| <a href="#tab2">Таб 2</a> | |
| <a href="#tab3">Таб 3</a> | |
| </div> | |
| <div class="tabs-wrapper"> | |
| <div class="tab" id="tab1"> | |
| <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium, sed, corrupti iusto cumque praesentium adipisci hic recusandae error a suscipit earum sit quibusdam saepe ipsa sequi corporis dolore ad tempore!</p> | |
| </div> |