Jump to content

 

mohsin1631

Member Since 18 May 2022
Offline Last Active Aug 18 2022 09:21 AM
-----

#351383 Custom Notifications

Posted by mohsin1631 on 28 June 2022 - 08:52 AM

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'),

]);



#348692 Post Request From Smarty

Posted by mohsin1631 on 27 May 2022 - 05:58 AM

Yes i did that and now its working.




#348649 Add New Button

Posted by mohsin1631 on 26 May 2022 - 06:25 AM

Thanks its working now after adding change_status mode in orders frontend controller.




#348637 Custom Data Fields

Posted by mohsin1631 on 26 May 2022 - 05:34 AM

Thanks for the help now i am getting the data.