По материалам сайта Calculate Linux: https://www.calculate-linux.org/main/ru/git
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
| AddEventHandler("sale", "OnOrderNewSendEmail", "bxModifySaleMails"); | |
| //-- Собственно обработчик события | |
| function bxModifySaleMails($orderID, &$eventName, &$arFields) | |
| { | |
| $arOrder = CSaleOrder::GetByID($orderID); | |
| //-- получаем телефоны и адрес | |
| $order_props = CSaleOrderPropsValue::GetOrderProps($orderID); |
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
| <? | |
| AddEventHandler("sale", "OnOrderNewSendEmail", "OnOrderNewSendEmailNewFields"); | |
| function OnOrderNewSendEmailNewFields($orderID, &$eventName, &$arFields){ | |
| $arOrder = CSaleOrder::GetByID($orderID); | |
| $country = ""; | |
| $city = ""; | |
| $address = ""; | |
| $order_props = CSaleOrderPropsValue::GetOrderProps($orderID); | |
| while ($arProps = $order_props->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
| <?php | |
| /** | |
| Custom Query for Sticky Posts only | |
| ---------------------------------- | |
| */ | |
| $sticky = get_option( 'sticky_posts' ); | |
| $args = array( | |
| 'posts_per_page' => 2, // Number of sticky posts to get | |
| 'post__in' => $sticky, | |
| 'ignore_sticky_posts' => 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
| /* | |
| ##Device = Desktops | |
| ##Screen = 1281px to higher resolution desktops | |
| */ | |
| @media (min-width: 1281px) { | |
| //CSS | |