*

kriskoyk

  • *****
  • 304 posts
Email (bo_mgr_email_status) to unsubscribed only
« on: May 27, 2024, 08:57:04 PM »
How can I block sending email (bo_mgr_email_status) to registered users.

Marked as best answer by frosticek on May 29, 2024, 07:58:05 AM
*

MB Themes

Re: Email (bo_mgr_email_status) to unsubscribed only
« Reply #1 on: May 28, 2024, 12:13:11 PM »
@kriskoyk
In oc-content/plugins/backoffice_manager/email.php find line:
Code: [Select]
function email_status($item_id) {
Scroll down few lines and find this block:
Code: [Select]
  $item = Item::newInstance()->findByPrimaryKey($item_id);
  $item_s = ModelBO::newInstance()->getItem($item_id);
  $pass = (isset($item_s['passwrd']) ? $item_s['passwrd'] : '');

Below this line, add this code:
Code: [Select]
if(@$item['fk_i_user_id'] > 0) {
  return false;
}
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kriskoyk

  • *****
  • 304 posts
Re: Email (bo_mgr_email_status) to unsubscribed only
« Reply #2 on: May 28, 2024, 09:16:13 PM »
Ok it works, thanks.