Post by igalsm » Mon Oct 17, 2016 2:36 am

Hello, is it possible for OC 2.2 use "store owner" instead of "store name" in the invoice?

New member

Posts

Joined
Tue Sep 27, 2016 4:26 am

Post by EvolveWebHosting » Mon Oct 17, 2016 8:47 am

igalsm wrote:Hello, is it possible for OC 2.2 use "store owner" instead of "store name" in the invoice?
Yes you can do this by changing the text in the language file. I don't have the files in front of me but it should be in admin/language/en-gb/sale/

Image
50% Off SSD Shared Hosting w/ cPanel
Detailed guide on how to install Opencart


User avatar
Active Member

Posts

Joined
Fri Mar 27, 2015 11:13 pm
Location - Denver, Colorado, USA

Post by fido-x » Mon Oct 17, 2016 10:46 am

igalsm wrote:Hello, is it possible for OC 2.2 use "store owner" instead of "store name" in the invoice?
Could you be more specific as to what you mean by "invoice", e.g. the email receipt the customer receives, the invoice in the customer account, the invoice generated in the admin?

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by igalsm » Tue Oct 18, 2016 1:32 am

I mean the invoice genereted in the admin.
Thanks

New member

Posts

Joined
Tue Sep 27, 2016 4:26 am

Post by fido-x » Tue Oct 18, 2016 6:57 am

In admin/controller/sale/order.php, at lines 1555 to 1565, you'll find the following block of code:

Code: Select all

if ($store_info) {
	$store_address = $store_info['config_address'];
	$store_email = $store_info['config_email'];
	$store_telephone = $store_info['config_telephone'];
	$store_fax = $store_info['config_fax'];
} else {
	$store_address = $this->config->get('config_address');
	$store_email = $this->config->get('config_email');
	$store_telephone = $this->config->get('config_telephone');
	$store_fax = $this->config->get('config_fax');
}
Add in the store owner as follows:

Code: Select all

if ($store_info) {
	$store_owner = $store_info['config_owner'];
	$store_address = $store_info['config_address'];
	$store_email = $store_info['config_email'];
	$store_telephone = $store_info['config_telephone'];
	$store_fax = $store_info['config_fax'];
} else {
	$store_owner = $this->config->get('config_owner');
	$store_address = $this->config->get('config_address');
	$store_email = $this->config->get('config_email');
	$store_telephone = $this->config->get('config_telephone');
	$store_fax = $this->config->get('config_fax');
}
Then, at what should now be line 1710, find and replace:

Code: Select all

'store_name'       => $order_info['store_name'],
with:

Code: Select all

'store_name'       => $store_owner,

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by igalsm » Wed Oct 19, 2016 12:43 am

Thank you it works

New member

Posts

Joined
Tue Sep 27, 2016 4:26 am

Post by KeyLeeAM » Wed Oct 19, 2016 3:55 pm

Of course, you can customize many thing to build your brand with store name.

Newbie

Posts

Joined
Thu Sep 08, 2016 12:43 pm
Who is online

Users browsing this forum: No registered users and 34 guests