Zen Cart Logo
Forums / Customization from the Admin / Add logo to print on Invoice and packing slip

Add logo to print on Invoice and packing slip

Views: 4,778

Results 1 to 20 of 20
8 May 2015, 11:46 PM
#1
dfontana avatar

dfontana

Zen Follower

Join Date:
May 2007
Location:
Conway, SC
Posts:
256
Plugin Contributions:
0

Add logo to print on Invoice and packing slip

Hi,

I just noticed this, I followed the tutorial to print the company logo on invoices and packing slips and appear in the admin. When I go to preview any product prior to saving the product, near the upper left corner of the preview, the UK flag is there and enlarged.

What happened and how can I get this fixed? I am attaching a screenshot of the issue.

Attachment #15281

8 May 2015, 11:59 PM
#2
dfontana avatar

dfontana

Zen Follower

Join Date:
May 2007
Location:
Conway, SC
Posts:
256
Plugin Contributions:
0

Re: Add logo to print on Invoice and packing slip

Also on some of the pages in admin, I have a large gap appearing, can someone tell me what is happening?

Attachment #15282

10 May 2015, 12:15 AM
#3
kobra avatar

kobra

Black Belt

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

Re: Add logo to print on Invoice and packing slip

What image prints on an invoice??

FTP the image located at //your_site/your_admin/images/logo.gif

View this FTP'd image - what is it??

10 May 2015, 5:08 PM
#4
dfontana avatar

dfontana

Zen Follower

Join Date:
May 2007
Location:
Conway, SC
Posts:
256
Plugin Contributions:
0

Re: Add logo to print on Invoice and packing slip

kobra:

What image prints on an invoice??

FTP the image located at //your_site/your_admin/images/logo.gif

View this FTP'd image - what is it??

Attachment #15283 This is first site I am working on.

Attachment 15284 This is from second site.

The code snippets for both are:

1st site: Cleverlycraftedcard
english.php
define('HEADER_ALT_TEXT', 'Admin Powered by Zen Cart :: The Art of E-Commerce');
define('HEADER_LOGO_WIDTH', '273px');
define('HEADER_LOGO_HEIGHT', '158px');
define('HEADER_LOGO_IMAGE', 'logo2.jpg');

stylesheet.css
.pageHeading img {width:273px;
height:158px}

