X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Low Limit Warning Email (https://forum.x-cart.com/showthread.php?t=73522)

Keys Care 02-04-2016 11:21 AM

Low Limit Warning Email
 
Hi, I am trying to hard code in a specific email address that low inventory limits emails are sent to.

I have tracked it down to include/func/func.order.php file and to this code:
Quote:

if (
$config['Email_Note']['eml_lowlimit_warning'] == 'Y'
&& func_check_email($config['Company']['orders_department'])
) {

func_send_mail(
$config['Company']['orders_department'],
'mail/lowlimit_warning_notification_subj.tpl',
'mail/lowlimit_warning_notification_admin.tpl',
$config['Company']['orders_department'],
true
);
$sent2email = $config['Company']['orders_department'];
}

What I want to do is replace the 'orders_department' with a specific email address so that the orders department does not get low inventory warnings.

Can anyone help to where and how to input that fixed email address.

Sorry if this is simple, but I cannot seem to make it work.

Bob

cflsystems 02-04-2016 11:24 AM

Re: Low Limit Warning Email
 
the function parameters are like this

func_send_mail(
TO EMAIL,
SUBJECT,
BODY,
FROM EMAIL,
true
);

so

func_send_mail(
'new_email@domain.com',
'mail/lowlimit_warning_notification_subj.tpl',
'mail/lowlimit_warning_notification_admin.tpl',
$config['Company']['orders_department'],
true
);

Keys Care 02-04-2016 11:26 AM

Re: Low Limit Warning Email
 
Thanks Steve, will give it a try

Bob


All times are GMT -8. The time now is 05:10 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.