M
This is the solution.(1) In the structure of the system, the necessary fields are added in the field. In my case, it's at the delivery address:(2) We enter the vocabulary management and create new areas in the context of the administration of the casttomization of the vocabulary:(3) In the core/components/minishop2/model/minishop2/mysql/msorderadress.map.inc.php, alter the structure of the mass at the beginning of the file:array (
//1
'user_id' => NULL,
//2
'createdon' => '0000-00-00 00:00:00',
//3
'updatedon' => '0000-00-00 00:00:00',
//4
'receiver' => NULL,
//5
'phone' => NULL,
//6
'country' => NULL,
//7
'index' => NULL,
//8
'region' => NULL,
//9
'city' => NULL,
//10
'metro' => NULL,
//11
'street' => NULL,
//12
'building' => NULL,
//13
'room' => NULL,
//14
'comment' => NULL,
//15
'name1' => NULL,
//16
'phone1' => NULL,
//17
'datepicker' => NULL,
'properties' => NULL,
),
(4) After which, in the same file, we're still building our field below the code: /* Свои поля */
'name1' =>
array (
'dbtype' => 'varchar',
'precision' => '100',
'phptype' => 'string',
'null' => true,
),
'phone1' =>
array (
'dbtype' => 'varchar',
'precision' => '50',
'phptype' => 'string',
'null' => true,
),
'datepicker' =>
array (
'dbtype' => 'varchar',
'precision' => '255',
'phptype' => 'string',
'null' => true,
),
/* конец своих полей */
(5) Also open the snipe msOrder and carry additional fields for entry:$user_fields = array(
'receiver' => 'fullname',
'phone' => 'phone',
'email' => 'email',
'comment' => 'extended[comment]',
'index' => 'zip',
'country' => 'country',
'region' => 'state',
'city' => 'city',
'street' => 'address',
'building' => 'extended[building]',
'room' => 'extended[room]',
'name1' => 'name1',
'phone1' => 'phone1',
'datepicker' => 'datepicker',
);
(6) Open the modx base and find a table of the required modx_ms2_order_addresses. We're adding to the new fields that have been written everywhere.(7) Then we go to the core/components/minishop2/model/schema/minishop2.mysql.schema.xml and in the file structure write the same fields as the document standard. And everything starts working. Now the Adminka has additional fields, which can be as large as possible. On the website, we declare the necessary players or add the fields with the right names (e.g.: <input type="text" id="phone1" />which then adds the necessary fields to the base and to the Adminc.9) Upon the introduction of data on the order website, additional fields are received at the outlet, as shown in the pictures:That's all set and working properly;