Добро пожаловать на сайт <БагБД>, где вы можете задавать вопросы о программировании и разработке на Битрикс и Битрикс24, и получать быстрые и квалифицированные ответы от профессионалов!

Наименование производителя в перечне товаров

00 голосов
4
Добрый день.

Подскажите, пожалуйста, каким образом выводится произодитель товара. Хочу добавить производителя в перечень товаров интернет-магазина (чтобы с каждым товаром отображался произоводитель), но к сожалению незнаю как это можно осуществить.

Заранее спасибо!
спросил 18 Янв, 14 от LoLiTKa (620 баллов)

4 Ответы

00 голосов
Чтобы вывести наименование товара я использую - <?=$arElement["NAME"]?>
Чтобы вывести описание товара я использую - <?=$arElement['DETAIL_TEXT']?>

А как вывести наименование производителя? Подскажите, пожалуйста.
ответил 06 Май, 14 от LoLiTKa (620 баллов)
00 голосов
Создаете инфоблок "Производители", у основного инфоблока создаете свойство "Производитель" - привязка к элементам первого инфоблока. В параметрах компонента (которым выводите) указываете данное свойство, оно будет содержаться в DISPLAY_PROPERTIES
ответил 01 Сен, 14 от unik (2,560 баллов)
00 голосов
Допустим есть следующий массив $arElement

