Для замены авторизации в решениях Концепт. Феникс необходимо выполнить следующие действия
Для замены вывода в модальном окне необходимо внести изменения в шаблон auth
компонента system.auth.form
который находится в шаблоне сайта.
Путь до файла может быть примерно таким - bitrix/templates/concept_phoenix_s1/components/bitrix/system.auth.form/auth/template.php
Делаем копию файла, чтоб в случае ошибки вернуть все в прежнее состояние. Далее добавляем код замены компонента только при условии что модуль включен для текущего сайта, если отключен будет выводится прежняя форма входа.
Содержимое файла должно стать примерно таким
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
<?$this->SetFrameMode(true);?>
<?//if($arResult["FORM_TYPE"] == "login"):?>
<?global $PHOENIX_TEMPLATE_ARRAY;?>
<?
$picture = (strlen($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["PERSONAL"]["ITEMS"]["FORM_PIC"]["VALUE"]))? true : false;
?>
<div class="phx-modal-dialog" data-target = "auth-modal-dialog">
<div class="dialog-content">
<a class="close-phx-modal-dialog" data-target = "auth-modal-dialog"></a>
<?
// начало ---
/**
* @var \CMain $APPLICATION
* @var \CBitrixComponent $component
*/
$bSkip = false;
if (\Bitrix\Main\Loader::includeModule('bxmaker.authuserphone')) {
$oManager = \BXmaker\AuthUserPhone\Manager::getInstance();
// если модуль для текущего сайта включен
if ($oManager->isEnabled()) {
$APPLICATION->IncludeComponent(
$oManager->param()->getDefaultComponent(),
'',
[
'COMPOSITE_FRAME_MODE' => 'N',
'RAND_STRING' => 'ajax'
]
);
$bSkip = true;
}
?>
<style>
.bxmaker-authuserphone-enter,
.bxmaker-authuserphone-simple {
margin: 0 auto;
display: block;
box-shadow: none;
}
</style>
<?
}
if (!$bSkip) {
// конец ---
?>
<div class="auth-dialog-form <?=($picture)? "with-pic" : "";?>">
<div class="row no-gutters">
<?if($picture):?>
<div class="col-md-7 hidden-sm hidden-xs picture" style="background-image: url(<?=$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["PERSONAL"]["ITEMS"]["FORM_PIC"]["SETTINGS"]["SRC"]?>);"></div>
<?endif;?>
<div class="<?=($picture)? "col-md-5": "";?> col-12">
<form class="form auth" action="#">
<div class="title-form main1">
<?=$PHOENIX_TEMPLATE_ARRAY["MESS"]["PERSONAL_LOGIN_TITLE"]?>
</div>
<?if(strlen($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["PERSONAL"]["ITEMS"]["FORM_AUTH_SUBTITLE"]["VALUE"])):?>
<div class="subtitle-form"><?=$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["PERSONAL"]["ITEMS"]["FORM_AUTH_SUBTITLE"]["~VALUE"]?></div>
<?endif;?>
<div class="inputs-block">
<div class="input">
<div class="bg"></div>
<span class="desc"><?=$PHOENIX_TEMPLATE_ARRAY["MESS"]["PERSONAL_LOGIN_INPUT"]?></span>
<input class='focus-anim require' name="auth-login" type="text" value="" />
</div>
<div class="input">
<div class="bg"></div>
<span class="desc"><?=$PHOENIX_TEMPLATE_ARRAY["MESS"]["PERSONAL_PASSWORD_INPUT"]?></span>
<input class='focus-anim require' name="auth-password" type="password" />
</div>
<div class="errors"></div>
<div class="input-btn">
<div class="load">
<div class="xLoader form-preload"><div class="audio-wave"><span></span><span></span><span></span><span></span><span></span></div></div>
</div>
<button class="button-def main-color big active <?=$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["DESIGN"]["ITEMS"]['BTN_VIEW']['VALUE']?> auth-submit" name="form-submit" type="button"><?=$PHOENIX_TEMPLATE_ARRAY["MESS"]["PERSONAL_BTN_ENTER"]?></button>
</div>
</div>
<div class="input txt-center">
<a class="forgot" href="<?=$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["PERSONAL"]["ITEMS"]["FORGOT_PASSWORD_URL"]["VALUE"]?>"><span class="bord-bot"><?=$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["PERSONAL"]["ITEMS"]["FORGOT_PASSWORD_URL"]["DESCRIPTION"]?></span></a>
</div>
<?/*<div class="soc-enter">
<div class="soc-enter-title">
<div class="soc-enter-line"></div>
<div class="soc-enter-text"><?=$PHOENIX_TEMPLATE_ARRAY["MESS"]["PERSONAL_AUTH_FORM_SOC"]?></div>
</div>
<div class="soc-enter-items">
<a href="#" class="soc-enter-item"></a>
<a href="#" class="soc-enter-item"></a>
</div>
</div>*/?>
</form>
<div class="register row no-margin">
<div class="col-12">
<a href="<?=$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["PERSONAL"]["ITEMS"]["REGISTER_URL"]["VALUE"]?>"><span class="bord-bot"><?=$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["PERSONAL"]["ITEMS"]["REGISTER_URL"]["DESCRIPTION"]?></span></a>
</div>
</div>
</div>
</div>
</div>
<?
// начало ---
}
//конец ---
?>
</div>
</div>
<?//endif;?>
Для замены комопнента, необходимо также сделать копию файла и затем править оригинальный - /auth/index.php
Привести ее нужно примерно к следующему виду
<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetTitle("Авторизация");
?>
<?
//начало
$bSkip = false;
if (\Bitrix\Main\Loader::includeModule('bxmaker.authuserphone')) {
$oManager = \BXmaker\AuthUserPhone\Manager::getInstance();
// если модуль для текущего сайта включен
if ($oManager->isEnabled()) {
?>
<?global $PHOENIX_TEMPLATE_ARRAY;?>
<div class="page-header cover parent-scroll-down
<?=$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["DESIGN"]["ITEMS"]["HEAD_TONE"]["VALUE"]?>
phoenix-firsttype-<?=$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["MENU"]["ITEMS"]["MENU_TYPE"]["VALUE"]?>
">
<div class="shadow-tone <?=$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["DESIGN"]["ITEMS"]["HEAD_TONE"]["VALUE"]?>"></div>
</div>
<?
$APPLICATION->IncludeComponent(
$oManager->param()->getDefaultComponent(),
'',
[
'COMPOSITE_FRAME_MODE' => 'N',
'RAND_STRING' => 'ajax'
]
);
$bSkip = true;
}
?>
<style>
.bxmaker-authuserphone-enter,
.bxmaker-authuserphone-simple {
margin: 0 auto;
display: block;
box-shadow: none;
}
</style>
<?
}
if (!$bSkip) {
// конец
?>
<?$APPLICATION->IncludeComponent(
"bitrix:system.auth.form",
"auth2",
array(
"COMPONENT_TEMPLATE" => "auth",
"PROFILE_URL" => "/personal/",
"SHOW_ERRORS" => "N",
"COMPOSITE_FRAME_MODE" => "N"
),
false
);?>
<?
//начало
}
//конец
?>
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>
Для замены формы на странице корзины и оформления заказа необходимо перейти на страницу корзины, перейти в режим правки и скопировать шаблон компонента в шаблон сайта с другим названием, например - bxmaker.authuserphone
.
После копирования шаблона может быть 404 ошибка на странице /basket/order/.В этом случае в корне сайта в файл urlrewrite.php добавляем запись
array (
'CONDITION' => '#^/basket/order/#',
'RULE' => '',
'ID' => 'concept:phoenix.basket',
'PATH' => '/basket/index.php',
'SORT' => 100,
),
Затем внести изменения в новый шаблон компонента, который будет находиться по адресу примерно -
/bitrix/templates/concept_phoenix_s1/components/concept/phoenix.basket/bxmaker.authuserphone
Внести нужно изменения в файлы
По итогу содержимое файлов должно быть примерно таким
<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
/** @var array $arParams */
/** @var array $arResult */
/** @global CMain $APPLICATION */
/** @global CUser $USER */
/** @global CDatabase $DB */
/** @var CBitrixComponentTemplate $this */
/** @var string $templateName */
/** @var string $templateFile */
/** @var string $templateFolder */
/** @var string $componentPath */
/** @var CBitrixBasketComponent $component */
$this->setFrameMode(true);
?>
<?
global $PHOENIX_TEMPLATE_ARRAY;
$showbasketProducts = ($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["CART_ON"]["VALUE"]["ACTIVE"]=="Y") ? true: false;
$orderConfirm = false;
if($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["ORDER_PAGES"]["VALUE"]=="one")
$orderConfirm = isset($_REQUEST["ORDER_ID"]) && strlen($_REQUEST["ORDER_ID"])>0;
$showBuyBtn = ($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["FAST_ORDER_IN_BASKET_ON"]["VALUE"]["ACTIVE"] == "Y") ? true : false;
if(is_array($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]['PERSON_TYPE_PROPS']['ITEMS'][$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["PERSON_TYPE"]["CUR_VALUE"]]["VALUE"])&& !in_array('Y', $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]['PERSON_TYPE_PROPS']['ITEMS'][$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["PERSON_TYPE"]["CUR_VALUE"]]["VALUE"]))
$showBuyBtn = false;
$showBuyBtnOnly = false;
if($showBuyBtn)
$showBuyBtnOnly = ($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["FAST_ORDER_IN_BASKET_ONLY"]["VALUE"]["ACTIVE"] == "Y") ? true : false;
$user_registration = \Bitrix\Main\Config\Option::get("main", "new_user_registration", "");
$email_confirmation = \Bitrix\Main\Config\Option::get("main", "new_user_registration_email_confirmation", "");
$email_required = \Bitrix\Main\Config\Option::get("main", "new_user_email_required", "");
$bConfirmReq = ($email_confirmation == "Y" && $email_required == "Y");
$showAuthForm = (($user_registration == "N" || $bConfirmReq) && !$USER->IsAuthorized());
?>
<div class=
"
page-header
sections
cover
parent-scroll-down
<?=$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["DESIGN"]["ITEMS"]["HEAD_TONE"]["VALUE"]?>
phoenix-firsttype-<?=$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["MENU"]["ITEMS"]["MENU_TYPE"]["VALUE"]?>
padding-bottom-section
basket-order
"
<?if(strlen($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["CART_PAGE_HEADBG"]["VALUE"])>0):?>
<?$bg_pic = CFile::ResizeImageGet($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["CART_PAGE_HEADBG"]["VALUE"], array('width'=>1600, 'height'=>1200), BX_RESIZE_IMAGE_PROPORTIONAL, false);?>
style="background-image: url(<?=$bg_pic["src"]?>);"
<?endif;?>
>
<div class="shadow-tone <?=$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["DESIGN"]["ITEMS"]["HEAD_TONE"]["VALUE"]?>"></div>
<div class="top-shadow"></div>
<div class="container z-i-9">
<?if(!$orderConfirm):?>
<div class="ajax-back-page"></div>
<?endif;?>
<div class="row">
<div class="col part part-left align-self-center">
<div class="head">
<div class="title main1"><h1>
<?$APPLICATION->ShowTitle(false);?>
</h1>
</div>
</div>
</div>
<?if($showbasketProducts):?>
<div class="col-auto part part-right d-none d-sm-block">
<?
if(strlen($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["POLITIC"]["ITEMS"]['AGREEMENTS']["VALUE"])>0 && $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["POLITIC"]["ITEMS"]['AGREEMENTS']["VALUE"] != "N")
$par_condition = "class='basket-page-header-btn call-modal callagreement d-none' data-call-modal='agreement".$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["POLITIC"]["ITEMS"]['AGREEMENTS']["VALUE"]."'";
if(strlen($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]['CART_LINK_CONDITIONS']["VALUE"])>0)
$par_condition = "class='basket-page-header-btn d-none' target='_blank' href='".$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]['CART_LINK_CONDITIONS']["VALUE"]."' ";
?>
<?if(isset($par_condition)):?>
<a <?=$par_condition?>>
<span><?=(strlen($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]['CART_BTN_NAME_CONDITIONS']["VALUE"])>0)? $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]['CART_BTN_NAME_CONDITIONS']["VALUE"] : $PHOENIX_TEMPLATE_ARRAY["MESS"]["CART_DELIVERY"];?></span>
</a>
<?endif;?>
<div class="basket-page-header-btn-unset click_cart clear-cart d-none clear-basket-node-control" data-toggle="tooltip" data-placement="top" title="<?=$PHOENIX_TEMPLATE_ARRAY["MESS"]["CART_CLEAR"]?>"></div>
</div>
<?endif;?>
<?if(!$orderConfirm):?>
<div class="col-12 wr-order-btn d-md-none d-none clear-basket-node-control">
<?if(!$showBuyBtnOnly):?>
<?if($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["ORDER_PAGES"]["VALUE"]=="one"):?>
<a class="main-color button-def <?=$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["DESIGN"]["ITEMS"]["BTN_VIEW"]["VALUE"]?> big scroll" href="#bx-soa-order">
<?echo $PHOENIX_TEMPLATE_ARRAY["MESS"]["ORDER_STEP_TO_ORDER"];?>
</a>
<?else:?>
<a class="main-color button-def <?=$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["DESIGN"]["ITEMS"]["BTN_VIEW"]["VALUE"]?> big" href="<?=CPhoenix::getBasketUrl(SITE_DIR, $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["BASKET_URL"]["VALUE"])?>order/">
<?echo $PHOENIX_TEMPLATE_ARRAY["MESS"]["ORDER_STEP_TO_ORDER"];?>
</a>
<?endif;?>
<?endif;?>
<?if($showBuyBtn):?>
<a class="sec-b callFastOrder callDialog">
<span class="bord-bot">
<?= $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["CART_BTN_FAST_ORDER_NAME_IN_BASKET"]["~VALUE"];?>
</span>
</a>
<?endif;?>
</div>
<?endif?>
</div>
</div>
</div>
<div class="container">
<?
$showbasketProducts = ($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["CART_ON"]["VALUE"]["ACTIVE"]=="Y") ? true: false;
$colsLeft = "col-lg-8 col-12";
$colsRight = "col-lg-4 col-12";
if(!$showbasketProducts)
{
$colsLeft = "col-12";
$colsRight = "d-none";
}
?>
<?if($orderConfirm):?>
<?
$basket_url = CPhoenix::getBasketUrl(SITE_DIR, $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["BASKET_URL"]["VALUE"]);
?>
<div class="block-move-to-up order-page"></div>
<div class="basket-page-container">
<?
$APPLICATION->IncludeComponent("bitrix:sale.order.ajax",
"basket_order",
Array(
"PAY_FROM_ACCOUNT" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["PAY_FROM_ACCOUNT"]["VALUE"]["ACTIVE"],
"ONLY_FULL_PAY_FROM_ACCOUNT" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["ONLY_FULL_PAY_FROM_ACCOUNT"]["VALUE"]["ACTIVE"],
"TEMPLATE_LOCATION" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["TEMPLATE_LOCATION"]["VALUE"],
"DELIVERY_TO_PAYSYSTEM" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["DELIVERY_TO_PAYSYSTEM"]["VALUE"],
"BASKET_POSITION" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["BASKET_POSITION"]["VALUE"],
"SHOW_COUPONS" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["COUPON"]["VALUE"]["ACTIVE"],
"SHOW_COUPONS_BASKET" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["COUPON"]["VALUE"]["ACTIVE"],
"SHOW_COUPONS_DELIVERY" => "Y",
"SHOW_COUPONS_PAY_SYSTEM" => "Y",
"ACTION_VARIABLE" => "soa-action",
"ADDITIONAL_PICT_PROP_15" => "-",
"ADDITIONAL_PICT_PROP_8" => "-",
"ALLOW_APPEND_ORDER" => "Y",
"ALLOW_AUTO_REGISTER" => "Y",
"ALLOW_NEW_PROFILE" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["ALLOW_NEW_PROFILE"]["VALUE"]["ACTIVE"],
"ALLOW_USER_PROFILES" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["ALLOW_USER_PROFILES"]["VALUE"]["ACTIVE"],
"BASKET_IMAGES_SCALING" => "adaptive",
"COMPATIBLE_MODE" => "Y",
"COMPOSITE_FRAME_MODE" => "N",
"COMPOSITE_FRAME_TYPE" => "AUTO",
"DELIVERIES_PER_PAGE" => "9",
"DELIVERY_FADE_EXTRA_SERVICES" => "N",
"DELIVERY_NO_AJAX" => "N",
"DELIVERY_NO_SESSION" => "Y",
"DISABLE_BASKET_REDIRECT" => "Y",
"EMPTY_BASKET_HINT_PATH" => SITE_DIR."catalog/",
"HIDE_ORDER_DESCRIPTION" => "N",
"PATH_TO_AUTH" => SITE_DIR."auth/",
"PATH_TO_BASKET" => $basket_url,
"PATH_TO_PAYMENT" => $basket_url."payment/",
"PATH_TO_PERSONAL" => SITE_DIR."personal/orders/",
"PAY_SYSTEMS_PER_PAGE" => "9",
"PICKUPS_PER_PAGE" => "5",
"PICKUP_MAP_TYPE" => "yandex",
"PRODUCT_COLUMNS_HIDDEN" => "",
"PRODUCT_COLUMNS_VISIBLE" => array(
0 => "PREVIEW_PICTURE",
1 => "PROPS",
),
"SEND_NEW_USER_NOTIFY" => "N",
"SERVICES_IMAGES_SCALING" => "adaptive",
"SET_TITLE" => "Y",
"SHOW_BASKET_HEADERS" => "N",
"SHOW_DELIVERY_INFO_NAME" => "Y",
"SHOW_DELIVERY_LIST_NAMES" => "Y",
"SHOW_DELIVERY_PARENT_NAMES" => ($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["SHOW_DELIVERY_PARENT_NAMES"]["VALUE"]["ACTIVE"] === "Y")?"Y":"N",
"SHOW_MAP_IN_PROPS" => "N",
"SHOW_NEAREST_PICKUP" => "N",
"SHOW_NOT_CALCULATED_DELIVERIES" => "L",
"SHOW_ORDER_BUTTON" => "always",
"SHOW_PAY_SYSTEM_INFO_NAME" => "Y",
"SHOW_PAY_SYSTEM_LIST_NAMES" => "Y",
"SHOW_PICKUP_MAP" => "Y",
"SHOW_STORES_IMAGES" => "Y",
"SHOW_TOTAL_ORDER_BUTTON" => "Y",
"SHOW_VAT_PRICE" => "Y",
"SKIP_USELESS_BLOCK" => "Y",
"SPOT_LOCATION_BY_GEOIP" => "Y",
"TEMPLATE_THEME" => "blue",
"USER_CONSENT" => "N",
"USER_CONSENT_ID" => "0",
"USER_CONSENT_IS_CHECKED" => "Y",
"USER_CONSENT_IS_LOADED" => "N",
"USE_CUSTOM_ADDITIONAL_MESSAGES" => "N",
"USE_CUSTOM_ERROR_MESSAGES" => "N",
"USE_CUSTOM_MAIN_MESSAGES" => "N",
"USE_ENHANCED_ECOMMERCE" => "N",
"USE_PHONE_NORMALIZATION" => "Y",
"USE_PRELOAD" => "Y",
"USE_PREPAYMENT" => "N",
"USE_YM_GOALS" => "N",
"COMPONENT_TEMPLATE" => "bootstrap_v4",
"PROPS_FADE_LIST_1" => "",
"PROPS_FADE_LIST_2" => "",
),
$component
);
?>
</div>
<?
$goalsScript = CPhoenix::getGoalsScriptsHTML(SITE_ID,
array(
"YAGOAL"=> $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SERVICES"]["ITEMS"]["METRIKA_GOAL_ORDER"]['VALUE'],
"GA_CAT"=> $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SERVICES"]["ITEMS"]["GOOGLE_CATEGORY_ORDER"]['VALUE'],
"GA_ACT"=> $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SERVICES"]["ITEMS"]["GOOGLE_ACTION_ORDER"]['VALUE'],
"GTM_EVT"=> $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SERVICES"]["ITEMS"]["GTM_EVENT_ORDER"]['VALUE'],
"GTM_CAT"=> $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SERVICES"]["ITEMS"]["GTM_CATEGORY_ORDER"]['VALUE'],
"GTM_ACT"=> $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SERVICES"]["ITEMS"]["GTM_ACTION_ORDER"]['VALUE'],
)
);
//CPhoenix::phoenixOptionsValues(SITE_ID, array("services"));
if(strlen($PHOENIX_TEMPLATE_ARRAY["LAZY_SCRIPTS"])>0):?>
<script>
$(window).on("load", function()
{
var timerService = setTimeout(function()
{
$("body").append('<?=str_replace(array("/","'", "\r\n"), array("\/", '"', ""), $goalsScript)?>');
clearTimeout(timerService);
}, (<?=intval($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SERVICES"]["ITEMS"]["LAZY_SERVICE_TIME"]["VALUE"])?>+1) * 1000);
});
</script>
<?
else:
echo $goalsScript;
endif;
?>
<?else:?>
<input type="hidden" id = "basketPage" value = "basket_page">
<?if($showAuthForm):?>
<div class="cabinet-wrap">
<div class="block-move-to-up">
<div class="auth-block">
<div class="row">
<div class="col-lg-6 col-md-7 col-12">
<?
// начало ---
/**
* @var \CMain $APPLICATION
* @var \CBitrixComponent $component
*/
$bSkip = false;
if (\Bitrix\Main\Loader::includeModule('bxmaker.authuserphone')) {
$oManager = \BXmaker\AuthUserPhone\Manager::getInstance();
// если модуль для текущего сайта включен
if ($oManager->isEnabled()) {
$APPLICATION->IncludeComponent(
$oManager->param()->getDefaultComponent(),
'',
[
'COMPOSITE_FRAME_MODE' => 'N',
'RAND_STRING' => 'ajax'
]
);
$bSkip = true;
}
?>
<style>
.bxmaker-authuserphone-enter,
.bxmaker-authuserphone-simple {
margin: 0 auto;
display: block;
box-shadow: none;
}
</style>
<?
}
if (!$bSkip) {
// конец ---
?>
<form class="form auth" action="#">
<div class="row inputs-block">
<div class="col-12 title-form main1">
<?=$PHOENIX_TEMPLATE_ARRAY["MESS"]["PERSONAL_LOGIN_TITLE"]?>
</div>
<div class="col-12">
<div class="input">
<div class="bg"></div>
<span class="desc"><?=$PHOENIX_TEMPLATE_ARRAY["MESS"]["PERSONAL_LOGIN_INPUT"]?></span>
<input class='focus-anim require' name="auth-login" type="text" value="" />
</div>
<div class="input">
<div class="bg"></div>
<span class="desc"><?=$PHOENIX_TEMPLATE_ARRAY["MESS"]["PERSONAL_PASSWORD_INPUT"]?></span>
<input class='focus-anim require' name="auth-password" type="password" />
</div>
<div class="errors"></div>
</div>
<div class="col-12">
<div class="input-btn">
<div class="load">
<div class="xLoader form-preload"><div class="audio-wave"><span></span><span></span><span></span><span></span><span></span></div></div>
</div>
<button class="button-def main-color big active <?=$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["DESIGN"]["ITEMS"]['BTN_VIEW']['VALUE']?> auth-submit" name="form-submit" type="button"><?=$PHOENIX_TEMPLATE_ARRAY["MESS"]["PERSONAL_BTN_ENTER"]?></button>
</div>
</div>
</div>
<div class="row links-block">
<div class="col-sm-6 col-12">
<a href="<?=$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["PERSONAL"]["ITEMS"]["FORGOT_PASSWORD_URL"]["VALUE"]?>"><?=$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["PERSONAL"]["ITEMS"]["FORGOT_PASSWORD_URL"]["DESCRIPTION"]?></a>
</div>
<div class="col-sm-6 col-12">
<a href="<?=$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["PERSONAL"]["ITEMS"]["REGISTER_URL"]["VALUE"]?>"><?=$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["PERSONAL"]["ITEMS"]["REGISTER_URL"]["DESCRIPTION"]?></a>
</div>
</div>
</form>
<?
// начало ---
}
//конец ---
?>
</div>
<div class="col-lg-6 col-md-5 hidden-xs">
<div class="reg">
<div class="reg-comment">
<?=$PHOENIX_TEMPLATE_ARRAY["MESS"]["SALE_ORDER_ALERT"]?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?endif;?>
<div class="basket-style page">
<div class="row body static">
<div class="left-p <?=$colsLeft?>">
<div class="body-basket-ajax-left">
<?$APPLICATION->IncludeComponent("bitrix:sale.basket.basket",
"basket.items",
Array(
"ACTION_VARIABLE" => "basketAction",
"ADDITIONAL_PICT_PROP_15" => "-",
"ADDITIONAL_PICT_PROP_8" => "-",
"AUTO_CALCULATION" => "Y",
"BASKET_IMAGES_SCALING" => "adaptive",
"COLUMNS_LIST_EXT" => array(
0 => "PREVIEW_PICTURE",
1 => "DISCOUNT",
2 => "DELETE",
3 => "DELAY",
4 => "TYPE",
5 => "SUM",
),
"COLUMNS_LIST_MOBILE" => array(
0 => "PREVIEW_PICTURE",
1 => "DISCOUNT",
2 => "DELETE",
3 => "DELAY",
4 => "TYPE",
5 => "SUM",
),
"COMPATIBLE_MODE" => "Y",
"CORRECT_RATIO" => "Y",
"DEFERRED_REFRESH" => "N",
"DISCOUNT_PERCENT_POSITION" => "bottom-right",
"DISPLAY_MODE" => "compact",
"EMPTY_BASKET_HINT_PATH" => "/",
"GIFTS_BLOCK_TITLE" => "Выберите один из подарков",
"GIFTS_CONVERT_CURRENCY" => "N",
"GIFTS_HIDE_BLOCK_TITLE" => "N",
"GIFTS_HIDE_NOT_AVAILABLE" => "N",
"GIFTS_MESS_BTN_BUY" => "Выбрать",
"GIFTS_MESS_BTN_DETAIL" => "Подробнее",
"GIFTS_PAGE_ELEMENT_COUNT" => "4",
"GIFTS_PLACE" => "BOTTOM",
"GIFTS_PRODUCT_PROPS_VARIABLE" => "prop",
"GIFTS_PRODUCT_QUANTITY_VARIABLE" => "quantity",
"GIFTS_SHOW_DISCOUNT_PERCENT" => "Y",
"GIFTS_SHOW_OLD_PRICE" => "N",
"GIFTS_TEXT_LABEL_GIFT" => "Подарок",
"HIDE_COUPON" => "N",
"LABEL_PROP" => "",
"OFFERS_PROPS" => "",
"PATH_TO_ORDER" => SITE_DIR."order/",
"PRICE_DISPLAY_MODE" => "Y",
"PRICE_VAT_SHOW_VALUE" => "Y",
"PRODUCT_BLOCKS_ORDER" => "props,sku,columns",
"QUANTITY_FLOAT" => "N",
"SET_TITLE" => "N",
"SHOW_DISCOUNT_PERCENT" => "Y",
"SHOW_FILTER" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["BASKET_FILTER"]["VALUE"]["ACTIVE"],
"SHOW_RESTORE" => "Y",
"TEMPLATE_THEME" => "blue",
"TOTAL_BLOCK_DISPLAY" => array(
0 => "top",
),
"USE_DYNAMIC_SCROLL" => "Y",
"USE_ENHANCED_ECOMMERCE" => "N",
"USE_GIFTS" => "Y",
"USE_PREPAYMENT" => "N",
"USE_PRICE_ANIMATION" => "Y",
),
$component
);?>
</div>
<?
if( !empty($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]['ADVS']['VALUE']) )
{
CPhoenix::getIblockIDs(array("concept_phoenix_advantages_".SITE_ID));
$arFilter = Array("IBLOCK_ID"=> $PHOENIX_TEMPLATE_ARRAY["ITEMS"]['ADVS']["IBLOCK_ID"], "ID" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]['ADVS']['VALUE'], "ACTIVE_DATE"=>"Y", "ACTIVE"=>"Y");
$res = CIBlockElement::GetList(Array(), $arFilter, false);
$arSizes = Array(
"small" => array(
"width" => 80,
"height" => 80
),
"big" => array(
"width" => 200,
"height" => 200
),
);
while($ob = $res->GetNextElement())
{
$arFields = array();
$arFields = $ob->GetFields();
$arFields["PROPERTIES"] = $ob->GetProperties();
if(!strlen($arFields["PROPERTIES"]["SIZE"]["VALUE_XML_ID"]))
$arFields["PROPERTIES"]["SIZE"]["VALUE_XML_ID"] = "small";
$arFields["PREVIEW_PICTURE_SRC"] = "";
$file = array();
if($arFields["PREVIEW_PICTURE"])
{
$file = CFile::ResizeImageGet($arFields["PREVIEW_PICTURE"],
$arSizes[$arFields["PROPERTIES"]["SIZE"]["VALUE_XML_ID"]],
BX_RESIZE_IMAGE_PROPORTIONAL, false, Array(), false, $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["DESIGN"]["ITEMS"]["PICTURES_QUALITY"]["VALUE"]);
$arFields["PREVIEW_PICTURE_SRC"] = $file["src"];
}
$arAdvantages["ITEMS"][] = $arFields;
}
$arAdvantages["COUNT"] = (!empty($arAdvantages["ITEMS"]))?count($arAdvantages["ITEMS"]):0;
$arAdvantages["CLASS_COLS"] = "col-md-4 col-12";
if($arAdvantages["COUNT"]%3 == 0)
$arAdvantages["CLASS_COLS"] = "col-md-4 col-12";
if($arAdvantages["COUNT"] == 2)
$arAdvantages["CLASS_COLS"] = "col-md-6 col-12";
if($arAdvantages["COUNT"] == 1)
$arAdvantages["CLASS_COLS"] = "col-12";
}
?>
<?if( !empty($arAdvantages["ITEMS"]) && $showbasketProducts):?>
<div class="cart-advantage hidden d-none <?=(intval($PHOENIX_TEMPLATE_ARRAY["ORDER"]["BASKET_PRODUCTS_COUNT"]) > 0 || intval($PHOENIX_TEMPLATE_ARRAY["ORDER"]["BASKET_DELAY_COUNT"]) > 0)?"d-sm-block":""?>">
<div class="row">
<?foreach($arAdvantages["ITEMS"] as $key=>$arItems):?>
<div class="<?=$arAdvantages["CLASS_COLS"]?>">
<table class='size-<?=($arItems["PROPERTIES"]["SIZE"]["VALUE_XML_ID"])?>'>
<tr>
<td class="img">
<?if(strlen($arItems["PREVIEW_PICTURE_SRC"])):?>
<img src="<?=$arItems["PREVIEW_PICTURE_SRC"]?>" alt="<?=$arItems["NAME"]?>" class="d-block mx-auto img-fluid" />
<?elseif(strlen($arItems["PROPERTIES"]["ICON"]["VALUE"]) && $arItems["PREVIEW_PICTURE"] <= 0):?>
<div class="icon">
<i class="<?=$arItems["PROPERTIES"]["ICON"]["VALUE"]?>" <?if(strlen($arItems["PROPERTIES"]["ICON"]["DESCRIPTION"]) > 0):?>style="color: <?=$arItems["PROPERTIES"]["ICON"]["DESCRIPTION"]?>;"<?endif;?>></i>
</div>
<?else:?>
<div class="icon default"></div>
<?endif;?>
</td>
<td class='text'><?=$arItems["PROPERTIES"]["SIGN"]["~VALUE"]?></td>
</tr>
</table>
</div>
<?endforeach;?>
</div>
</div>
<?endif;?>
<?if($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["ORDER_PAGES"]["VALUE"]=="one" && !$showBuyBtnOnly):?>
<?$basket_url = CPhoenix::getBasketUrl(SITE_DIR, $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["BASKET_URL"]["VALUE"]);?>
<div class="basketOrder-body <?=(intval($PHOENIX_TEMPLATE_ARRAY["ORDER"]["BASKET_PRODUCTS_COUNT"]) > 0)?"":"d-none"?>">
<?
$APPLICATION->IncludeComponent("bitrix:sale.order.ajax",
"basket_order",
Array(
"PAY_FROM_ACCOUNT" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["PAY_FROM_ACCOUNT"]["VALUE"]["ACTIVE"],
"ONLY_FULL_PAY_FROM_ACCOUNT" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["ONLY_FULL_PAY_FROM_ACCOUNT"]["VALUE"]["ACTIVE"],
"TEMPLATE_LOCATION" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["TEMPLATE_LOCATION"]["VALUE"],
"DELIVERY_TO_PAYSYSTEM" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["DELIVERY_TO_PAYSYSTEM"]["VALUE"],
"BASKET_POSITION" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["BASKET_POSITION"]["VALUE"],
"SHOW_COUPONS" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["COUPON"]["VALUE"]["ACTIVE"],
"SHOW_COUPONS_BASKET" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["COUPON"]["VALUE"]["ACTIVE"],
"SHOW_COUPONS_DELIVERY" => "Y",
"SHOW_COUPONS_PAY_SYSTEM" => "Y",
"ACTION_VARIABLE" => "soa-action",
"ADDITIONAL_PICT_PROP_15" => "-",
"ADDITIONAL_PICT_PROP_8" => "-",
"ALLOW_APPEND_ORDER" => "Y",
"ALLOW_AUTO_REGISTER" => "Y",
"ALLOW_NEW_PROFILE" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["ALLOW_NEW_PROFILE"]["VALUE"]["ACTIVE"],
"ALLOW_USER_PROFILES" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["ALLOW_USER_PROFILES"]["VALUE"]["ACTIVE"],
"BASKET_IMAGES_SCALING" => "adaptive",
"COMPATIBLE_MODE" => "Y",
"COMPOSITE_FRAME_MODE" => "N",
"COMPOSITE_FRAME_TYPE" => "AUTO",
"DELIVERIES_PER_PAGE" => "9",
"DELIVERY_FADE_EXTRA_SERVICES" => "N",
"DELIVERY_NO_AJAX" => "N",
"DELIVERY_NO_SESSION" => "Y",
"DISABLE_BASKET_REDIRECT" => "Y",
"EMPTY_BASKET_HINT_PATH" => SITE_DIR."catalog/",
"HIDE_ORDER_DESCRIPTION" => "N",
"PATH_TO_AUTH" => SITE_DIR."auth/",
"PATH_TO_BASKET" => $basket_url,
"PATH_TO_PAYMENT" => $basket_url."payment/",
"PATH_TO_PERSONAL" => SITE_DIR."personal/orders/",
"PAY_SYSTEMS_PER_PAGE" => "9",
"PICKUPS_PER_PAGE" => "5",
"PICKUP_MAP_TYPE" => "yandex",
"PRODUCT_COLUMNS_HIDDEN" => "",
"PRODUCT_COLUMNS_VISIBLE" => array(
0 => "PREVIEW_PICTURE",
1 => "PROPS",
),
"SEND_NEW_USER_NOTIFY" => "N",
"SERVICES_IMAGES_SCALING" => "adaptive",
"SET_TITLE" => "Y",
"SHOW_BASKET_HEADERS" => "N",
"SHOW_DELIVERY_INFO_NAME" => "Y",
"SHOW_DELIVERY_LIST_NAMES" => "Y",
"SHOW_DELIVERY_PARENT_NAMES" => ($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["SHOW_DELIVERY_PARENT_NAMES"]["VALUE"]["ACTIVE"] === "Y")?"Y":"N",
"SHOW_MAP_IN_PROPS" => "N",
"SHOW_NEAREST_PICKUP" => "N",
"SHOW_NOT_CALCULATED_DELIVERIES" => "L",
"SHOW_ORDER_BUTTON" => "always",
"SHOW_PAY_SYSTEM_INFO_NAME" => "Y",
"SHOW_PAY_SYSTEM_LIST_NAMES" => "Y",
"SHOW_PICKUP_MAP" => "Y",
"SHOW_STORES_IMAGES" => "Y",
"SHOW_TOTAL_ORDER_BUTTON" => "Y",
"SHOW_VAT_PRICE" => "Y",
"SKIP_USELESS_BLOCK" => "Y",
"SPOT_LOCATION_BY_GEOIP" => "Y",
"TEMPLATE_THEME" => "blue",
"USER_CONSENT" => "N",
"USER_CONSENT_ID" => "0",
"USER_CONSENT_IS_CHECKED" => "Y",
"USER_CONSENT_IS_LOADED" => "N",
"USE_CUSTOM_ADDITIONAL_MESSAGES" => "N",
"USE_CUSTOM_ERROR_MESSAGES" => "N",
"USE_CUSTOM_MAIN_MESSAGES" => "N",
"USE_ENHANCED_ECOMMERCE" => "N",
"USE_PHONE_NORMALIZATION" => "Y",
"USE_PRELOAD" => "Y",
"USE_PREPAYMENT" => "N",
"USE_YM_GOALS" => "N",
"COMPONENT_TEMPLATE" => "bootstrap_v4",
"PROPS_FADE_LIST_1" => "",
"PROPS_FADE_LIST_2" => "",
),
$component
);
?>
</div>
<input type="hidden" class="basketOrder">
<?endif;?>
<?if(strlen($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["CART_PAGE_TITLE"]["VALUE"]) > 0):?>
<?$APPLICATION->setTitle($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["CART_PAGE_TITLE"]["~VALUE"]);?>
<?endif;?>
</div>
<div class="right-p <?=$colsRight?> parent-fixedSrollBlock">
<?if($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["ORDER_PAGES"]["VALUE"]=="one" && !$showBuyBtnOnly):?>
<div class="basketOrder-side <?=(intval($PHOENIX_TEMPLATE_ARRAY["ORDER"]["BASKET_PRODUCTS_COUNT"]) <= 0 && intval($PHOENIX_TEMPLATE_ARRAY["ORDER"]["BASKET_DELAY_COUNT"]) <= 0)?"d-none":""?>">
<?$APPLICATION->ShowViewContent('order-side');?>
</div>
<div class="body-basket-ajax-right d-none">
<?$APPLICATION->ShowViewContent('basket-side');?>
</div>
<?else:?>
<div class="body-basket-ajax-right">
<?$APPLICATION->ShowViewContent('basket-side');?>
</div>
<?endif;?>
<?if( !empty($arAdvantages["ITEMS"]) ):?>
<div class="cart-advantage <?=(intval($PHOENIX_TEMPLATE_ARRAY["ORDER"]["BASKET_PRODUCTS_COUNT"]) > 0 || intval($PHOENIX_TEMPLATE_ARRAY["ORDER"]["BASKET_DELAY_COUNT"]) > 0)?"d-md-none":"hidden"?>">
<div class="row">
<?foreach($arAdvantages["ITEMS"] as $key=>$arItems):?>
<div class="<?=$arAdvantages["CLASS_COLS"]?>">
<table class='size-<?=($arItems["PROPERTIES"]["SIZE"]["VALUE_XML_ID"])?>'>
<tr>
<td class="img">
<?if(strlen($arItems["PREVIEW_PICTURE_SRC"])):?>
<img src="<?=$arItems["PREVIEW_PICTURE_SRC"]?>" alt="<?=$arItems["NAME"]?>" class="d-block mx-auto img-fluid" />
<?elseif(strlen($arItems["PROPERTIES"]["ICON"]["VALUE"]) && $arItems["PREVIEW_PICTURE"] <= 0):?>
<div class="icon">
<i class="<?=$arItems["PROPERTIES"]["ICON"]["VALUE"]?>" <?if(strlen($arItems["PROPERTIES"]["ICON"]["DESCRIPTION"]) > 0):?>style="color: <?=$arItems["PROPERTIES"]["ICON"]["DESCRIPTION"]?>;"<?endif;?>></i>
</div>
<?else:?>
<div class="icon default"></div>
<?endif;?>
</td>
<td class='text'><?=$arItems["PROPERTIES"]["SIGN"]["~VALUE"]?></td>
</tr>
</table>
</div>
<?endforeach;?>
</div>
</div>
<?endif;?>
<noindex>
<div class="buttons buttons-2 cart-buttons-height visible-sm visible-xs">
<table class="mobile-break">
<tbody>
<tr>
<?
if(strlen($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["POLITIC"]["ITEMS"]['AGREEMENTS']["VALUE"])>0 && $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["POLITIC"]["ITEMS"]['AGREEMENTS']["VALUE"] != "N")
$par_condition = "class='open-info call-modal callagreement' data-call-modal='agreement".$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["POLITIC"]["ITEMS"]['AGREEMENTS']["VALUE"]."'";
if(strlen($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]['CART_LINK_CONDITIONS']["VALUE"])>0)
$par_condition = "class='open-info' target='_blank' href='".$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]['CART_LINK_CONDITIONS']["VALUE"]."' ";
?>
<?if(isset($par_condition)):?>
<td class="right">
<a <?=$par_condition?>><span class="bord-bot"><?if(strlen($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]['CART_BTN_NAME_CONDITIONS']["VALUE"])>0) echo $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]['CART_BTN_NAME_CONDITIONS']["VALUE"]; else echo $PHOENIX_TEMPLATE_ARRAY["MESS"]["CART_DELIVERY"];?></span></a>
</td>
<?endif;?>
<td class="right d-none clear-basket-node-control">
<div class="clear">
<a class="click_cart clear-cart"><?=$PHOENIX_TEMPLATE_ARRAY["MESS"]["CART_CLEAR"]?></a>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</noindex>
</div>
</div>
</div>
<?endif;?>
</div>
<?if($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["CATALOG"]["ITEMS"]["STORIES"]["VALUE"]["BASKET"] === 'Y'):?>
<div class="container">
<div class="ex-row catalog-stories-ajax" data-count="4">
</div>
</div>
<?endif;?>
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
/** @var array $arParams */
/** @var array $arResult */
/** @global CMain $APPLICATION */
/** @global CUser $USER */
/** @global CDatabase $DB */
/** @var CBitrixComponentTemplate $this */
/** @var string $templateName */
/** @var string $templateFile */
/** @var string $templateFolder */
/** @var string $componentPath */
/** @var CBitrixComponent $component */
$this->setFrameMode(true);
global $PHOENIX_TEMPLATE_ARRAY, $USER;
$basket_url = CPhoenix::getBasketUrl(SITE_DIR, $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["BASKET_URL"]["VALUE"]);
$user_registration = \Bitrix\Main\Config\Option::get("main", "new_user_registration", "");
$email_confirmation = \Bitrix\Main\Config\Option::get("main", "new_user_registration_email_confirmation", "");
$email_required = \Bitrix\Main\Config\Option::get("main", "new_user_email_required", "");
$bConfirmReq = ($email_confirmation == "Y" && $email_required == "Y");
$showAuthForm = (($user_registration == "N" || $bConfirmReq) && !$USER->IsAuthorized());
?>
<div class=
"
page-header
sections
cover
parent-scroll-down
<?=$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["DESIGN"]["ITEMS"]["HEAD_TONE"]["VALUE"]?>
phoenix-firsttype-<?=$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["MENU"]["ITEMS"]["MENU_TYPE"]["VALUE"]?>
padding-bottom-section
basket-order
"
<?if(strlen($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["CART_PAGE_HEADBG"]["VALUE"])>0):?>
<?
$bg_pic = CFile::ResizeImageGet($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["CART_PAGE_HEADBG"]["VALUE"], array('width'=>1600, 'height'=>1200), BX_RESIZE_IMAGE_PROPORTIONAL, false);
?>
<?/*data-src = "<?=$bg_pic["src"]?>"*/?>
style="background-image: url(<?=$bg_pic["src"]?>);"
<?endif;?>
>
<div class="shadow-tone <?=$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["DESIGN"]["ITEMS"]["HEAD_TONE"]["VALUE"]?>"></div>
<div class="top-shadow"></div>
<div class="container z-i-9">
<div class="row">
<div class="col part part-left align-self-center">
<div class="head">
<div class="title main1"><h1><?$APPLICATION->ShowTitle(false);?></h1></div>
<?if(strlen($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["DESC"]["VALUE"]) > 0):?>
<div class="subtitle"><?=$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["DESC"]["~VALUE"]?></div>
<?endif;?>
</div>
</div>
<div class="col-auto part part-right d-none d-sm-block">
<?
if(strlen($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["POLITIC"]["ITEMS"]['AGREEMENTS']["VALUE"])>0 && $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["POLITIC"]["ITEMS"]['AGREEMENTS']["VALUE"] != "N")
$par_condition = "class='basket-page-header-btn call-modal callagreement' data-call-modal='agreement".$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["POLITIC"]["ITEMS"]['AGREEMENTS']["VALUE"]."'";
if(strlen($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]['CART_LINK_CONDITIONS']["VALUE"])>0)
$par_condition = "class='basket-page-header-btn' target='_blank' href='".$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]['CART_LINK_CONDITIONS']["VALUE"]."' ";
?>
<?if(isset($par_condition)):?>
<a <?=$par_condition?>>
<span><?=(strlen($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]['CART_BTN_NAME_CONDITIONS']["VALUE"])>0)? $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]['CART_BTN_NAME_CONDITIONS']["VALUE"] : $PHOENIX_TEMPLATE_ARRAY["MESS"]["CART_DELIVERY"];?></span>
</a>
<?endif;?>
</div>
<?if(!isset($_REQUEST["ORDER_ID"])):?>
<?
$showBuyBtn = ($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["FAST_ORDER_IN_BASKET_ON"]["VALUE"]["ACTIVE"] == "Y") ? true : false;
if(is_array($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]['PERSON_TYPE_PROPS']['ITEMS'][$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["PERSON_TYPE"]["CUR_VALUE"]]["VALUE"])&& !in_array('Y', $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]['PERSON_TYPE_PROPS']['ITEMS'][$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["PERSON_TYPE"]["CUR_VALUE"]]["VALUE"]))
$showBuyBtn = false;
?>
<?if($showBuyBtn):?>
<div class="col-12 wr-order-btn d-md-none">
<a class="sec-b callFastOrder callDialog">
<span class="bord-bot">
<?= $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["CART_BTN_FAST_ORDER_NAME_IN_BASKET"]["~VALUE"];?>
</span>
</a>
</div>
<?endif;?>
<?endif;?>
</div>
</div>
</div>
<div class="container">
<?if($showAuthForm):?>
<div class="cabinet-wrap">
<div class="block-move-to-up">
<div class="auth-block">
<div class="row">
<div class="col-lg-4 col-md-5 col-12">
<?
// начало ---
/**
* @var \CMain $APPLICATION
* @var \CBitrixComponent $component
*/
$bSkip = false;
if (\Bitrix\Main\Loader::includeModule('bxmaker.authuserphone')) {
$oManager = \BXmaker\AuthUserPhone\Manager::getInstance();
// если модуль для текущего сайта включен
if ($oManager->isEnabled()) {
$APPLICATION->IncludeComponent(
$oManager->param()->getDefaultComponent(),
'',
[
'COMPOSITE_FRAME_MODE' => 'N',
'RAND_STRING' => 'ajax'
]
);
$bSkip = true;
}
?>
<style>
.bxmaker-authuserphone-enter,
.bxmaker-authuserphone-simple {
margin: 0 auto;
display: block;
box-shadow: none;
}
</style>
<?
}
if (!$bSkip) {
// конец ---
?>
<form class="form auth" action="#">
<div class="row inputs-block">
<div class="col-12 title-form main1">
<?=$PHOENIX_TEMPLATE_ARRAY["MESS"]["PERSONAL_LOGIN_TITLE"]?>
</div>
<div class="col-12">
<div class="input">
<div class="bg"></div>
<span class="desc"><?=$PHOENIX_TEMPLATE_ARRAY["MESS"]["PERSONAL_LOGIN_INPUT"]?></span>
<input class='focus-anim require' name="auth-login" type="text" value="" />
</div>
<div class="input">
<div class="bg"></div>
<span class="desc"><?=$PHOENIX_TEMPLATE_ARRAY["MESS"]["PERSONAL_PASSWORD_INPUT"]?></span>
<input class='focus-anim require' name="auth-password" type="password" />
</div>
<div class="errors"></div>
</div>
<div class="col-12">
<div class="input-btn">
<div class="load">
<div class="xLoader form-preload"><div class="audio-wave"><span></span><span></span><span></span><span></span><span></span></div></div>
</div>
<button class="button-def main-color big active <?=$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["DESIGN"]["ITEMS"]['BTN_VIEW']['VALUE']?> auth-submit" name="form-submit" type="button"><?=$PHOENIX_TEMPLATE_ARRAY["MESS"]["PERSONAL_BTN_ENTER"]?></button>
</div>
</div>
</div>
<div class="row links-block">
<div class="col-sm-6 col-12">
<a href="<?=$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["PERSONAL"]["ITEMS"]["FORGOT_PASSWORD_URL"]["VALUE"]?>"><?=$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["PERSONAL"]["ITEMS"]["FORGOT_PASSWORD_URL"]["DESCRIPTION"]?></a>
</div>
<div class="col-sm-6 col-12">
<a href="<?=$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["PERSONAL"]["ITEMS"]["REGISTER_URL"]["VALUE"]?>"><?=$PHOENIX_TEMPLATE_ARRAY["ITEMS"]["PERSONAL"]["ITEMS"]["REGISTER_URL"]["DESCRIPTION"]?></a>
</div>
</div>
</form>
<?
// начало ---
}
//конец ---
?>
</div>
<div class="col-lg-8 col-md-7 hidden-xs">
<div class="reg">
<div class="reg-comment">
<?=$PHOENIX_TEMPLATE_ARRAY["MESS"]["SALE_ORDER_ALERT"]?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?endif;?>
<div class="basket-style page basket-order-page-container">
<div class="body static">
<div class="basketOrder-body">
<?$APPLICATION->IncludeComponent("bitrix:sale.order.ajax",
"basket_order",
Array(
"PAY_FROM_ACCOUNT" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["PAY_FROM_ACCOUNT"]["VALUE"]["ACTIVE"],
"ONLY_FULL_PAY_FROM_ACCOUNT" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["ONLY_FULL_PAY_FROM_ACCOUNT"]["VALUE"]["ACTIVE"],
"TEMPLATE_LOCATION" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["TEMPLATE_LOCATION"]["VALUE"],
"DELIVERY_TO_PAYSYSTEM" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["DELIVERY_TO_PAYSYSTEM"]["VALUE"],
"BASKET_POSITION" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["BASKET_POSITION"]["VALUE"],
"SHOW_COUPONS" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["COUPON"]["VALUE"]["ACTIVE"],
"SHOW_COUPONS_BASKET" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["COUPON"]["VALUE"]["ACTIVE"],
"SHOW_COUPONS_DELIVERY" => "Y",
"SHOW_COUPONS_PAY_SYSTEM" => "Y",
"ACTION_VARIABLE" => "soa-action",
"ADDITIONAL_PICT_PROP_15" => "-",
"ADDITIONAL_PICT_PROP_8" => "-",
"ALLOW_APPEND_ORDER" => "Y",
"ALLOW_AUTO_REGISTER" => "Y",
"ALLOW_NEW_PROFILE" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["ALLOW_NEW_PROFILE"]["VALUE"]["ACTIVE"],
"ALLOW_USER_PROFILES" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["ALLOW_USER_PROFILES"]["VALUE"]["ACTIVE"],
"BASKET_IMAGES_SCALING" => "adaptive",
"COMPATIBLE_MODE" => "Y",
"COMPOSITE_FRAME_MODE" => "N",
"COMPOSITE_FRAME_TYPE" => "AUTO",
"DELIVERIES_PER_PAGE" => "9",
"DELIVERY_FADE_EXTRA_SERVICES" => "N",
"DELIVERY_NO_AJAX" => "N",
"DELIVERY_NO_SESSION" => "Y",
"DISABLE_BASKET_REDIRECT" => "N",
"EMPTY_BASKET_HINT_PATH" => SITE_DIR."catalog/",
"HIDE_ORDER_DESCRIPTION" => "N",
"PATH_TO_AUTH" => SITE_DIR."auth/",
"PATH_TO_BASKET" => $basket_url,
"PATH_TO_PAYMENT" => $basket_url."payment/",
"PATH_TO_PERSONAL" => SITE_DIR."personal/orders/",
"PAY_SYSTEMS_PER_PAGE" => "9",
"PICKUPS_PER_PAGE" => "5",
"PICKUP_MAP_TYPE" => "yandex",
"PRODUCT_COLUMNS_HIDDEN" => "",
"PRODUCT_COLUMNS_VISIBLE" => array(
0 => "PREVIEW_PICTURE",
1 => "PROPS",
),
"SEND_NEW_USER_NOTIFY" => "N",
"SERVICES_IMAGES_SCALING" => "adaptive",
"SET_TITLE" => "Y",
"SHOW_BASKET_HEADERS" => "N",
"SHOW_DELIVERY_INFO_NAME" => "Y",
"SHOW_DELIVERY_LIST_NAMES" => "Y",
"SHOW_DELIVERY_PARENT_NAMES" => ($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SHOP"]["ITEMS"]["SHOW_DELIVERY_PARENT_NAMES"]["VALUE"]["ACTIVE"] === "Y")?"Y":"N",
"SHOW_MAP_IN_PROPS" => "N",
"SHOW_NEAREST_PICKUP" => "N",
"SHOW_NOT_CALCULATED_DELIVERIES" => "L",
"SHOW_ORDER_BUTTON" => "always",
"SHOW_PAY_SYSTEM_INFO_NAME" => "Y",
"SHOW_PAY_SYSTEM_LIST_NAMES" => "Y",
"SHOW_PICKUP_MAP" => "Y",
"SHOW_STORES_IMAGES" => "Y",
"SHOW_TOTAL_ORDER_BUTTON" => "Y",
"SHOW_VAT_PRICE" => "Y",
"SKIP_USELESS_BLOCK" => "Y",
"SPOT_LOCATION_BY_GEOIP" => "Y",
"TEMPLATE_THEME" => "blue",
"USER_CONSENT" => "N",
"USER_CONSENT_ID" => "0",
"USER_CONSENT_IS_CHECKED" => "Y",
"USER_CONSENT_IS_LOADED" => "N",
"USE_CUSTOM_ADDITIONAL_MESSAGES" => "N",
"USE_CUSTOM_ERROR_MESSAGES" => "N",
"USE_CUSTOM_MAIN_MESSAGES" => "N",
"USE_ENHANCED_ECOMMERCE" => "N",
"USE_PHONE_NORMALIZATION" => "Y",
"USE_PRELOAD" => "Y",
"USE_PREPAYMENT" => "N",
"USE_YM_GOALS" => "N",
"COMPONENT_TEMPLATE" => "bootstrap_v4",
"PROPS_FADE_LIST_1" => "",
"PROPS_FADE_LIST_2" => "",
),
$component
);?>
</div>
</div>
</div>
</div>
<?
if(isset($_REQUEST["ORDER_ID"]))
{
if(Bitrix\Main\Loader::includeModule("concept.phoenix"))
{
global $PHOENIX_TEMPLATE_ARRAY;
$goalsScript = CPhoenix::getGoalsScriptsHTML(SITE_ID,
array(
"YAGOAL"=> $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SERVICES"]["ITEMS"]["METRIKA_GOAL_ORDER"]['VALUE'],
"GA_CAT"=> $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SERVICES"]["ITEMS"]["GOOGLE_CATEGORY_ORDER"]['VALUE'],
"GA_ACT"=> $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SERVICES"]["ITEMS"]["GOOGLE_ACTION_ORDER"]['VALUE'],
"GTM_EVT"=> $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SERVICES"]["ITEMS"]["GTM_EVENT_ORDER"]['VALUE'],
"GTM_CAT"=> $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SERVICES"]["ITEMS"]["GTM_CATEGORY_ORDER"]['VALUE'],
"GTM_ACT"=> $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SERVICES"]["ITEMS"]["GTM_ACTION_ORDER"]['VALUE'],
)
);
//CPhoenix::phoenixOptionsValues(SITE_ID, array("services"));
if(strlen($PHOENIX_TEMPLATE_ARRAY["LAZY_SCRIPTS"])>0):?>
<script>
$(window).on("load", function()
{
var timerService = setTimeout(function()
{
$("body").append('<?=str_replace(array("/","'", "\r\n"), array("\/", '"', ""), $goalsScript)?>');
clearTimeout(timerService);
}, (<?=intval($PHOENIX_TEMPLATE_ARRAY["ITEMS"]["SERVICES"]["ITEMS"]["LAZY_SERVICE_TIME"]["VALUE"])?>+1) * 1000);
});
</script>
<?
else:
echo $goalsScript;
endif;
}
}
?>