Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Invoice & Packing slips & logos


schatham

Recommended Posts

I finally got Paypal to work, and am working now on the look of the invoices.

 

I got the store's logo to print on it, but have an issue now, with the general look of it.

 

What I want is to have

 

Store Name [LOGO

Store Address .....

Store City ST ZIP LOGO]

 

(well, a better way to describe it would be the Store Name, address & city state zip on the left hand side of the page, and the logo say right justified on the right hand side of the page).

 

 

what I've got is:

[LOGO

.......

LOGO]

 

Store Name

Store Address

Store City ST ZIP

 

.... in other words a lot of dead space at the top of the invoice & the packing slip. Things are justified like I want them, but not justified on the same area of the page I want them.

 

Is there a way to put these two items on the same part of the page, with the Name & Address to the left, and the logo to the right?

 

Also, how do you change the font type on it? The font above the line on either is an Times New Roman type, and the stuff below it looks like an arial type font.

 

Any help appreciated.

 

SC

Link to comment
Share on other sites

Can you reply with a snippet from your admin/invoice.php file? from there you can easily set fonts and mess around with the look and feel of the invoice page with a little HTML.

 

 

Here it is:

 

 

<table border="0" width="100%" cellspacing="0" cellpadding="2">
 <tr>
   <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
     <tr>
       <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_CATALOG_IMAGES . 'riverhouselogo.jpg', STORE_NAME); ?></td>
     </tr>
   </table></td>
 </tr>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><?php echo nl2br(STORE_NAME_ADDRESS); ?></td>
</tr>
</table>
  <tr>
   <td><table width="100%" border="0" cellspacing="0" cellpadding="2">
     <tr>
       <td colspan="2"><?php echo tep_draw_separator(); ?></td>
     </tr>
     <tr>
       <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2">
         <tr>
           <td class="main"><b><?php echo ENTRY_SOLD_TO; ?></b></td>
         </tr>
         <tr>
           <td class="main"><?php echo tep_address_format($order->customer['format_id'], $order->billing, 1, '', '<br>'); ?></td>
         </tr>
         <tr>
           <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td>
         </tr>
         <tr>
           <td class="main"><?php echo $order->customer['telephone']; ?></td>
         </tr>
         <tr>
           <td class="main"><?php echo '<a href="mailto:' . $order->customer['email_address'] . '"><u>' . $order->customer['email_address'] . '</u></a>'; ?></td>
         </tr>
       </table></td>
       <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2">
         <tr>
           <td class="main"><b><?php echo ENTRY_SHIP_TO; ?></b></td>
         </tr>
         <tr>
           <td class="main"><?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br>'); ?></td>
         </tr>
       </table></td>
     </tr>
   </table></td>

Link to comment
Share on other sites

to change text to a different font, add in an inline style like this:

 

<td class="main" style="font-family: Times New Roman;">Your Text Here</td>

(Be sure to add the semi-colon at the end of the font name)

 

Check out this list for acceptable font-families that work on most all computers

 

In terms of the layout, try removing <?php echo tep_draw_separator(); ?> and see if that condenses any vertical space.

 

What I did with my invoice.php page is just create a universal image header with our logo, address, phone number, etc. as a wide header image instead of trying to coax every html table tag to fit exactly right. If you wanted to PM me your entire invoice.php code (if its relitively close to the stock oscommerce invoice) I could help wrestle the html with you.

 

-Evan

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...