Цитата
Array ( [ID] => 83 [~ID] => 83 [NAME] => Плутон [~NAME] => Плутон [CODE] => pluton [~CODE] => pluton [ACTIVE_FROM] => [~ACTIVE_FROM] => [DATE_CREATE] => 13.06.2011 14:28:08 [~DATE_CREATE] => 13.06.2011 14:28:08 [CREATED_BY] => 1 [~CREATED_BY] => 1 [IBLOCK_ID] => 3 [~IBLOCK_ID] => 3 [IBLOCK_SECTION_ID] => 4 [~IBLOCK_SECTION_ID] => 4 [DETAIL_PAGE_URL] => /catalog/furniture/office/pluton/ [~DETAIL_PAGE_URL] => /catalog/furniture/office/pluton/ [LIST_PAGE_URL] => /catalog/furniture/ [~LIST_PAGE_URL] => /catalog/furniture/ [DETAIL_TEXT] =>

Данная модель будет незаменима для тех, кто много работает за компьютером.
[~DETAIL_TEXT] =>

Данная модель будет незаменима для тех, кто много работает за компьютером.
[DETAIL_TEXT_TYPE] => html [~DETAIL_TEXT_TYPE] => html [DETAIL_PICTURE] => Array ( [ID] => 99 [TIMESTAMP_X] => 13.06.2011 14:28:08 [MODULE_ID] => iblock [HEIGHT] => 400 [WIDTH] => 238 [FILE_SIZE] => 42306 [CONTENT_TYPE] => image/jpeg [SUBDIR] => iblock/cc5 [FILE_NAME] => cc5842f293eba89054fa4a657134c96c.jpg [ORIGINAL_NAME] => 959358dcd9a82a854f20445f2b2d080d.jpg [DESCRIPTION] => [SRC] => /upload/iblock/cc5/cc5842f293eba89054fa4a657134c96c.jpg ) [~DETAIL_PICTURE] => 99 [PREVIEW_TEXT] =>

Офисное кресло, подобранное с учетом ваших физиологических особенностей - важная составляющая работоспособности и здоровья.
[~PREVIEW_TEXT] =>

Офисное кресло, подобранное с учетом ваших физиологических особенностей - важная составляющая работоспособности и здоровья.
[PREVIEW_TEXT_TYPE] => html [~PREVIEW_TEXT_TYPE] => html [PREVIEW_PICTURE] => [~PREVIEW_PICTURE] => [LANG_DIR] => / [~LANG_DIR] => / [EXTERNAL_ID] => 26 [~EXTERNAL_ID] => 26 [IBLOCK_TYPE_ID] => catalog [~IBLOCK_TYPE_ID] => catalog [IBLOCK_CODE] => furniture [~IBLOCK_CODE] => furniture [IBLOCK_EXTERNAL_ID] => furniture_s1 [~IBLOCK_EXTERNAL_ID] => furniture_s1 [LID] => s1 [~LID] => s1 [CATALOG_PRICE_ID_1] => 73 [~CATALOG_PRICE_ID_1] => 73 [CATALOG_GROUP_ID_1] => 1 [~CATALOG_GROUP_ID_1] => 1 [CATALOG_PRICE_1] => 12999.00 [~CATALOG_PRICE_1] => 12999.00 [CATALOG_CURRENCY_1] => RUB [~CATALOG_CURRENCY_1] => RUB [CATALOG_QUANTITY_FROM_1] => [~CATALOG_QUANTITY_FROM_1] => [CATALOG_QUANTITY_TO_1] => [~CATALOG_QUANTITY_TO_1] => [CATALOG_GROUP_NAME_1] => Розничная цена [~CATALOG_GROUP_NAME_1] => Розничная цена [CATALOG_CAN_ACCESS_1] => Y [~CATALOG_CAN_ACCESS_1] => Y [CATALOG_CAN_BUY_1] => Y [~CATALOG_CAN_BUY_1] => Y [CATALOG_EXTRA_ID_1] => [~CATALOG_EXTRA_ID_1] => [CATALOG_QUANTITY] => 0 [~CATALOG_QUANTITY] => 0 [CATALOG_QUANTITY_TRACE] => N [~CATALOG_QUANTITY_TRACE] => N [CATALOG_WEIGHT] => 0 [~CATALOG_WEIGHT] => 0 [CATALOG_VAT] => [~CATALOG_VAT] => [CATALOG_VAT_INCLUDED] => Y [~CATALOG_VAT_INCLUDED] => Y [CATALOG_PRICE_TYPE] => S [~CATALOG_PRICE_TYPE] => S [CATALOG_RECUR_SCHEME_TYPE] => D [~CATALOG_RECUR_SCHEME_TYPE] => D [CATALOG_RECUR_SCHEME_LENGTH] => 0 [~CATALOG_RECUR_SCHEME_LENGTH] => 0 [CATALOG_TRIAL_PRICE_ID] => [~CATALOG_TRIAL_PRICE_ID] => [CATALOG_WITHOUT_ORDER] => N [~CATALOG_WITHOUT_ORDER] => N [CATALOG_SELECT_BEST_PRICE] => Y [~CATALOG_SELECT_BEST_PRICE] => Y [CAT_PRICES] => Array ( [BASE] => Array ( [ID] => 1 [TITLE] => Розничная цена [SELECT] => CATALOG_GROUP_1 [CAN_VIEW] => 1 [CAN_BUY] => 1 ) ) [PROPERTIES] => Array ( [SPECIALOFFER] => Array ( [ID] => 1 [TIMESTAMP_X] => 2011-06-13 14:28:04 [IBLOCK_ID] => 3 [NAME] => Спецпредложение [ACTIVE] => Y [SORT] => 100 [CODE] => SPECIALOFFER [DEFAULT_VALUE] => [PROPERTY_TYPE] => L [ROW_COUNT] => 1 [COL_COUNT] => 30 [LIST_TYPE] => C [MULTIPLE] => N [XML_ID] => 5 [FILE_TYPE] => [MULTIPLE_CNT] => 5 [TMP_ID] => [LINK_IBLOCK_ID] => [WITH_DESCRIPTION] => N [SEARCHABLE] => Y [FILTRABLE] => Y [IS_REQUIRED] => N [VERSION] => 1 [USER_TYPE] => [USER_TYPE_SETTINGS] => [PROPERTY_VALUE_ID] => [VALUE] => [DESCRIPTION] => [VALUE_ENUM] => [VALUE_XML_ID] => [VALUE_ENUM_ID] => [~VALUE] => [~DESCRIPTION] => [~NAME] => Спецпредложение [~DEFAULT_VALUE] => ) [NEWPRODUCT] => Array ( [ID] => 2 [TIMESTAMP_X] => 2011-06-13 14:28:04 [IBLOCK_ID] => 3 [NAME] => Новинка [ACTIVE] => Y [SORT] => 110 [CODE] => NEWPRODUCT [DEFAULT_VALUE] => [PROPERTY_TYPE] => L [ROW_COUNT] => 1 [COL_COUNT] => 30 [LIST_TYPE] => C [MULTIPLE] => N [XML_ID] => af49d0e309af4fac506a8a228000efc5 [FILE_TYPE] => [MULTIPLE_CNT] => 5 [TMP_ID] => [LINK_IBLOCK_ID] => [WITH_DESCRIPTION] => N [SEARCHABLE] => Y [FILTRABLE] => Y [IS_REQUIRED] => N [VERSION] => 1 [USER_TYPE] => [USER_TYPE_SETTINGS] => [PROPERTY_VALUE_ID] => [VALUE] => [DESCRIPTION] => [VALUE_ENUM] => [VALUE_XML_ID] => [VALUE_ENUM_ID] => [~VALUE] => [~DESCRIPTION] => [~NAME] => Новинка [~DEFAULT_VALUE] => ) [SALELEADER] => Array ( [ID] => 3 [TIMESTAMP_X] => 2011-06-13 14:28:04 [IBLOCK_ID] => 3 [NAME] => Лидер продаж [ACTIVE] => Y [SORT] => 120 [CODE] => SALELEADER [DEFAULT_VALUE] => [PROPERTY_TYPE] => L [ROW_COUNT] => 1 [COL_COUNT] => 30 [LIST_TYPE] => C [MULTIPLE] => N [XML_ID] => 103 [FILE_TYPE] => [MULTIPLE_CNT] => 5 [TMP_ID] => [LINK_IBLOCK_ID] => [WITH_DESCRIPTION] => N [SEARCHABLE] => N [FILTRABLE] => Y [IS_REQUIRED] => N [VERSION] => 1 [USER_TYPE] => [USER_TYPE_SETTINGS] => [PROPERTY_VALUE_ID] => [VALUE] => [DESCRIPTION] => [VALUE_ENUM] => [VALUE_XML_ID] => [VALUE_ENUM_ID] => [~VALUE] => [~DESCRIPTION] => [~NAME] => Лидер продаж [~DEFAULT_VALUE] => ) [SIZE] => Array ( [ID] => 4 [TIMESTAMP_X] => 2011-06-13 14:28:04 [IBLOCK_ID] => 3 [NAME] => Габариты (Д х Ш х В) [ACTIVE] => Y [SORT] => 400 [CODE] => SIZE [DEFAULT_VALUE] => [PROPERTY_TYPE] => S [ROW_COUNT] => 1 [COL_COUNT] => 30 [LIST_TYPE] => L [MULTIPLE] => N [XML_ID] => 8 [FILE_TYPE] => [MULTIPLE_CNT] => 5 [TMP_ID] => [LINK_IBLOCK_ID] => [WITH_DESCRIPTION] => N [SEARCHABLE] => N [FILTRABLE] => N [IS_REQUIRED] => N [VERSION] => 1 [USER_TYPE] => [USER_TYPE_SETTINGS] => [PROPERTY_VALUE_ID] => 164 [VALUE] => 58x48x86 [DESCRIPTION] => [VALUE_ENUM] => [VALUE_XML_ID] => [~VALUE] => 58x48x86 [~DESCRIPTION] => [~NAME] => Габариты (Д х Ш х В) [~DEFAULT_VALUE] => ) [S_SIZE] => Array ( [ID] => 5 [TIMESTAMP_X] => 2011-06-13 14:28:04 [IBLOCK_ID] => 3 [NAME] => Размеры спального места [ACTIVE] => Y [SORT] => 500 [CODE] => S_SIZE [DEFAULT_VALUE] => [PROPERTY_TYPE] => S [ROW_COUNT] => 1 [COL_COUNT] => 30 [LIST_TYPE] => L [MULTIPLE] => N [XML_ID] => 9 [FILE_TYPE] => [MULTIPLE_CNT] => 5 [TMP_ID] => [LINK_IBLOCK_ID] => [WITH_DESCRIPTION] => N [SEARCHABLE] => N [FILTRABLE] => N [IS_REQUIRED] => N [VERSION] => 1 [USER_TYPE] => [USER_TYPE_SETTINGS] => [PROPERTY_VALUE_ID] => [VALUE] => [DESCRIPTION] => [VALUE_ENUM] => [VALUE_XML_ID] => [~VALUE] => [~DESCRIPTION] => [~NAME] => Размеры спального места [~DEFAULT_VALUE] => ) [MORE_PHOTO] => Array ( [ID] => 6 [TIMESTAMP_X] => 2011-06-13 14:28:04 [IBLOCK_ID] => 3 [NAME] => Картинки [ACTIVE] => Y [SORT] => 500 [CODE] => MORE_PHOTO [DEFAULT_VALUE] => [PROPERTY_TYPE] => F [ROW_COUNT] => 1 [COL_COUNT] => 30 [LIST_TYPE] => L [MULTIPLE] => Y [XML_ID] => 53046efd4ca56253e5f2513a48c05959 [FILE_TYPE] =&g
ответил 07 Янв, 15 от LoLiTKa (620 баллов)
00 голосов
Код
<?=$arElement['DISPLAY_PROPERTIES']['MANUFACTURER']['DISPLAY_VALUE'];?>
ответил 25 Апр, 15 от unik (2,560 баллов)