I
I
Insom842020-12-17 14:04:38
1C-Bitrix
Insom84, 2020-12-17 14:04:38

Displaying a description under Bitrix products?

Hello!
I have one description field on the pages of Bitrix and the text appears above the products, but if I understand correctly, judging by the template code (I am attaching part of it), then the description under the products is also provided, but how can I display it in the admin panel so that I can write it there text?
I don't understand Bitrix well, thanks for the help!

if($arTheme['PRIORITY_SECTION_DESCRIPTION_SOURCE']['VALUE'] !== 'NOT'){
    $top_desc = trim($APPLICATION->GetViewContent('top_desc'));
    $bottom_desc = trim($APPLICATION->GetViewContent('bottom_desc'));
    $sotbit_top_desc = trim($APPLICATION->GetViewContent('sotbit_seometa_top_desc'));
    $sotbit_bottom_desc = trim($APPLICATION->GetViewContent('sotbit_seometa_bottom_desc'));
    $sotbit_add_desc = trim($APPLICATION->GetViewContent('sotbit_seometa_add_desc'));

    if($arTheme['PRIORITY_SECTION_DESCRIPTION_SOURCE']['VALUE'] !== 'IBLOCK'){
      if(strlen($top_desc) && strlen($sotbit_top_desc)){
        unset($APPLICATION->__view['top_desc']);
      }
      if(strlen($bottom_desc) && strlen($sotbit_bottom_desc.$sotbit_add_desc)){
        unset($APPLICATION->__view['bottom_desc']);
      }
    }
    else{
      if(strlen($top_desc) && strlen($sotbit_top_desc)){
        unset($APPLICATION->__view['sotbit_seometa_top_desc']);
      }
      if(strlen($bottom_desc) && strlen($sotbit_bottom_desc.$sotbit_add_desc)){
        unset($APPLICATION->__view['sotbit_seometa_bottom_desc'], $APPLICATION->__view['sotbit_seometa_add_desc']);
      }
    }
  }
  ?>
<?endif;?>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yaroslav Alexandrov, 2020-12-17
@alexyarik

sotbit_seometa, you have a sotbit seo filter, read their documentation, see if they have a video.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question