Добрый день, подскажите, пожалуйста, как свое кастомное поле вывести в мэйле подтвеждения заказа для админа? Использую ваш simple_custom_in_email.xml для vqmod, но поле в письме не отображается. Поле в админке Симпла я назвала custom_question. Код в вкмоде у меня такой:
<file name="catalog/model/checkout/order.php">
<operation>
<search position="after"><![CDATA[
$text .= $language->get('text_new_footer') . "\n\n";
]]></search>
<add><![CDATA[
$this->load->model('tool/simplecustom');
$custom_question_label = $this->model_tool_simplecustom->getOrderFieldLabel($order_info['order_id'],'custom_question');
$custom_question_text = $this->model_tool_simplecustom->getOrderField($order_info['order_id'],'custom_question');
$custom_msg = $custom_question_label.':'.$custom_question_text.'<br>';
$html .= $custom_msg;
]]></add>
</operation>
</file>
В БД в таблицу simple_custom_data данное поле и его значение сохраняется. Вот пример одного заказа (данные из столбца data в таблице simple_custom_data): a:1:{s:23:"payment_custom_question";a:9:{s:2:"id";s:23:"payment_custom_question";s:5:"label";s:35:"Как вы о нас узнали?";s:5:"value";s:6:"testrr";s:6:"values";a:0:{}s:4:"text";s:6:"testrr";s:4:"type";s:8:"textarea";s:3:"set";s:5:"order";s:4:"from";s:17:"checkout_customer";s:8:"field_id";s:15:"custom_question";}}