S
S
SteepNET2021-12-18 00:17:37
1C-Bitrix
SteepNET, 2021-12-18 00:17:37

Properties not displayed after import from 1C?

Good afternoon! Bitrix:Business, 1C UT 11.4
The bitrix:catalog component is a complex and customized catalog.element in which there are groupings of properties.
But this is not the point, these groupings of properties group properties if the parameter is specified in bitrix:catalog, if it is less than zero or 0, then it displays everything in a row that is in the map and is filled.
But there is a problem that I can’t figure out at all..

Condition "I_BLOCK_GROUP_PROP" => "3" // Groupings infoblock
1.If you manually create a property in the goods infoblock, then the property will be displayed successfully
2.If the property is imported from 1C, then it will not be displayed!
3.The set of these properties is absolutely the same!!!

Condition "I_BLOCK_GROUP_PROP" => ""

What can affect the output if the properties in the infoblock are the same with the only difference being that some are imported from 1C and others are created by hand???

The template code above is the one that outputs through groupings after else goes without groupings

<div class="product-item-detail-properties mobile_none">
                    <?if ($arParams['I_BLOCK_GROUP_PROP'] > 0){?>
                        <?foreach ($arResult['PROPS_GROUP'] as $razdel):?>
                            <div class="prop_group open_list">
                                <?if($razdel['TUGLE'] == "Y"):?>
                                    <div class="prop_group_title">
                                        <span><?=$razdel['NAME']?></span>
                                        <i class="trigger-arrow"></i>
                                    </div>
                                    <div class="opened_list">
                                    <?foreach ($razdel['PROP'] as $prop):?>
                                        <? if(!empty($prop['VALUE'])):?>
                                            <div class="prop_tr">
                                                <div class="prop_name">
                                                    <span class="value"><?=$prop['NAME'];?></span>
                                                    <?if(!empty($prop["DESCRIPTION_N"])):?>
                                                        <span class="prop_tooltip">
                                                        <span class="fa fa-question-circle-o"></span>
                                                            <span class="prop_desc">
                                                                <?=$prop["DESCRIPTION_N"]?>
                                                            </span>
                                                        </span>
                                                    <?endif;?>
                                                </div>
                                                <div class="prop_value">
                                                    <? if ($prop["PROPERTY_TYPE"] == "L") { ?>
                                                        <?if($prop["VALUE_XML_ID"] == "Y" || $prop["VALUE_XML_ID"] == "N"){?>
                                                            <span class="<?= ($prop["VALUE_XML_ID"] == "Y") ? 'yes' : 'no'; ?>"></span>
                                                        <?}else{?>
                                                           <?=$prop['VALUE']?>
                                                        <?}?>
                                                    <? } else {
                                                        if (is_array($prop['VALUE'])) {
                                                            echo implode(", ", $prop['VALUE']);
                                                        } else {
                                                            echo $prop['VALUE'];
                                                        }
                                                    }?>
                                                </div>
                                            </div>
                                        <?endif;?>
                                    <?endforeach?>
                                    </div>
                                <?endif;?>
                            </div>
                        <?endforeach?>
                    <?}else{?>
                        <div class="prop_box">
                            <?foreach($arResult['PROPERTIES'] as $prop):?>
                                   if(in_array($prop['CODE'],["CML2_BASE_UNIT","MORE_PHOTO"])){continue;}
                                ?>
                                <? if(!empty($prop['VALUE'])):?>
                                    <div class="prop_tr">
                                        <div class="prop_name">
                                            <span class="value"><?=$prop['NAME'];?></span>
                                            <?if(!empty($prop["HINT"])):?>
                                                <span class="prop_tooltip">
                                                <span class="fa fa-question-circle-o"></span>
                                                            <span class="prop_desc">
                                                                <?=$prop["HINT"]?>
                                                            </span>
                                                        </span>
                                            <?endif;?>
                                        </div>
                                        <div class="prop_value">
                                            <? if ($prop["PROPERTY_TYPE"] == "L") { ?>
                                                <?if($prop["VALUE_XML_ID"] == "Y" || $prop["VALUE_XML_ID"] == "N"){?>
                                                    <span class="<?= ($prop["VALUE_XML_ID"] == "Y") ? 'yes' : 'no'; ?>"></span>
                                                <?}else{?>
                                                    <?=$prop['VALUE']?>
                                                <?}?>
                                            <? } else {
                                                if (is_array($prop['VALUE'])) {
                                                    echo implode(",", $prop['VALUE']);
                                                } else {
                                                    echo $prop['VALUE'];
                                                }
                                            }?>
                                        </div>
                                    </div>
                                <?endif;?>
                            <?endforeach;?>
                        </div>
                    <?}?>
                </div>


I reset the caches, deleted, cleaned ..,
Tell me, maybe I'm missing something?

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