1 Attachment(s)
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
1 Attachment(s)
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
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??
2 Attachment(s)
Re: Add logo to print on Invoice and packing slip
Quote:
Originally Posted by
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)
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
Re: Add logo to print on Invoice and packing slip
Quote:
Originally Posted by
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?
Re: Add logo to print on Invoice and packing slip
Quote:
Originally Posted by
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?
Re: Add logo to print on Invoice and packing slip
Are you trying to describe 2 different issues?
- Printing the logo on invoices
- 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.
Re: Add logo to print on Invoice and packing slip
Quote:
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
Re: Add logo to print on Invoice and packing slip
Quote:
Originally Posted by
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.
Re: Add logo to print on Invoice and packing slip
Quote:
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
Re: Add logo to print on Invoice and packing slip
Quote:
Originally Posted by
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
Re: Add logo to print on Invoice and packing slip
Quote:
Add logo to print on Invoice and packing slip
Why then is this titled as an Invoice/packing slip issue??
Re: Add logo to print on Invoice and packing slip
Quote:
Originally Posted by
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.
Re: Add logo to print on Invoice and packing slip
Quote:
Originally Posted by
RixStix
- 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.
1 Attachment(s)
Re: Add logo to print on Invoice and packing slip
Quote:
Originally Posted by
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.
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.
Re: Add logo to print on Invoice and packing slip
Quote:
Originally Posted by
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?
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.
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.