I recently was part of a team that launched MyCellPhoneTutor.com. The site is a WordPress website and uses the Cart66 shopping cart plugin to handle all of the e-commerce functionality. This wasn’t my first rodeo with Cart66, but it was the first time (for some reason) that I noticed customers were being sent two receipts when they made a purchase. They were being receipted from MyCellPhoneTutor.com as well as from Authorize.net.
I only wanted one receipt to be sent to the customer. In this case I wanted it to come from MyCellPhoneTutor.com and not from Authorize.net. I did a quick search and found my answer. I needed to set the x_email_customer field to false. I couldn’t find any mention of the field in Cart66 user’s guide, nor could I find it mentioned in any of the php files. I later learned that the field was defaulted to true and had to be explicitly set to false to disable the emails. I did a little more scanning of the code and I found this section in the Cart66AuthorizeNet.php file:
// some default values
What you want to do to stop the Authorize.net emails, as you have probably already figured out, is to add this line of code just below the above snippet:
Don’t forget to upload the changes to your server. After you do, the Authorize.net auto-generated emails should stop immediately.