If this is your first visit, check our documentation. To post, register or login.
Forums / Customization from the Admin / Admin Logo / Invoice Logo - update

Admin Logo / Invoice Logo - update

Started by imfsub12 on 10 Jan 2013, 2:15 AM · Views: 3,228

Results 1 to 7 of 7
10 Jan 2013, 2:15 AM
#1
imfsub12 avatar

imfsub12

Zen Follower

Join Date:
Aug 2008
Location:
Halifax, NS
Posts:
274
Plugin Contributions:
0

Admin Logo / Invoice Logo - update

I'm trying to locate the file that I can accually update the logo.gif to logo.png and the size of it..

Can't seem to track it down - have been doing searches for a while and they always the wrong files..

thanks

10 Jan 2013, 2:30 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Admin Logo / Invoice Logo - update

To define it as a png
admin/includes/languages/english.php

To replace it with your png
admin/index.php

Also in
admin/server_info.php

upload your png to
admin/images

Also create one to replace small_zen_logo.gif

Zen-Venom Get Bitten

11 Jan 2013, 12:47 AM
#3
imfsub12 avatar

imfsub12

Zen Follower

Join Date:
Aug 2008
Location:
Halifax, NS
Posts:
274
Plugin Contributions:
0

Re: Admin Logo / Invoice Logo - update

Vola it worked thanks

Rick

12 Jan 2021, 4:52 PM
#4
chrispardy avatar

chrispardy

New Zenner

Join Date:
Jan 2020
Location:
Boston MA
Posts:
14
Plugin Contributions:
0

Re: Admin Logo / Invoice Logo - update

I've was able to change the Admin Logo to my logo... but it squishes it. I can't find where the code is to change the size

Can someone help?

12 Jan 2021, 5:13 PM
#5
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,140
Plugin Contributions:
56

Re: Admin Logo / Invoice Logo - update

ChrisPardy:

I've was able to change the Admin Logo to my logo... but it squishes it. I can't find where the code is to change the size

Can someone help?
Those values are defined as constants which are present at the top of the /admin/includes/language/english.php (or your alternate language main file).

One of two methods. Since none of those values are actually language-related, you could create the file /admin/includes/extra_datafiles/logo_info.php that contains

<?php
//-Overriding the values in /includes/languages/english.php
define('HEADER_LOGO_WIDTH', '192');
define('HEADER_LOGO_HEIGHT', '68');
define('HEADER_LOGO_IMAGE', 'logo.gif');

... so that you're not modifying a core Zen Cart file; otherwise, edit the english.php file directly and make sure to comment your changes so that they're carried forward on your next Zen Cart upgrade.

13 Jan 2021, 4:35 PM
#6
chrispardy avatar

chrispardy

New Zenner

Join Date:
Jan 2020
Location:
Boston MA
Posts:
14
Plugin Contributions:
0

Re: Admin Logo / Invoice Logo - update

Thank you! I found it and it worked.

13 Jan 2021, 7:13 PM
#7
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,140
Plugin Contributions:
56

Re: Admin Logo / Invoice Logo - update

ChrisPardy:

Thank you! I found it and it worked.
Thanks for the report-back!