hi i wan to send custom notifications to the admin how can i do that?
Hello!
hi i wan to send custom notifications to the admin how can i do that?
Please check the following article in our documentation for the instructions:
I hope it will help you.
Hello!
Please check the following article in our documentation for the instructions:
I hope it will help you.
I successfully changed the template and sent the email through $mailer->send.
now i want to send internal notification i tried sending it with $notification_center->add i.e,
but its not working!
Hello!
Please check the following article in our documentation for the instructions:
I hope it will help you.
I successfully changed the template and sent the email through $mailer->send.
now i want to send internal notification i tried sending it with $notification_center->add i.e,
but its not working!
$notifications_center = Tygh::$app['notifications_center'];
$notifications_center->add(['user_id' => $notif_data['user_id'],'title' => __('vendor.notify_admin.custom.title', ['[customer]' => $notif_data['customer']]),'message' => __('vendor.notify_admin.custom.body', ['[customer]' => $notif_data['customer']]),'area' => 'A','section' => NotificationsCenter::SECTION_COMMUNICATION,'tag' => NotificationsCenter::TAG_MESSAGES,'action_url' => $notif_data['thread_url'],'language_code' => Registry::get('settings.Appearance.backend_default_language'),
]);
any answer??
any answer??
Please check my answer on the same topic here:
https://forum.cs-cart.com/topic/67587-custom-internal-notification