Bitrix real time exchange with 1c setup. Real-time exchange with 1C from Bitrix

In April 2014, 1C-Bitrix introduced a new version 14.5. Among the many innovations, it now has the ability to exchange data with 1C in real time. The new system does not require the installation of a separate server and special settings. Let's look at the pitfalls that a developer may encounter when working with it.

Formulation of the problem

The solution of the problem

Installing the 1C exchange module add-on

Install the 1C exchange module add-on from the Bitrix website. We will not dwell on this point in detail, since instructions for installing and configuring the module are in the downloaded archive.

First start

After installation and configuration, we try to start data exchange. Immediately we encounter the first difficulty: an error message appears


The error shows that the cause of the problem is the lack of a limit on the maximum number of characters in the Nomenclature.Description field. This problem is solved as follows:

  1. We go to 1C in Configurator mode.
  2. Find the Nomenclature directory, select the Data tab, and in the Description property set the maximum length to 1000 characters.


Next error

The reason for this error is the difference in the configurations of 1C UT 11.1.4.10 and 1C UT 11.1.4.13

We solve this problem like this:

In 1C, in Configurator mode, find the module General - General Modules - B_Site ExchangeServer and change the line

THEN Remains.InStockRemaining - Remainings THEN Remaining.InStockRemaining - Remaining.InReserveFromWarehouseRemaining - Remaining.InReserveToOrderRemaining

Another try...

We update the Database configuration, launch 1C and perform the exchange.

It would seem that everything is fine, but the status of orders on the website is not updated. Those. Bitrix support responded to this problem:

There is a bug in Bitrix that prevents you from changing order data by uploading.
The bug has been fixed, but there is no update with a fix yet.
Replace the line in the file /bitrix/modules/sale/general/order_loader.php:
if($arOrder["VERSION_1C"] != $orderInfo["VERSION_1C"]) // skip update if the same version
on
if($arOrder["VERSION_1C"] != $orderInfo["VERSION_1C"] || (strlen($orderInfo["VERSION_1C"]) and the line
if(is_array($val))
on
if(is_array($val) && is_array($val["#"]))
This should solve the problem.

Successful upload

Let's start the exchange again. Everything is fine - there are no errors, orders and products are updated.

Result

After all configuration problems have been resolved, orders and products can be updated directly from 1C in real time, which will allow site visitors to always receive up-to-date information about the price and availability of goods, and HORSEPOWER employees will be more productive in working with customers.

In 2010, at the very beginning of our company’s journey, we were involved in supporting software based on 1C:Enterprise in various organizations. These were standard solutions, as well as individual ones, completely redesigned for the needs of these organizations. During this time, we have accumulated the same experience that we are ready to use now for the needs of your sites. We will set up the uploading of goods to the site, prepare a database of site users from your counterparties in 1C, and set up the exchange of documents in real time. We have experience in performing work both in the retail and b2b sectors.

The products “1C:Enterprise 8.2” and “1C-Bitrix: Site Management” are supplied with standard interaction procedures built into the systems and support for bidirectional data exchange with 1C:Enterprise, forming a ready-made comprehensive solution for trade automation, including the creation of corporate websites and organizing sales on the Internet.

The interaction of 1C and 1C-Bitrix products is implemented on the basis of bidirectional data exchange procedures. Data exchange is carried out using the XML-based open Commerce Information Exchange Standard - CommerceML 2.0.

Integration with 1C is:

  • Natural integration out of the box
  • Wide functionality
  • Easy to set up
  • Possibility of automatic work according to schedule
  • Safety
  • Performance

Real-time exchange with 1C

Real-time exchange with 1C is a technology for two-way continuous communication between 1C-Bitrix: Site Management and 1C. The system provides real-time data exchange between these software products. It does not require installation of a separate server and special settings. The system works stably on almost any hardware, minimally loading the online store and 1C.

You can get information in real time:

  • from 1C to the online store - about products, prices, balances within orders;
  • from the store to 1C - by orders, statuses, payment systems, customers, counterparties.

Constant release of updates

Among the latest improvements: optimization of loading/unloading, implementation of multi-channel interaction with the client, full exchange of orders and contractors, and much more.

CRM Real-time exchange with 1C is a technology for two-way continuous communication between 1C-Bitrix: Site Management and 1C. The technology provides real-time data exchange. The system does not require installation of a separate server or special settings. Real-time exchange with 1C works stably with minimal load on the online store and 1C.

How real-time exchange works

Data synchronization between software products occurs second per second. For example, orders placed by customers in your online store automatically fall into 1C. Changes made in 1C are instantly displayed on the online store website, and vice versa.

The 1C program constantly opens and maintains a connection to the site. If there is a break, it tries to restore the connection. If 1C is turned off or there is currently no connection with the online store, then changes accumulate on both the 1C side and the online store side. As soon as the connection is restored, the corresponding data exchange occurs.

Undemanding on resources

An undeniable advantage of the data exchange system is its low requirements for resources. It can run on almost any computer. All that is needed for this is to use the key to “1C”.

How to enable Real-time

In order for real-time data exchange to work, you need to install the exchange module 4.0 in 1C (the new implementation of the module does not remove 1C from support) and enable real exchange mode in the 1C settings.