Index: branches/5.3.x/units/products/products_event_handler.php =================================================================== diff -u -N -r15925 -r15936 --- branches/5.3.x/units/products/products_event_handler.php (.../products_event_handler.php) (revision 15925) +++ branches/5.3.x/units/products/products_event_handler.php (.../products_event_handler.php) (revision 15936) @@ -1,6 +1,6 @@ Application->recallObject('ord.-inv', null, Array('skip_autoload' => true)); + /* @var $order OrdersItem */ + foreach ($orders as $ord_id) { $order->Load($ord_id); - $this->Application->emailAdmin('BACKORDER.FULLFILL'); + $this->Application->emailAdmin('BACKORDER.FULLFILL', null, $order->getEmailParams()); //reserve what's possible in any case $event = new kEvent('ord:OnReserveItems'); @@ -752,6 +754,7 @@ * Enter description here... * * @param kEvent $event + * @todo Might be not used anymore */ function OnRecommendProduct($event) { @@ -773,9 +776,12 @@ $send_params['message']=$my_message; if ( preg_match('/' . REGEX_EMAIL_USER . '@' . REGEX_EMAIL_DOMAIN . '/', $friend_email) ) { + $product = $this->Application->recallObject('p'); + /* @var $product ProductsItem */ + $user_id = $this->Application->RecallVar('user_id'); - $email_sent = $this->Application->emailUser('PRODUCT.SUGGEST', $user_id, $send_params); - $this->Application->emailAdmin('PRODUCT.SUGGEST'); + $email_sent = $this->Application->emailUser('PRODUCT.SUGGEST', $user_id, $product->getEmailParams($send_params)); + $this->Application->emailAdmin('PRODUCT.SUGGEST', null, $product->getEmailParams()); if ( $email_sent ) { $event->setRedirectParams(Array ('opener' => 's', 'pass' => 'all'));