From aba62f4ccb19e7364f5040be607b14cf399afa84 Mon Sep 17 00:00:00 2001 From: Kaikina Date: Thu, 22 May 2025 16:28:24 +0200 Subject: [PATCH 1/2] feat(hook): Add instance of MailAlert to hook --- MailAlert.php | 1 + 1 file changed, 1 insertion(+) diff --git a/MailAlert.php b/MailAlert.php index 5014c99..0fa80a7 100644 --- a/MailAlert.php +++ b/MailAlert.php @@ -238,6 +238,7 @@ public static function sendCustomerAlert($id_product, $id_product_attribute) 'link' => $product_link, 'customer' => $customer, 'product_obj' => $product, + 'mailAlert' => $this, ] ); From 667ebd3f4fc980dbb7d0637ed9e9d187e827746b Mon Sep 17 00:00:00 2001 From: Kaikina Date: Thu, 22 May 2025 16:39:34 +0200 Subject: [PATCH 2/2] feat(hook): Add id_product_attribute to hook --- MailAlert.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MailAlert.php b/MailAlert.php index 0fa80a7..b51d628 100644 --- a/MailAlert.php +++ b/MailAlert.php @@ -238,7 +238,7 @@ public static function sendCustomerAlert($id_product, $id_product_attribute) 'link' => $product_link, 'customer' => $customer, 'product_obj' => $product, - 'mailAlert' => $this, + 'id_product_attribute' => $id_product_attribute, ] );