I
I
Igor2018-04-23 20:48:56
1C-Bitrix
Igor, 2018-04-23 20:48:56

How to find the import script in iblock for 1s.bitrix?

1c unloads the XML file by clicking on the "Exchange with Web" button. The file looks like this:

d0b41e26-f32b-11e4-821e-001a4d382000falsefalse00000000-0000-0000-0000-000000000000 00000782
Bilimbaevskaya 16a
<TipBloka xmlns = "" xsi: type = " CatalogRef.TipyReklamnyhBlokov"> bc469c4f-6e2a-11e4-a640-5404a6b87cefTipBloka>
<NomerBloka xsi: type="xsd:string">0203BlockNumber>
<Region xmlns="" xsi:type="CatalogRef.Regions">7ee9aa05-9d57-11e4-af94-001fd05a9a5fRegion>
<City xmlns="" xsi:type="CatalogRef.Cities ">9b79a739-6e20-11e4-a640-5404a6b87cefCity>
<Lighting xsi:type="xsd:boolean">falseLighting>
<Side xmlns="" xsi:type="CatalogRef.SideViews">86e6ced2-2002-49b9-9aef- 6dc3f08f92f9Side>
<Alcohol xsi:type="xsd:boolean">falseAlcohol>
<Tobacco xsi:type="xsd:boolean">falseTobacco>
<InstallationDate xsi:type="xsd:dateTime">2015-04-30T00:00:00InstallationDate>
<RemovalDate xsi:type="xsd:dateTime">0001-01-01T00:00:00RemovalDate>
<xsi:type= Description "xsd:string">PP through Boring (left)Description>
d0b41e26-f32b-11e4-821e-001a4d382000
<Size xmlns="" xsi:type="CatalogRef.AdSizes">bc469c4e-6e2a-11e4-a640-5404a6b8Size
> Coordinates xsi:type="xsd:string">56.881473, 60.517850Coordinates>
<Price xsi:type="xsd:decimal">3300Price> AdBlocks
>

The site somehow accepts this file.
In the 1s.bitrix logs, I see that the corresponding infoblock is updated by the iblock module, but no matter how much I dig into its code, I don’t see that parsing of this XML and import into the infoblock was written. Help me to understand. Where to begin?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Mifle, 2018-04-24
@OlegMifle

In the 1C settings there is a path along which 1C is hammered to the site. " http://website/bitrix/admin/1c_exchange.php "
You can start digging from there. Then you will see that the "catalog.import.1c" component is called, and then it remains to disassemble the logic.
Do you want to customize the import or is something not working right?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question