A
A
alexander_chn2017-06-25 21:15:29
1C-Bitrix
alexander_chn, 2017-06-25 21:15:29

Does the loading of the site stop halfway in Bitrix?

Hello!
The situation is the following. The site has a menu that is displayed from the info block. Everything works fine on all pages, but on the cart output page, the site loads before this menu is displayed and the download stops.
Here is the menu output code:

<ul class="body_aside_catalog"> 
               <? 
               $IBLOCK_ID = 21; //Главное меню сайта 
               $arFilter = Array('IBLOCK_ID'=>$IBLOCK_ID, 'GLOBAL_ACTIVE'=>'Y'); 
               $obSection = CIBlockSection::GetTreeList($arFilter); 
               $flag = false; 

               while ($arResult = $obSection->GetNext()) { 
                 $DL = $arResult['DEPTH_LEVEL']; 
                 $URL_N = $arResult['NAME']; 
                 $URL_C = $arResult['CODE']; 

                 if (($DL == 1) && (!$flag) ): 
                 ?> 
                   <li><a href="<?echo $URL_C;?>"><?echo $URL_N;?></a> 
                 <? endif; ?> 

                 <? 
                 if (($DL == 2) && (!$flag)): 
                   $flag = true; 
                   ?> 
                   <ul class="aside_catalog_drop"> 
                 <? endif; ?> 

                 <? 
                 if (($DL == 2) && ($flag)): 
                 ?> 
                     <li><a href="<?echo $URL_C;?>"><?echo $URL_N;?></a></li> 
                 <? endif; ?> 

                 <? 
                 if (($DL == 1) && ($flag)): 
                   $flag = false; 
                 ?> 
                     </ul><!-- /.aside_catalog_drop --> 
                   </li><!-- /main href --> 
                   <li><a href="<?echo $URL_C;?>"><?echo $URL_N;?></a> 
                 <? endif; ?> 
                 <? 
                 } //end while ?> 
                 </ul><!-- /.aside_catalog_drop --> 
               </li><!-- /last main href --> 
             </ul><!-- /.body_aside_catalog -->

Here is the cart plugin code:
<?$APPLICATION->IncludeComponent( 
"bitrix:sale.basket.basket", 
"", 
Array( 
"ACTION_VARIABLE" => "basketAction", 
"AUTO_CALCULATION" => "Y", 
"COLUMNS_LIST" => array("NAME","DISCOUNT","WEIGHT","DELETE","DELAY","TYPE","PRICE","QUANTITY"), 
"COUNT_DISCOUNT_4_ALL_QUANTITY" => "N", 
"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" => "", 
"GIFTS_SHOW_DISCOUNT_PERCENT" => "Y", 
"GIFTS_SHOW_IMAGE" => "Y", 
"GIFTS_SHOW_NAME" => "Y", 
"GIFTS_SHOW_OLD_PRICE" => "N", 
"GIFTS_TEXT_LABEL_GIFT" => "Подарок", 
"HIDE_COUPON" => "Y", 
"OFFERS_PROPS" => array(), 
"PATH_TO_ORDER" => "/personal/order.php", 
"PRICE_VAT_SHOW_VALUE" => "N", 
"QUANTITY_FLOAT" => "N", 
"SET_TITLE" => "Y", 
"TEMPLATE_THEME" => "blue", 
"USE_GIFTS" => "N", 
"USE_PREPAYMENT" => "N" 
) 
);?>

Why is the site not loading on this page and how to fix it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question