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

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.


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 85 guests