L
L
Lola Gasanova2020-10-21 11:42:27
SOAP
Lola Gasanova, 2020-10-21 11:42:27

How to integrate a site on Bitrix with 1C?

Hello, we need to integrate the site with 1C, 1C integration with Bitrix works through SOAP.
How can I implement this?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Pasechnik Kuzmich, 2020-10-21
@Hivemaster

If you believe Bitrix marketing, then nothing needs to be done, everything works out of the box.

A
Anton, 2020-10-21
@anton99zel

If you ask such a question, and even so vaguely, then I don’t think that someone here will write multi-volume instructions.
Real advice: get rid of 100t.r and much higher for specialists, especially if you have no knowledge and there are catalogs on both sides with a large number of goods.
If there is no money and specialists and soap is not important, then you can do as I did through winhttp, or through the xml exchange - and write on both sides of the processing.

spoiler
//Онлайн интеграция заказов с сайтом	 - отправка из 1С
ПараметрыОбмена = "";
ПараметрыОбмена = ПараметрыОбмена + "KEY="+"DN9MBPQP7680";
ПараметрыОбмена = ПараметрыОбмена + "&NUMBER="+Номер;
ПараметрыОбмена = ПараметрыОбмена + "&DATE="+Дата;
ПараметрыОбмена = ПараметрыОбмена + "&KLIENT="+Контрагент;
ПараметрыОбмена = ПараметрыОбмена + "&PHONE="+ТелефонКлиента;
ПараметрыОбмена = ПараметрыОбмена + "&EMAIL="+Контрагент.Email;
ПараметрыОбмена = ПараметрыОбмена + "&STATUS="+Статус;
ПараметрыОбмена = ПараметрыОбмена + "&STATUSORDER="+СтатусОбработки;
ПараметрыОбмена = ПараметрыОбмена + "&STORES="+Подразделение;
ПараметрыОбмена = ПараметрыОбмена + "&TOTAL="+СтрЗаменить(СуммаДокументаПолная, Символы.НПП, "");
Массив = 0;
Для Каждого ТекСтрокаЗаказТЧ Из ЗаказТЧ Цикл
ПараметрыОбмена = ПараметрыОбмена + "&CART"+"["+Массив+"][id]="+ТекСтрокаЗаказТЧ.Товар.КодУТ;
ПараметрыОбмена = ПараметрыОбмена + "&CART"+"["+Массив+"][sections]="+ТекСтрокаЗаказТЧ.Товар.Родитель;
ПараметрыОбмена = ПараметрыОбмена + "&CART"+"["+Массив+"][item]="+ТекСтрокаЗаказТЧ.Товар;
ПараметрыОбмена = ПараметрыОбмена + "&CART"+"["+Массив+"][quantity]="+ТекСтрокаЗаказТЧ.Количество;
ПараметрыОбмена = ПараметрыОбмена + "&CART"+"["+Массив+"][price]="+СтрЗаменить(ТекСтрокаЗаказТЧ.Цена, Символы.НПП, "");
Массив = Массив+1;	
КонецЦикла;

WinHttp=Новый COMОбъект("WinHttp.WinHttpRequest.5.1");
WinHttp.Option(2,"Windows-1251");                  
WinHttp.Open("GET","https://mysite.com/api/1c.php?"+ПараметрыОбмена,0);    
WinHttp.SetRequestHeader("Accept-Language", "ru");
WinHttp.SetRequestHeader("Accept-Charset","Windows-1251");
WinHttp.setRequestHeader("Content-Language", "ru");
WinHttp.setRequestHeader("Content-Charset", "Windows-1251");
WinHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=Windows-1251"); 
WinHttp.Send();
Сообщить(WinHttp.ResponseText());


There is also an exchange out of the box, it is not fully functional, you can download it from the 1c website
https://www.1c-bitrix.by/products/cms/features/rea...
More instructions and performers can be found on the 1c-nick forum
https: //forum.infostart.ru/

B
badhed, 2020-10-22
@badhed

Exchange module 7.0.1.32, 1C UT 11 and BUS "Business" successfully works out of the box.
Before that, there were problems and for a couple of years the client was heavily loaded with crutches by numerous "experts for 100 tr"
After the last update of the module, everything began to work as stated
. Describe your problem in more detail.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question