If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Disable admin alert emails.

Disable admin alert emails.

Started by mcpisik on 23 Oct 2012, 4:01 PM · Views: 1,387

Results 1 to 6 of 6
23 Oct 2012, 4:01 PM
#1
mcpisik avatar

mcpisik

Zen Follower

Join Date:
Jan 2007
Location:
Mount Maunganui, New Zealand
Posts:
417
Plugin Contributions:
0

Post #1 by mcpisik

Hi swguy or anyone who knows the answer...
I read a post on cartblog, where you gave instructions how to turn off admin email alerts.
Could you tell me if your code should be inserted on a line before, or in front of with one space etc? (couldn't get it to work this morning)

We create the order for a customer ourselves and adjust the shipping rate each order.
So for every order we receive the annoying warning email. (we operate from home, so am happy to disable the warnings)

Here's the code I refer to...

Edit the file  includes/functions/functions_email.php At the start of the function zen_mail() add the line if ($module == ‘admin_settings_changed’) return;

Thanks!
mcpisik

23 Oct 2012, 4:29 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

mcpisik:

So for every order we receive the annoying warning email. (we operate from home, so am happy to disable the warnings)
But ... you're not understanding the reason for those emails.

Don't you WANT to know if someone ELSE (like a hacker) makes a change to your modules, especially such as changing your payment module settings to send payments to some hacker?

The REASON for the emails is to let you know that something "sensitive" has changed.

Or maybe you don't care about security of your site?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

23 Oct 2012, 5:18 PM
#3
mcpisik avatar

mcpisik

Zen Follower

Join Date:
Jan 2007
Location:
Mount Maunganui, New Zealand
Posts:
417
Plugin Contributions:
0

Post #3 by mcpisik

Yes, that's the answer I was expecting.
No, I liked the way zen-cart was for years.
I receive so many email alerts now, that I'll NEVER notice one that may be an actual alert, amongst them.
Can anyone provide a solution?

23 Oct 2012, 7:07 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #4 by drbyte

Maybe you need a different shipping module so you don't have to edit its settings in the admin for every order.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

23 Oct 2012, 7:23 PM
#5
mcpisik avatar

mcpisik

Zen Follower

Join Date:
Jan 2007
Location:
Mount Maunganui, New Zealand
Posts:
417
Plugin Contributions:
0

Post #5 by mcpisik

Would certainly love a solution to the shipping module.
We rent costumes. Before they can rent, we confirm availability.
They are quoted for freight based on how fast it's needed, how bulky the items are, how many items fit together and we quote return cost at slower/cheaper courier rate.
Any module that would take care of that, without us overcharging or losing money on courier?

23 Oct 2012, 7:56 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #6 by drbyte

You might need to write a custom shipping module that allows you to enter the price ... and restrict it to being usable by only a certain IP address (yours), or whatever restriction suits you.

If you were working on a Development-Only site, then you could simply turn off all emails, since those and other emails would be irrelevant for the time being.
Alternatively, you could set email to SMTPAUTH mode and use a free mailtrap.io account for email-testing.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.