Hello. Please tell me how to add your field in the administrative part of minishop2. I want to add a field where the administrator changes the order status. What would the text of this field be sent in a letter to the customer. Tell me please. thank
1 answer
controllers/mgr/order.class.php Добавляем в array_map tracknomer $grid_fields = array_map('trim', explode(',', $this->modx->getOption('ms2_order_grid_fields', null, 'id,customer,num,status,cost,weight,delivery,payment,createdon,updatedon,comment,tracknomer', true))); model/minishop2/msorderhandler.php if ($key != 'comment' || $key != 'tracknomer') { $value = preg_replace('/\s+/',' ', trim($value)); } /model/minishop2/mysql/msorder.map.inc.php Добавляем tracknomer в 2 местах ./model/schema/minishop2.mysql.schema.xml добавляем в 2 местах tracknomer Добавляем поле в файл orders.window.product.js /assets/components/minishop2/js/mgr/orders/
|