Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change oscommerce logo in invoice, packing slip


jerrysgirl

Recommended Posts

Greetings-

 

How do you change the osCommerce logo that is on the printed invoice and packing slip.

 

I have look everywhere in the administrative panel, and didn't see how to change this image.

 

Thanks in advance for any assistance!

 

Have a wonderfully blessed day!

Link to comment
Share on other sites

Sorry about that here is the code and then the code to change.

 

htdocs/admin/includes/header.php

<?php
/*
 $Id: header.php,v 1.19 2002/04/13 16:11:52 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/

 if ($messageStack->size > 0) {
echo $messageStack->output();
 }
?>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
<td><?php echo tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce', '204', '50'); ?></td>
<td align="right"><?php echo '<a href="http://www.oscommerce.com" target="_blank">' . tep_image(DIR_WS_IMAGES . 'header_support.gif', HEADER_TITLE_SUPPORT_SITE, '50', '50') . '</a>??<a href="' . tep_catalog_href_link() . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_ONLINE_CATALOG, '53', '50') . '</a>??<a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_administration.gif', HEADER_TITLE_ADMINISTRATION, '50', '50') . '</a>'; ?>??</td>
 </tr>
 <tr class="headerBar">
<td class="headerBarContent">??<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '" class="headerLink">' . HEADER_TITLE_TOP . '</a>'; ?></td>
<td class="headerBarContent" align="right"><?php echo '<a href="http://www.oscommerce.com" class="headerLink">' . HEADER_TITLE_SUPPORT_SITE . '</a> ?|? <a href="' . tep_catalog_href_link() . '" class="headerLink">' . HEADER_TITLE_ONLINE_CATALOG . '</a> ?|? <a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '" class="headerLink">' . HEADER_TITLE_ADMINISTRATION . '</a>'; ?>??</td>
 </tr>
</table>

 

 

Now where it says...

<td><?php echo tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce', '204', '50'); ?></td>

 

change oscommerce.gif to whatever the image is

change osCommerce to Your Company Name

204 is the width of the image

50 is the height

 

BUT YOU NEED TO PUT YOUR IMAGE IN THE DIRECTORY BELOW

/htdocs/admin/images

 

 

Now I hope that explains it better for you.

Kelly Karnetsky

Link to comment
Share on other sites

Wow!

 

Yes, that explains it very well!

 

Thanks again for your assistance!

 

Have a wonderfully blessed day.

It is actually in invoice.php where you will change your image, the rest is correct. Header.php is where you can change the header image at the top of your pages. to change the invoice image, you will see at invoice.php is where you do it. He just mis-stated header.php.

Hope this helps, be well!

"I must admit that I personally measure success in terms of the contributions an individual makes to her or his fellow human beings."

---Margaret Mead---

 

"The answer is never the answer. What's really interesting is the mystery. If you seek the mystery instead of the answer, you'll always be seeking. I've never seen anybody really find the answer -- they think they have, so they stop thinking. But the job is to seek mystery, evoke mystery, plant a garden in which strange plants grow and mysteries bloom. The need for mystery is greater than the need for an answer.

--Ken Kesey"

Link to comment
Share on other sites

  • 4 weeks later...
any idea how to edit the text fonts and sizes?

 

say you use these slips for mailing as to stick on teh box it isnt very clear where to send and where its from.

 

thanks

 

go and edit admin/includes/stylesheet.css

if you look at the code in admin/invoice.php you'll see it uses things like:

 

<td class="main">

 

that "class" attributes are specified in the css file under ".main"

i'd suggest:

- duplicate the class declarations you want to change

- add a prefix (or suffix), like ".invoice_main" so not to mess with any other use of the same class

- change attributes (font size, color, etc..)

 

hope that helps

 

p.s. sorry for pointing it out, but what a very unfortunate nick yours is... it should either be "mafioso" or "mafiusu", but in both instances i find it a very sad term... :/

Link to comment
Share on other sites

For those who also want to change their logo in admin and on the invoice etc. there is a much simpler way. Just create a new image in the correct size, save it as oscommerce.gif and upload it to the admin/images/ folder. No need to edit any files.

 

Vger

Link to comment
Share on other sites

u lost me

 

i just edited the php file in dreamweaver to overwrite the css.

 

did the job.

 

rearranged the tables and stuff. worked out perfect.

 

to much stuffing around with css and php for a simple thing.

 

 

Thanks anayway

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...