@media print{
.pageheading img {width:3.79in;
height:2.19in}

header.php
zen_image(DIR_WS_IMAGES . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT, HEADER_LOGO_WIDTH, HEADER_LOGO_HEIGHT)

2nd Site DeelitefulDecor
English.php :
// added defines for header alt and text
define('HEADER_ALT_TEXT', 'Admin Powered by Zen Cart :: The Art of E-Commerce');
define('HEADER_LOGO_WIDTH', '200px');
define('HEADER_LOGO_HEIGHT', '70px');
define('HEADER_LOGO_IMAGE', 'smDeeLogo.jpg');

admin/includes/stylesheet.css
.pageHeading img{width:198px;
height:112px}

@media print {
.pageheading img {width:2.75in;
height:1.55in}

header.php
zen_image(DIR_WS_IMAGES . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT, HEADER_LOGO_WIDTH, HEADER_LOGO_HEIGHT)

11 May 2015, 5:43 PM
#5
kobra avatar

kobra

Black Belt

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

Re: Add logo to print on Invoice and packing slip

Change to a gif and name it "logo.gif"and upload replacing the one that exists at

at //your_site/your_admin/images/logo.gif

The english.php snippet you posted is only for the frontend NOT the admin

12 May 2015, 4:33 PM
#6
dfontana avatar

dfontana

Zen Follower

Join Date:
May 2007
Location:
Conway, SC
Posts:
256
Plugin Contributions:
0

Re: Add logo to print on Invoice and packing slip

kobra:

Change to a gif and name it "logo.gif"and upload replacing the one that exists at

at //your_site/your_admin/images/logo.gif

The english.php snippet you posted is only for the frontend NOT the admin

Thank you kobra, will try doing that. if I want to change the name of the logo to something else on the admin side, how would it be done or is it frowned on?

12 May 2015, 10:54 PM
#7
dfontana avatar

dfontana

Zen Follower

Join Date:
May 2007
Location:
Conway, SC
Posts:
256
Plugin Contributions:
0

Re: Add logo to print on Invoice and packing slip

kobra:

Change to a gif and name it "logo.gif"and upload replacing the one that exists at

at //your_site/your_admin/images/logo.gif

The english.php snippet you posted is only for the frontend NOT the admin

Hi, did that, when I preview products in the admin I still get the UK flag in the upper left, and multiple options have a large gap between the admin menu at the top and the page title a little further down. Any other ideas?

12 May 2015, 11:45 PM
#8
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: Add logo to print on Invoice and packing slip

Are you trying to describe 2 different issues?

  1. Printing the logo on invoices
  2. Flag that appears in admin on product pages

Printing the logo on invoices: see kobra's instructions
Flag in admin (that is only cosmetic that I can tell) /includes/languages/english/images/icon.gif
Find a GIF icon of whatever flag you want to appear, name it icon.gif and upload to that folder

Changing the filename of the actual logo and editing the files will only be troublesome when you start a future upgrade. At that time, you might realize that it was not worth the hassle of doing those namechanges.

12 May 2015, 11:48 PM
#9
kobra avatar

kobra

Black Belt

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

Re: Add logo to print on Invoice and packing slip

when I preview products in the admin I still get the UK flag in the upper left
This is only in the admin - - what does it appear like o the front end - - or what do you expect a preview to appear like

13 May 2015, 12:06 AM
#10
dfontana avatar

dfontana

Zen Follower

Join Date:
May 2007
Location:
Conway, SC
Posts:
256
Plugin Contributions:
0

Re: Add logo to print on Invoice and packing slip

kobra:

This is only in the admin - - what does it appear like o the front end - - or what do you expect a preview to appear like

Before changing the admin and printing of invoices and packing slips with our logos as I have this happening on 2 different sites, no flag appeared on the product preview page when you clicked preview to see the new item/changes to existing item. There is the UK flag on the page where you change existing product or add new product and that page is ok. My problem is the next page that appears afterwards when you click Preview.

I had screen shots posted of my issues when I started this thread. the other issue is in the Admin that some of the items have extra white space on it, does not happen on all the admin items.

13 May 2015, 12:10 AM
#11
kobra avatar

kobra

Black Belt

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

Re: Add logo to print on Invoice and packing slip

I had screen shots posted of my issues when I started this thread
Those 2 images are of the admin - - none of an invoice or packing slip as your post is titled

13 May 2015, 12:21 AM
#12
dfontana avatar

dfontana

Zen Follower

Join Date:
May 2007
Location:
Conway, SC
Posts:
256
Plugin Contributions:
0

Re: Add logo to print on Invoice and packing slip

kobra:

Those 2 images are of the admin - - none of an invoice or packing slip as your post is titled
.
Agreed, the invoice and packign slip are fine. My problems are in the display in the Admin that I would like to get fixed. Although it may be cosmetic in the admin, the people I am doing these 2 sites for are annoyed att he admin display problems

13 May 2015, 8:45 PM
#13
kobra avatar

kobra

Black Belt

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

Re: Add logo to print on Invoice and packing slip

Add logo to print on Invoice and packing slip
Why then is this titled as an Invoice/packing slip issue??

15 May 2015, 12:31 PM
#14
dfontana avatar

dfontana

Zen Follower

Join Date:
May 2007
Location:
Conway, SC
Posts:
256
Plugin Contributions:
0

Re: Add logo to print on Invoice and packing slip

kobra:

Why then is this titled as an Invoice/packing slip issue??
Sorry forthe confusion, I posted it with subject as I did so that hte community would know what I did . The issue is on the Admin side and do not know where the exploded UK flag is coming from. Everything is fine from following the tutorial to print the company logo on the invocie and packing slip except for the 2 issues in the admin.

  1. Certain admin pages have a large gap between the header of the page to where the page starts as the screen shotpreviously posted shows.
  2. UK Flag appears on product preview page when you edit product and click preview to confirm then update the product.
15 May 2015, 12:47 PM
#15
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: Add logo to print on Invoice and packing slip

RixStix:

  1. Flag that appears in admin on product pages

Flag in admin ** /includes/languages/english/images/icon.gif**

Find a GIF icon of whatever flag you want to use (google can be your friend), name it icon.gif and replace the stock flag with your new flag.

Changing the filename of the actual logo and editing the files will only be troublesome when you start a future upgrade. At that time, you might realize that it was not worth the hassle of doing those namechanges.

Are you still having problems with the flag icons in admin? Did providing the location of the flag icon not help? Replacing a file is a pretty basic operation.

15 May 2015, 1:12 PM
#16
dfontana avatar

dfontana

Zen Follower

Join Date:
May 2007
Location:
Conway, SC
Posts:
256
Plugin Contributions:
0

Re: Add logo to print on Invoice and packing slip

RixStix:

Are you still having problems with the flag icons in admin? Did providing the location of the flag icon not help? Replacing a file is a pretty basic operation.

The flag icons in admin are fine. My issue is when adding or editing a product and you click preview to continue saving the changes the following appears, it looks like the UK flag me exploded

Attachment #15300

Hope that clarifies my issue with the flag.

15 May 2015, 1:23 PM
#17
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: Add logo to print on Invoice and packing slip

I misunderstood. I thought the issue was the UK flag icon vs your desired flag icon.

Looks like someone might have edited the wrong file somewhere to display the icon 2 or 3 times its size causing it to look really crappy.

Have you checked the location of one flag vs the location of the other? That's about all I can offer.

15 May 2015, 3:42 PM
#18
dfontana avatar

dfontana

Zen Follower

Join Date:
May 2007
Location:
Conway, SC
Posts:
256
Plugin Contributions:
0

Re: Add logo to print on Invoice and packing slip

RixStix:

I misunderstood. I thought the issue was the UK flag icon vs your desired flag icon.

Looks like someone might have edited the wrong file somewhere to display the icon 2 or 3 times its size causing it to look really crappy.

Have you checked the location of one flag vs the location of the other? That's about all I can offer.

Hi Rick,

I'll take a look at the file location as soon as I can. The only files modified are as follows:

  1. admin/includes/languages/english.pp
  2. admin/includes/stylesheet.css
  3. admin/includes/header.php

could any of those be causing the issue with flag appear where it shouldn't be?

14 Jun 2015, 6:36 PM
#19
chervickers avatar

chervickers

New Zenner

Join Date:
Oct 2010
Location:
Indiana
Posts:
72
Plugin Contributions:
0

Re: Add logo to print on Invoice and packing slip

How would I change the Zencart logo in my admin to my own logo? I just upgraded and the my logo is lost. I did change the admin image file to be my own logo.gif, but that is not cutting it.

14 Jun 2015, 8:17 PM
#20
chervickers avatar

chervickers

New Zenner

Join Date:
Oct 2010
Location:
Indiana
Posts:
72
Plugin Contributions:
0

Re: Add logo to print on Invoice and packing slip

MY apologies. I do not know how to delete the above reply. I am all set.