how to add the customer name to the email ?
As we all know that the order update email starts with a greeting, but it is supposed to have the customer name ??
Such as,
" Dear John Smith,
Thank you for your interest in Your Store products. Your order has been received and will be processed once payment has been confirmed.
..."
but how to add the Dear John Smith ( customer name ) to the email as an addressing ?
Thank you.
Hand Dryers
Bookstore Mod
QuickShop Module
Restricted Access - Compulsory Login
Template Override - Category Specific (vQmod)
Template Override - Brand Specific (vQmod)
How did you find out about us register question mod
Compulsory Login vQmod
Brands In Top Menu
zoom - Product Image - Auto on hover
edit catalog/language/english/mail/order.php
find
Code: Select all
$_['text_new_greeting'] = 'Thank you for your interest in %s products. Your order has been received and will be processed once payment has been confirmed.';
Code: Select all
$_['text_new_greeting'] = 'Dear %s,<br /><br />Thank you for your interest in %s products. Your order has been received and will be processed once payment has been confirmed.';
find
Code: Select all
$template->data['text_greeting'] = sprintf($language->get('text_new_greeting'), html_entity_decode($order_info['store_name'], ENT_QUOTES, 'UTF-8'));
Code: Select all
$template->data['text_greeting'] = sprintf($language->get('text_new_greeting'), $order_info['payment_firstname']. ' ' . $order_info['payment_lastname'], html_entity_decode($order_info['store_name'], ENT_QUOTES, 'UTF-8'));
Code: Select all
$text = sprintf($language->get('text_new_greeting'), html_entity_decode($order_info['store_name'], ENT_QUOTES, 'UTF-8')) . "\n\n";
Code: Select all
$text = sprintf($language->get('text_new_greeting'), $order_info['payment_firstname']. ' ' . $order_info['payment_lastname'], html_entity_decode($order_info['store_name'], ENT_QUOTES, 'UTF-8')) . "\n\n";
Maybe Daniel will just throw it in while at it
ALL Templates :: 1.5.1+ Templates :: 50%-75% PRICE DROP ONLY at OpencartStuff.com
Need i edit all the code ?? or just one is okay ?uksitebuilder wrote:If you are talking about the Confirmation Order, then it's a little more than just echoing some php and probably means nothing to the OP if they dont know PHP code
edit catalog/language/english/mail/order.php
findchange toCode: Select all
$_['text_new_greeting'] = 'Thank you for your interest in %s products. Your order has been received and will be processed once payment has been confirmed.';
edit: catalog/model/checkout/order.phpCode: Select all
$_['text_new_greeting'] = 'Dear %s,<br /><br />Thank you for your interest in %s products. Your order has been received and will be processed once payment has been confirmed.';
findchange toCode: Select all
$template->data['text_greeting'] = sprintf($language->get('text_new_greeting'), html_entity_decode($order_info['store_name'], ENT_QUOTES, 'UTF-8'));
findCode: Select all
$template->data['text_greeting'] = sprintf($language->get('text_new_greeting'), $order_info['payment_firstname']. ' ' . $order_info['payment_lastname'], html_entity_decode($order_info['store_name'], ENT_QUOTES, 'UTF-8'));
change toCode: Select all
$text = sprintf($language->get('text_new_greeting'), html_entity_decode($order_info['store_name'], ENT_QUOTES, 'UTF-8')) . "\n\n";
Code: Select all
$text = sprintf($language->get('text_new_greeting'), $order_info['payment_firstname']. ' ' . $order_info['payment_lastname'], html_entity_decode($order_info['store_name'], ENT_QUOTES, 'UTF-8')) . "\n\n";
I have compiled it into a vqmod... please download and try out... (Please note that i haven't had time to try it out myself yet...
Chears
jem
Attachments
Adds Customer Name to Email...
Hand Dryers
Bookstore Mod
QuickShop Module
Restricted Access - Compulsory Login
Template Override - Category Specific (vQmod)
Template Override - Brand Specific (vQmod)
How did you find out about us register question mod
Compulsory Login vQmod
Brands In Top Menu
zoom - Product Image - Auto on hover
Hi uksitebuilder,uksitebuilder wrote:If you are talking about the Confirmation Order, then it's a little more than just echoing some php and probably means nothing to the OP if they dont know PHP code
edit catalog/language/english/mail/order.php
findchange toCode: Select all
$_['text_new_greeting'] = 'Thank you for your interest in %s products. Your order has been received and will be processed once payment has been confirmed.';
edit: catalog/model/checkout/order.phpCode: Select all
$_['text_new_greeting'] = 'Dear %s,<br /><br />Thank you for your interest in %s products. Your order has been received and will be processed once payment has been confirmed.';
findchange toCode: Select all
$template->data['text_greeting'] = sprintf($language->get('text_new_greeting'), html_entity_decode($order_info['store_name'], ENT_QUOTES, 'UTF-8'));
findCode: Select all
$template->data['text_greeting'] = sprintf($language->get('text_new_greeting'), $order_info['payment_firstname']. ' ' . $order_info['payment_lastname'], html_entity_decode($order_info['store_name'], ENT_QUOTES, 'UTF-8'));
change toCode: Select all
$text = sprintf($language->get('text_new_greeting'), html_entity_decode($order_info['store_name'], ENT_QUOTES, 'UTF-8')) . "\n\n";
Code: Select all
$text = sprintf($language->get('text_new_greeting'), $order_info['payment_firstname']. ' ' . $order_info['payment_lastname'], html_entity_decode($order_info['store_name'], ENT_QUOTES, 'UTF-8')) . "\n\n";
I followed the steps.
the customer address dislayed, but the invoice the the text footer was changed in the order confirm email. please find the attachment for reference.
hope to hear from you soon.
Attachments
confirm email.jpg (108.43 KiB) Viewed 5267 times
Hand Dryers
Bookstore Mod
QuickShop Module
Restricted Access - Compulsory Login
Template Override - Category Specific (vQmod)
Template Override - Brand Specific (vQmod)
How did you find out about us register question mod
Compulsory Login vQmod
Brands In Top Menu
zoom - Product Image - Auto on hover
Hi Jem,Jeremy Fisk wrote:try the vqmod... (on your original files)
thank you, i am trying on your solution and will let you know the result.
thank you very much for your helps.
Chears
jem
Hand Dryers
Bookstore Mod
QuickShop Module
Restricted Access - Compulsory Login
Template Override - Category Specific (vQmod)
Template Override - Brand Specific (vQmod)
How did you find out about us register question mod
Compulsory Login vQmod
Brands In Top Menu
zoom - Product Image - Auto on hover
I'm looking at setting this up so I have the customers name but I also want to add their email address to my order confirmation. Can someone help tell me which files I need to edit and what to put? If its a separate issue, I'll start a new thread.
Thanks
Use that with this one and it will also add their name to the email greeting
I tried using the vQmod but I mine won't load anything! Tried it once for an import/export extension but nothing worked, had to manually code instead.uksitebuilder wrote:If you mean the email you receive, then there is also a vqmod for changing the system to send you a duplicate HTML email of what the customer receives when they order
Use that with this one and it will also add their name to the email greeting
I didn't want to have all the details a customer gets as that was too much info, but I figured out a way to get what I wanted to work here http://forum.opencart.com/viewtopic.php?f=20&t=44841
Thanks anyway, now need to fix my vQmod!
hi Jem,Jeremy Fisk wrote:try the vqmod... (on your original files)
i got the same result that the customized footer does not display. see the attachment.
please help, thank.
Attachments
confirm email.jpg (108.43 KiB) Viewed 5220 times
Checkout Our OpenCart powered Stores
Sandcarving Systems | Glass Banks
Ernie
OpenShop v1.7 (OC v.1.5.6.1-2-3-4)
---
$_['text_new_greeting'] = 'Dear %s,<br><br>Thank you for your interest in and order by %s . Your order .....
$_['text_new_greeting'] = 'Hallo %s,<br><br>Vielen Dank für Ihr Interesse und Ihre Bestellung bei %s. Wir haben .....
---
ipc.li/shop/
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Did you install the vqmod for your store? If it is installed, i prefer to send you a xml file for adding the customer name into the email without touching the core code.
EMail: support@ocaddons.com
Users browsing this forum: Google [Bot] and 264 guests