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.