From fba6e4523de4177c4d646a831026c8af20421782 Mon Sep 17 00:00:00 2001 From: Km Date: Wed, 5 Sep 2018 17:11:31 +0200 Subject: [PATCH 1/2] Know when a customer ask notification production It's interessting to know when a customer asked about an alert --- MailAlert.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MailAlert.php b/MailAlert.php index 2686e93..a060506 100644 --- a/MailAlert.php +++ b/MailAlert.php @@ -38,6 +38,8 @@ class MailAlert extends ObjectModel public $id_lang; + public $date_add; + /** * @see ObjectModel::$definition */ @@ -50,7 +52,8 @@ class MailAlert extends ObjectModel 'id_product' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'required' => true), 'id_product_attribute' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'required' => true), 'id_shop' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'required' => true), - 'id_lang' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'required' => true) + 'id_lang' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'required' => true), + 'date_add' => array('type' => self::TYPE_DATE, 'validate' => 'isDate') ), ); From c6ea3332f6e4001e0458bae4afaf9bf299229e17 Mon Sep 17 00:00:00 2001 From: Km Date: Wed, 5 Sep 2018 17:13:07 +0200 Subject: [PATCH 2/2] Update mailalerts.php --- mailalerts.php | 1 + 1 file changed, 1 insertion(+) diff --git a/mailalerts.php b/mailalerts.php index 3271da5..bca6c66 100644 --- a/mailalerts.php +++ b/mailalerts.php @@ -117,6 +117,7 @@ public function install($delete_params = true) `id_product_attribute` int(10) unsigned NOT NULL, `id_shop` int(10) unsigned NOT NULL, `id_lang` int(10) unsigned NOT NULL, + `date_add` datetime NOT NULL, PRIMARY KEY (`id_customer`,`customer_email`,`id_product`,`id_product_attribute`,`id_shop`) ) ENGINE='._MYSQL_ENGINE_.' DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci';