hi i wan to send custom notifications to the admin how can i do that?
|
Posted 28 June 2022 - 06:10 AM #1
hi i wan to send custom notifications to the admin how can i do that?
Posted 28 June 2022 - 08:06 AM #2
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:
https://docs.cs-cart...cation-template
I hope it will help you.
Posted 28 June 2022 - 08:52 AM #3
Hello!
Please check the following article in our documentation for the instructions:
https://docs.cs-cart...cation-template
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!
Posted 29 June 2022 - 04:43 AM #4
Hello!
Please check the following article in our documentation for the instructions:
https://docs.cs-cart...cation-template
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??
Posted 30 June 2022 - 03:13 PM #5