Post by olynnow11 » Tue May 23, 2017 4:50 am

Hi,
In the email order confirmation, I'm trying to put name below firstname. Now they are both on a single row. I've checked catalog/view/theme/default/template/mail/order.tpl but I find only a generic name <?php echo $payment_address; ?>.
Where should I go to edit $payment_address block?

Thanks & regards

Newbie

Posts

Joined
Fri Dec 30, 2016 4:22 am

Post by IP_CAM » Tue May 23, 2017 6:34 am

according to this, in the controller/account/order.php: (may be some place else in your Version)

Code: Select all

if ($order_info['payment_address_format']) {
$format = $order_info['payment_address_format'];
} else {
$format = '{firstname} {lastname}' . "\n" . '{company}' . "\n" . '{address_1}' . "\n" . '{address_2}' . "\n" . '{city} {postcode}' . "\n" . '{zone}' . "\n" . '{country}';
}
and despite of the unknown version you use, :'( you could define it in the ADMIN Section.
Or then in the code, by adding an \n between {firstname} and {lastname}, like it's done in the other places.
Good Luck!
Ernie
---
Image

Attachments

first_lastname.png

first_lastname.png (79.11 KiB) Viewed 206 times


Please don't send me OC Forum Personal Messages, just contact: jti@jacob.ch
---
OC 1.5.6.5 LIGHT Test Site: http://www.bigmax.ch/shop/
OC 1.5.6.5 V-PRO Test Site: http://www.jacob.ch/shop/
My Github OC Site: https://github.com/IP-CAM
2'250+ FREE OC Extensions from the World's largest Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by olynnow11 » Wed May 24, 2017 2:34 pm

thanks a mil IP_CAM.
I didn't know you can format the address in admin. It worked :)

Newbie

Posts

Joined
Fri Dec 30, 2016 4:22 am
Who is online

Users browsing this forum: No registered users and 12 guests