Opencart, PHP

Opencart 2.3.0.2 Issue: Additional Alert Email Field

This is a known bug in Opencart 2.3.0.2 version, if you are using this version, you will notice that your Additional Alert Email field under Settings > Mail tab doesn’t save. No matter how many times you add an email address and save it, it will just stay blank after reload.

To fix this, go to your /admin/controller/setting/setting.php file and search for config_alert_email (around line 1047):

		if (isset($this->request->post['config_alert_email'])) {
			$data['config_alert_email'] = $this->request->post['config_alert_email'];
		} else {
			$data['config_alert_email'] = $this->config->get('config_alert_email');
		}

and change it to:

		if (isset($this->request->post['config_mail_alert_email'])) {
			$data['config_alert_email'] = $this->request->post['config_mail_alert_email'];
		} else {
			$data['config_alert_email'] = $this->config->get('config_mail_alert_email');
		}

That’s it. 🙂