2 hours ago, inowgsm said:I can confirm that this solution does not work in 1.7.6.9.
Notice on line 197 in file /home/XXXX/public_html/var/cache/dev/smarty/compile/fd/ed/90/fded90ccbbac3d2fc08cd6d590e5717e53c09ca6_0.file.form.tpl.php [8] Undefined index: title
Prestashop 1.7.6.9 - Subject mail differs from order status.
In order for everybody to understand:
Code to add:
array(
'type' => 'text',
'label' => $this->trans('E-mail Subject', array(), 'Admin.Shopparameters.Feature'),
'name' => 'email_subject',
'lang' => true,
'required' => false,
'hint' => array(
$this->trans('E-mail Subject (e.g. \'Your order has been shipped!\').', array(), 'Admin.Shopparameters.Help'),
$this->trans('Invalid characters: numbers and', array(), 'Admin.Shopparameters.Help') . ' !<>,;?=+()@#"{}_$%:',
),
),
after: (controllers/admin/AdminStatusesController.php)
'input' => array(
array(
'type' => 'text',
'label' => $this->trans('Status name', array(), 'Admin.Shopparameters.Feature'),
'name' => 'name',
'lang' => true,
'required' => true,
'hint' => array(
$this->trans('Order status (e.g. \'Pending\').', array(), 'Admin.Shopparameters.Help'),
$this->trans('Invalid characters: numbers and', array(), 'Admin.Shopparameters.Help') . ' !<>,;?=+()@#"{}_$%:',
),
),
So that everybody is clear where to add the specific code.
Else, it works!
Minor bug: You cannot know if you have added an email subject without looking into MySQL. It does not pull the text from mysql, it will only add.