You'll have to hard-code the changes into /includes/modules/create_account.php
You'll have to hard-code the changes into /includes/modules/create_account.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.
Wow! That is twice in one day! Thanks for helping me again, DrByte.
I found this:Changed the bolded passage to:// build the message content
$name = $firstname . ' ' . $lastname;
if (ACCOUNT_GENDER == 'true') {
if ($gender == 'm') {
$email_text = sprintf(EMAIL_GREET_MR, $lastname);
} else {
$email_text = sprintf(EMAIL_GREET_MS, $lastname);
}
} else {
$email_text = sprintf(EMAIL_GREET_NONE, $firstname);
}
$html_msg['EMAIL_GREETING'] = str_replace('\n','',$email_text);
$html_msg['EMAIL_FIRST_NAME'] = $firstname;
$html_msg['EMAIL_LAST_NAME'] = $lastname;
$email_text = sprintf(EMAIL_GREET_NONE, $name);
This seemed to work. But now the problem is that there is no comma after the customers name. lololol... if it ain't one ting, its ta'other!
Any idea on how I can add the punctuation?
I would like my email to read:
Dear John Smith,
I think I need to put in one of the two passages I quoted above. I don't know which, where or how.
By how, I mean I don't know how to code it in, even if I knew where to put it. I can kind of understand what php is doing, but I can only copy and paste it.
For instance, I understood the big clue to fix my first problem was this:
$name = $firstname . ' ' . $lastname;
Then I just had to copy/paste.
Hate to bug again, but can you help one more time?
Add your comma in the language file, after the %s:Code:define('EMAIL_GREET_NONE', 'Dear %s,' . "\n\n");
.
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.
You are the greatest! Thank you so much!
![]()
Hello,
I have a similar predicament that involves the first name last name error.
It seems as though my email greetings aren't consistent. On some, the $EMAIL_FIRST_NAME $EMAIL_LAST_NAME command works fine; such as in the email_template_checkout.html and the email_template_gv_mail.html
However, in my email template_order_status.html which calls the same command line, it displays the text $EMAIL_FIRST_NAME $EMAIL_LAST_NAME - not the customer's name.
I don't know what's causing this problem on this particular template. Help..
- Saydie
That's because the Admin order-status emails are built to use $EMAIL_CUSTOMERS_NAME which is the name of the customer as stored in the order details in the database.
.
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.