# Connect 1C-Bitrix: Site management

The ChatRex module transfers published store merchandise to ChatRex. The bot can find the product, show the price and options, check the availability and give a link to the showcase. The module does not read customers and orders, does not make purchases and does not accept payment.

!!!warning Issue status
The module has been tested on a separate test store, but has not yet been published in Marketplace 1C-Bitrix. The instructions describe the prepared connection path. There is no need to install a temporary test archive on a work store.
!!!

## What will it take?

- Site on 1C-Bitrix: Site Management with `main`, `iblock` and `catalog` modules, PHP 8.1 or later.
- Administrator rights to install and configure the module, a published HTTPS store and at least one visible product.
- ChatRex account. Integration subscriptions are issued separately in ChatRex; free installation does not mean a free subscription.

The test installation was performed on the edition of "Small Business" 26.150.0. Converting data and Russian language files for websites in Windows-1251 encoding has been verified locally; a clean installation on the published Windows-1251 store has not yet been confirmed.

## Connection

1. After publication, open the ChatRex card in Marketplace 1C-Bitrix and install the module in a regular way.
2. In the site control panel, open the settings of the installed ChatRex module. Check that the **ChatRex API** field indicates `https://app.chatrex.pro`, then click **Connect ChatRex**.
3. In the opened ChatRex, log into your account and confirm the binding of the shown store domain. The password of the site administrator is not required to transfer to ChatRex.
4. Return to the module settings and press **I confirmed the connection**. Wait for the directory synchronization and connection status in ChatRex.
5. In the bot editor, open **Integrations and actions**, select the connected store and add [the necessary actions 1C-Bitrix](../../actions/integrations/bitrix-cms.md). Check the answer on the test item.

Initial synchronization and subsequent product changes are performed by the background tasks of the site. If the product does not appear immediately, check the operation of 1C-Bitrix agents and the time of the last synchronization in the module settings. Do not change the API field to a test address when connecting a work store.

## Verification and shutdown

Compare the product found with the published store card: name, article, price with currency, the remainder of the selected option and reference. Hidden goods should not be answered. The presence of a product does not mean that the bot has reserved it or created an order.

To disable, click **Disable ChatRex** in the module settings. After disabling, access to actions is terminated, and the synchronized directory is removed from the ChatRex connection. The existing dialogues in the ChatRex account are saved. If you need help, write to [support@chatrex.pro](mailto:support@chatrex.pro).
