Forums / Templates, Stylesheets, Page Layout / Turn off order confirmation email when keying orders manually?

Turn off order confirmation email when keying orders manually?

Locked

Views: 6,085

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
15 Apr 2008, 11:00 PM
#1
fuzzybunny avatar

fuzzybunny

New Zenner

Join Date:
Sep 2007
Location:
Melbourne Australia
Posts:
60
Plugin Contributions:
0

Turn off order confirmation email when keying orders manually?

Hi,

I want to turn the order confirmation email off all together, on a customer by customer basis or if I can do it by customer group that would be the preferred option.

The reason for this is that we deal with a lot of wholesale clients who call or fax their orders through, which we enter in the system on their behalf (a lot also do it online too). Their accounts people get confused getting the order confirmation email, so I wanted to turn it off for at least for my wholesale group and when we later change the status to shipped they can be sent the usual email then, so they can go get their invoice.

Hope someone can help with this!

Thanks in advance.

Max

@MaxOnTheHill
Molehill Web Works

15 Apr 2008, 11:48 PM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

Re: Turn off order confirmation email when keying orders manually?

FuzzyBunny:

Hi,

I want to turn the order confirmation email off all together, on a customer by customer basis or if I can do it by customer group that would be the preferred option.

The reason for this is that we deal with a lot of wholesale clients who call or fax their orders through, which we enter in the system on their behalf (a lot also do it online too). Their accounts people get confused getting the order confirmation email, so I wanted to turn it off for at least for my wholesale group and when we later change the status to shipped they can be sent the usual email then, so they can go get their invoice.

Hope someone can help with this!

Thanks in advance.

Max

Check this thread out:
Remember the override system, while editing a core file:smile:

http://www.zen-cart.com/forum/showthread.php?t=82595&highlight=Stopping+Order+confirmation+emails

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

16 Apr 2008, 5:14 AM
#3
fuzzybunny avatar

fuzzybunny

New Zenner

Join Date:
Sep 2007
Location:
Melbourne Australia
Posts:
60
Plugin Contributions:
0

Re: Turn off order confirmation email when keying orders manually?

Thanks Haredo,

However I don't want to edit the email content or disable emails from ZenCart completely, I just want to stop the order confirmation email, or select the customer group or individual customers who do or don't receive the confirmation emails.

I still want them to receive an email when notify customer is checked on the admin side or I send out newsletters or emails from admin.

Any other suggestions or solutions out there??

:lookaroun

@MaxOnTheHill
Molehill Web Works

16 Apr 2008, 11:45 AM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Turn off order confirmation email when keying orders manually?

Having been in the same position of wanting to create orders for customers without their receiving emails, the only way I found to do it was to turn off all email sending until I was finished. Fortunately (or not, I guess) I wasn't doing so much business that another order was likely to come through at the same time.

I'm no programmer, but I wonder how difficult it would be to add a "Turn Off Confirmation Email' option to, say, the 'Admin Login as Customer' mod?

16 Apr 2008, 9:15 PM
#5
fuzzybunny avatar

fuzzybunny

New Zenner

Join Date:
Sep 2007
Location:
Melbourne Australia
Posts:
60
Plugin Contributions:
0

Re: Turn off order confirmation email when keying orders manually?

Stevesh,

Thanks for your reply, but we unfortunately process quite a few orders, with perhaps two or more people logged in to the admin side doing order processing, accounts, packing etc at the same time, so turning off the email all together is not really a desired option.

I thought I would just be able to turn the order confirmation off under the email settings in admin, but that doesn't seem to be the case. I don't care if no one receives the order confirmation, as it is only once the order status is updated to [confirmed] that anyone we deal with is interested in - after all, if someone places a retail order themselves they have a screen saying their order has been placed!!

Any how . . . I would still like help as to whether or not we can turn the order confirmation email off for everyone, for a group or individually.

Any help greatly appreciated.

Thanks, Max

@MaxOnTheHill
Molehill Web Works

17 Apr 2008, 9:28 PM
#6
fuzzybunny avatar

fuzzybunny

New Zenner

Join Date:
Sep 2007
Location:
Melbourne Australia
Posts:
60
Plugin Contributions:
0

Re: Turn off order confirmation email when keying orders manually?

Any one know how to do this?

@MaxOnTheHill
Molehill Web Works

18 Apr 2008, 5:07 AM
#7
drbyte avatar

drbyte

Sensei

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

Re: Turn off order confirmation email when keying orders manually?

If you believe this is necessary for your site, simply edit the checkout_process.php module and tell it not to send the email if the customer is a member of the specified group ... or whatever criteria you desire.

.
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.

18 Apr 2008, 5:27 AM
#8
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

Re: Turn off order confirmation email when keying orders manually?

Dr. Bytes,

includes/ modules/ checkout_process.php

  1. Line 76
  1. //send email notifications

$order->send_order_email($insert_id, 2);
$zco_notifier->notify('NOTIFY_CHECKOUT_PROCESS_AFTER_SEND_ORDER_EMAIL');

  1. Would this be correct:
  1. //send email notifications

//$order->send_order_email($insert_id, 2);
//$zco_notifier->notify('NOTIFY_CHECKOUT_PROCESS_AFTER_SEND_ORDER_EMAIL');

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

18 Apr 2008, 5:52 AM
#9
drbyte avatar

drbyte

Sensei

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

Re: Turn off order confirmation email when keying orders manually?

You don't need to comment out the notifier call.

And if you comment-out the send-order-email call, then NOBODY will ever get any order confirmation messages.

Dangerous, but if that's what you want, that's where to do it.

.
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.

20 Apr 2008, 5:33 AM
#10
fuzzybunny avatar

fuzzybunny

New Zenner

Join Date:
Sep 2007
Location:
Melbourne Australia
Posts:
60
Plugin Contributions:
0

Re: Turn off order confirmation email when keying orders manually?

DrByte:

If you believe this is necessary for your site, simply edit the checkout_process.php module and tell it not to send the email if the customer is a member of the specified group ... or whatever criteria you desire.

Thanks Haredo and DrByte.

This does seem the right place.

How would I select one or two groups to not receive the confirmation email? Or how do I select the groups who do receive the confirmation email?

Thank you very very much fro your assistance.

Max

@MaxOnTheHill
Molehill Web Works

22 Apr 2008, 1:02 PM
#11
fuzzybunny avatar

fuzzybunny

New Zenner

Join Date:
Sep 2007
Location:
Melbourne Australia
Posts:
60
Plugin Contributions:
0

Re: Turn off order confirmation email when keying orders manually?

SO . . .

Any advance on how to select the "discount group" that does not receive the order confirmation email?

Hope someone can give some guidance on this . . .

Thanks, Max

@MaxOnTheHill
Molehill Web Works

25 Apr 2008, 3:03 AM
#12
drbyte avatar

drbyte

Sensei

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

Re: Turn off order confirmation email when keying orders manually?

Run a query to look up the customers_group_pricing value from the customers table based on $_SESSION['customer_id']. If the number matches the group number you're wanting to exclude, take appropriate action.

.
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.