I
I
Igor2018-04-26 09:40:06
1C-Bitrix
Igor, 2018-04-26 09:40:06

How to update prices on the 1s.bitrix website?

1c.Advertisement unloads the XML file by clicking on the "Exchange with Web" button. When unloading, a file of the type MessageFor_30000000385.xml and pictures is created. Its
content is as follows:

<v8msg:Message xmlns:v8msg="http://v8.1c.ru/messages">
  <v8msg:Header>
    <v8msg:ExchangePlan>ОбменССайтом</v8msg:ExchangePlan>
    <v8msg:To>3</v8msg:To>
    <v8msg:From>2</v8msg:From>
    <v8msg:MessageNo>388</v8msg:MessageNo>
    <v8msg:ReceivedNo>0</v8msg:ReceivedNo>
  </v8msg:Header>
  <v8msg:Body xmlns:v8="http://v8.1c.ru/data" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <CatalogObject.Категории>
      <Ref>2e08e259-a845-11e4-b9f0-001fd05a9a5f</Ref>
      <IsFolder>false</IsFolder>
      <DeletionMark>false</DeletionMark>
      <Parent>00000000-0000-0000-0000-000000000000</Parent>
      <Code>00000001</Code>
      <Description>Синяя</Description>
      <МестоСоздания>00000000-0000-0000-0000-000000000000</МестоСоздания>
    </CatalogObject.Категории>
.
.
.
<CatalogObject.РекламныеБлоки>
      <Ref xmlns="" xsi:type="CatalogRef.РекламныеБлоки">607169c1-9ca5-11e4-94d5-001fd05a9a5f</Ref>
      <DeletionMark xsi:type="xsd:boolean">false</DeletionMark>
      <IsFolder xsi:type="xsd:boolean">false</IsFolder>
      <Parent xmlns="" xsi:type="CatalogRef.РекламныеБлоки">00000000-0000-0000-0000-000000000000</Parent>
      <Code xsi:type="xsd:string">00000071</Code>
      <Description xsi:type="xsd:string">8-е Марта, 145</Description>
      <ТипБлока xmlns="" xsi:type="CatalogRef.ТипыРекламныхБлоков">c4e370be-6e4d-11e4-a640-5404a6b87cef</ТипБлока>
      <НомерБлока xsi:type="xsd:string">0043</НомерБлока>
      <Район xmlns="" xsi:type="CatalogRef.Районы">d6884a9a-8133-11e4-adf2-001d7dd88ee3</Район>
      <Город xmlns="" xsi:type="CatalogRef.Города">9b79a739-6e20-11e4-a640-5404a6b87cef</Город>
      <Освещение xsi:type="xsd:boolean">false</Освещение>
      <Сторона xmlns="" xsi:type="CatalogRef.ВидыСторон">86e6ced2-2002-49b9-9aef-6dc3f08f92f9</Сторона>
      <Алкоголь xsi:type="xsd:boolean">false</Алкоголь>
      <Табак xsi:type="xsd:boolean">false</Табак>
      <ДатаУстановки xsi:type="xsd:dateTime">2011-01-11T00:00:00</ДатаУстановки>
      <ДатаУдаления xsi:type="xsd:dateTime">0001-01-01T00:00:00</ДатаУдаления>
      <Описание xsi:type="xsd:string">В сторону ТЦ Мегаполис</Описание>
      <ID xsi:type="v8:UUID">607169c1-9ca5-11e4-94d5-001fd05a9a5f</ID>
      <Размер xmlns="" xsi:type="CatalogRef.РазмерыРекламныхБлоков">c4e370bd-6e4d-11e4-a640-5404a6b87cef</Размер>
      <Координаты xsi:type="xsd:string">56.807491, 60.610615</Координаты>
      <Цена xsi:type="xsd:decimal">5000</Цена>
    </CatalogObject.РекламныеБлоки>
.
.
.

    <CatalogObject.ВидыСторон>
      <Ref>3d4ab3f9-5e71-4de1-b67c-266cfea7d3a0</Ref>
      <DeletionMark>false</DeletionMark>
      <Code>00000007</Code>
      <Description>B1</Description>
      <Описание/>
    </CatalogObject.ВидыСторон>
    <TableVoz/>
  </v8msg:Body>
</v8msg:Message>

On the server, I found a script that handles the loading of \bitrix\php_interface\custom_1c77parser.php. It seems to work, but there are no price changes. What could be wrong? Where to look for a joint?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor, 2018-04-30
@pingvin156

In general, the problem was solved as follows: I added the "Price" field to the infoblock and filled in the data there, adding the XML parsing script for this new field.

A
Ainur Valiev, 2018-04-26
@vaajnur

re-index the Trade Catalog?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question