I
I
IliaMal2020-09-17 07:54:03
1C-Bitrix
IliaMal, 2020-09-17 07:54:03

Where to edit error test in sale.order.ajax?

Hello.

Tell lut to edit the text of this error?
5f62ebe6a7705812649871.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
PetrPo, 2020-09-17
@IliaMal

Depending on how to edit it is necessary
1. "Field" is in the lang file
$MESS["SOA_FIELD"] = "Field";
2. "must be filled" (I have "required to fill") also in the lang file
$MESS["SOA_REQUIRED"] = "required";
3. "Delivery address" is the name of the property and the admin
panel. In the order_ajax.js template file, there are functions of this type in which the error text is generated

validateString: function(input, arProperty, fieldName)
{
//..............
errors.push(field + ' ' + BX.message('SOA_REQUIRED'));
//....................

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question