Post by supak111 » Tue Aug 06, 2019 4:17 am

Hi everyone, the email you receive with a new order I need to make the shipping address double space. I'm talking about the more detail email, like the ones you use to get in OC2

I think all I need to do is add a few html line-breaks somewhere, but I'm not sure to which file in opencart 3.0.3.2. Some help you be appreciated

New member

Posts

Joined
Fri Feb 13, 2015 12:09 pm

Post by straightlight » Tue Aug 06, 2019 4:49 am

catalog/controller/mail/order.php file - add() method.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by supak111 » Tue Aug 06, 2019 5:25 am

Sorry total newbee to php, I assume this is the core that needs editing

Code: Select all

		if ($order_info['shipping_address_format']) {
			$format = $order_info['shipping_address_format'];
		} else {
			$format = '{firstname} {lastname}' . "\n" . '{company}' . "\n" . '{address_1}' . "\n" . '{address_2}' . "\n" . '{city} {postcode}' . "\n" . '{zone}' . "\n" . '{country}';
		}

New member

Posts

Joined
Fri Feb 13, 2015 12:09 pm

Post by straightlight » Tue Aug 06, 2019 8:10 am

The \n can be added aside each other where you need it to be more spaced as opposed to BR in this case.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by ostechnologies » Tue Aug 06, 2019 2:46 pm

You can change the address format in Admin - System - Localisation - Country - EDIT COUNTRY - ADDRESS FORMAT Section.

Opencart Expert | sales[at]ost.agency
Skype - manish.osuniverse | Gtalk - manishmt

Extensions for Opencart @ https://www.ost.agency/product/product- ... extensions
ost.agency - ecommerce website design, development and digital company


User avatar
Active Member

Posts

Joined
Mon Apr 06, 2015 1:30 pm
Who is online

Users browsing this forum: No registered users and 8 guests