How to stop double receipts with Cart66

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:

<pre>

// some default values
$this->addField(‘x_version’, ’3.1′);
$this->addField(‘x_delim_data’, ‘TRUE’);
$this->addField(‘x_delim_char’, ‘|’);
$this->addField(‘x_url’, ‘FALSE’);
$this->addField(‘x_type’, ‘AUTH_CAPTURE’);
$this->addField(‘x_method’, ‘CC’);
$this->addField(‘x_relay_response’, ‘FALSE’);

</pre>

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:

<pre>

$this->addField(‘x_email_customer’, ‘FALSE’);

</pre>

Don’t forget to upload the changes to your server. After you do, the Authorize.net auto-generated emails should stop immediately.

  1. Bobby says:

    Brandon, we have posted a page on our site on how to disable that email being sent from authorize.net.

    It’s not advisable to modify the plugin’s code since the next upgrade would undo any customizations that you’ve done.

    Thanks for posting this concern so that we know it’s an issue that customers might be dealing with.

  2. Andre says:

    There is actually a setting in the authorize.net account to turn that off without modifying the plugin code. Check out this tutorial for using that: http://cart66.com/2011/turn-off-duplicate-authorize-net-receipts/

  3. dbshoupe says:

    Thanks for the information! I poked around in Authorize.net and in the Cart66 forums but couldn’t find anything. I guess I didn’t look closely enough.