Forums / Managing Customers and Orders / Credit Card Split Email Not Working - 1.3.5

Credit Card Split Email Not Working - 1.3.5

Locked

Views: 4,240

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
30 Oct 2006, 7:56 PM
#1
choffman avatar

choffman

New Zenner

Join Date:
Mar 2005
Posts:
26
Plugin Contributions:
0

Credit Card Split Email Not Working - 1.3.5

Hey Zenners,
Since I upgraded to 1.3.5, I'm no longer receiving the middle digits of cc when an order is placed. This is the message I get:

MODULE_PAYMENT_CC_TEXT_MIDDLE_DIGITS_MESSAGE

Thoughts?
Craig

30 Oct 2006, 8:29 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Credit Card Split Email Not Working - 1.3.5

You're missing the updated language file
/includes/languages/english/modules/payment/cc.php

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

30 Oct 2006, 8:38 PM
#3
choffman avatar

choffman

New Zenner

Join Date:
Mar 2005
Posts:
26
Plugin Contributions:
0

Re: Credit Card Split Email Not Working - 1.3.5

Thanks for replying. That fixed it. I updated the file with the most current version and it seems to be working.

Thanks!
Craig Hoffman

6 Nov 2006, 3:35 PM
#4
dlaitila avatar

dlaitila

New Zenner

Join Date:
Sep 2005
Posts:
57
Plugin Contributions:
0

Re: Credit Card Split Email Not Working - 1.3.5

I have had this same problem, but some of my sites are still 1.2.7 and some are 1.3.5.

My question is this, can I get the latest version of updated language file
/includes/languages/english/modules/payment/cc.php and put it on the older sites? Will this work if I get the 1.3.6 verion of the updated language file
/includes/languages/english/modules/payment/cc.php and put it on my sites.

6 Nov 2006, 3:46 PM
#5
choffman avatar

choffman

New Zenner

Join Date:
Mar 2005
Posts:
26
Plugin Contributions:
0

Re: Credit Card Split Email Not Working - 1.3.5

I'm not sure about version 1.2.7. I used latest lang files (1.3.6) on a site running 1.3.5 and it seems to be working fine.

6 Nov 2006, 9:39 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: Credit Card Split Email Not Working - 1.3.5

The v1.3.6 module can be used on prior versions.

If you need to use it on v1.2.7, you'll have to make one change to the code of the module file:class cc [B]extends base [/B]{will have to be changed to:```
class cc {

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

8 Nov 2006, 3:14 PM
#7
dlaitila avatar

dlaitila

New Zenner

Join Date:
Sep 2005
Posts:
57
Plugin Contributions:
0

Re: Credit Card Split Email Not Working - 1.3.5

dlaitila:

I have had this same problem, but some of my sites are still 1.2.7 and some are 1.3.5.

My question is this, can I get the latest version of updated language file
/includes/languages/english/modules/payment/cc.php and put it on the older sites? Will this work if I get the 1.3.6 verion of the updated language file
/includes/languages/english/modules/payment/cc.php and put it on my sites.

I did some more testing on my sites and found that if I tried a test order on checkout without putting in my credit card number or even not including all 16 digits of the credit card, and found indeed that a message would come up and say that I had made an error or forgot my cc number.

My server's support person seems to think that maybe the middle numbers are occasionally not showing up because of the database.

Any thoughts or ideas so this won't happen anymore?

8 Nov 2007, 4:38 AM
#8
robbinssports avatar

robbinssports

New Zenner

Join Date:
Feb 2006
Location:
Utah, US
Posts:
6
Plugin Contributions:
0

Re: Credit Card Split Email Not Working - 1.3.5

I had this same problem. I was getting an email sent to me that had as the only content MODULE_PAYMENT_CC_TEXT_MIDDLE_DIGITS_MESSAGE. I went to an old version of Zen-Cart and compared the /includes/modules/payment/cc.php to the one that existed in my newer version. I changed the message creation line from:
$message = sprintf(MODULE_PAYMENT_CC_TEXT_MIDDLE_DIGITS_MESSAGE, $insert_id, $this->cc_middle);

...to this...:

    $message = 'Order #' . $insert_id . "\n\n" . 'Middle: ' . $this->cc_middle . "\n\n";

After I made the change, the email for the credit card middle digits started working.

I hope this helps anyone who might be having similar problems.

Richard Robbins
RobbinsSports.com - supplier of Sports Bags, Sports Uniforms, Sports Stopwatches, and more.

8 Nov 2007, 5:03 AM
#9
drbyte avatar

drbyte

Sensei

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

Re: Credit Card Split Email Not Working - 1.3.5

The more correct solution is to fix the missing define ...

If the constant name of MODULE_PAYMENT_CC_TEXT_MIDDLE_DIGITS_MESSAGE is missing from your cc language file, you'll only see the constant name in your email instead of its defined value.

It should be something lilke this:```
define('MODULE_PAYMENT_CC_TEXT_MIDDLE_DIGITS_MESSAGE', 'Please direct this email to the Accounting department so that it may be filed along with the online order it relates to: ' . "\n\n" . 'Order: %s' . "\n\n" . 'Middle Digits: %s' . "\n\n");


The FAQ which explains this is here: <https://www.zen-cart.com/tutorials/index.php?article=95>

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

28 Jan 2009, 3:03 PM
#10
billscheltema avatar

billscheltema

New Zenner

Join Date:
Jan 2007
Posts:
85
Plugin Contributions:
0

Re: Credit Card Split Email Not Working - 1.3.5

Hi again,

You know I am still having the same problem even though I have upgraded to 1.3.8 from 1.3.7.

I checked with the internet provider and they went through their system and found no errors.

How can i resolve this issue.

need help soon loosing orders.

Bill