Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Velveeta -------> Or anyone else?


SpinerC

Recommended Posts

K, I went into the Admin folder again for the Invoice and Packing Slips php files and found this series of codes that I was able to make "some" changes:

 

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html <?php echo HTML_PARAMS; ?>>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

<title><?php echo TITLE; ?></title>

<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">

</head>

<body marginwidth="2" marginheight="2" topmargin="2" bottommargin="2" leftmargin="2" rightmargin="2" bgcolor="#FFFFFF">

<!-- body_text //-->

 

When I removed the <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> the font changed.

 

When I added in a seriese of codes from the css site you gave me, it didn't do anything, no matter how much I altered it for the left margin to at least see if I could get something, nothing.

 

I also tried changing the "body marginwidth" line by removing, adding etc.... and still no change and I did try to remove the

<?php echo HTML_PARAMS; ?> as well and nope.

 

If anyone has a suggestions?

 

I would like to get the margins of the Invoice and Packing Slips to one inch at least, all the way around the page for printing purposes cause, it is just too close to the edge.

 

Thank you for all the input over the last few months to all who have helped me, it has gone very well! :)

 

Sincerely

Charlene :)

Link to comment
Share on other sites

When I removed the <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> the font changed.

This is because you removed its link to the stylesheet, so all of the styles that were defined in the stylesheet are now unknown to the page, and it looks different when it renders...

 

When I added in a seriese of codes from the css site you gave me, it didn't do anything, no matter how much I altered it for the left margin to at least see if I could get something, nothing.

This is also because the stylesheet link is gone, so any changes you make to the stylesheet aren't going to have any effect on the file until you put that stylesheet link back in place...

 

What you're going to need to do is take something like this:

 

<td><table width="100%" border="0" cellspacing="0" cellpadding="0">

 

Just one of the regular series of td/table elements that are nested in that file, and do something either like this:

 

<td><table class="biggerMargins">

 

And then in the stylesheet make an entry like this:

 

.biggerMargins {
 border: 0px;
 spacing: 0;
 padding-left: 50px;
}

 

Orrrrrr you could do the same thing like this, although you'd have to change each location for it if you decided to change it in the future, rather than just the class definition in the stylesheet:

 

<td><table style="border: 0px; spacing: 0px; padding-left: 50px;">

 

Richard.

Richard Lindsey

Link to comment
Share on other sites

What you're going to need to do is take something like this:

 

<td><table width="100%" border="0" cellspacing="0" cellpadding="0">

 

Just one of the regular series of td/table elements that are nested in that file, and do something either like this:

 

<td><table class="biggerMargins">

 

To make sure I understand, if I find the area in the admin/invoice.php and the admin/packingslip.php and add this code in place of the other one? :huh: :blink: :huh: :blink:

 

Thank you for the codes and guidence... it is like learning a whole new language! lol! :lol:

 

Sincerely

Charlene :)

Link to comment
Share on other sites

To make sure I understand, if I find the area in the admin/invoice.php and the admin/packingslip.php and add this code in place of the other one? :huh: :blink: :huh: :blink:

 

Thank you for the codes and guidence... it is like learning a whole new language! lol! :lol:

 

Sincerely

Charlene :)

Rightio, and make sure you add that stylesheet reference back in, because if you go with the class="whatever" method, it's going to be looking for that class entry in the stylesheet file...

 

Richard.

Richard Lindsey

Link to comment
Share on other sites

Nope...... :( :'( :'( :unsure:

 

I tried it everywhere possible in the admin/packagingslip and nope, no go, didn't change anything but, I did find how to space things better lol!! so it was a learning experience, none the less :)

 

And yep, I did add those codes back in before.

 

Thanks for trying...

 

Sincerely

Charlene :D

Link to comment
Share on other sites

Nope...... :( :'( :'( :unsure:

 

I tried it everywhere possible in the admin/packagingslip and nope, no go, didn't change anything but, I did find how to space things better lol!! so it was a learning experience, none the less :)

 

And yep, I did add those codes back in before.

 

Thanks for trying...

 

Sincerely

Charlene :D

Can you post your current version of packingslip.php up here, as well as the stylesheet from admin/includes?

 

Richard.

Richard Lindsey

Link to comment
Share on other sites

Can you post your current version of packingslip.php up here, as well as the stylesheet from admin/includes?

 

Richard.

 

This is the file from admin/packingslip.php

 

<?php
/*
 $Id: packingslip.php,v 1.7 2003/06/20 00:40:10 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2003 osCommerce

 Released under the GNU General Public License
*/

 require('includes/application_top.php');

 require(DIR_WS_CLASSES . 'currencies.php');
 $currencies = new currencies();

 $oID = tep_db_prepare_input($HTTP_GET_VARS['oID']);
   //get the date from the order table
 $date_resource = tep_db_query("select date_purchased from " . TABLE_ORDERS . " where orders_id = '" . (int)$oID . "'");
 //get the array from the result
 $date = mysql_fetch_array($date_resource);
 //get the date as a string from the result
$date_purchased = substr($date['date_purchased'], 5, 2) . '/' . substr($date['date_purchased'], 8, 2) . '/' . substr($date['date_purchased'], 0, 4);
 $orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where orders_id = '" . (int)$oID . "'");
 include(DIR_WS_CLASSES . 'order.php');
 $order = new order($oID);
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
</head>
<body marginwidth="0" marginheight="10" topmargin="10" bottommargin="10" leftmargin="10" rightmargin="10" bgcolor="#FFFFFF">
<!-- body_text //-->
<tr>
   <td><table border="0" width="100%" cellspacing="2" cellpadding="4">
<tr>
   <td><table border="0" width="100%" cellspacing="2" cellpadding="4">
     <tr><br><br>
       <td class="pageHeading"><?php echo nl2br(STORE_NAME_ADDRESS); ?></td>
     </tr>
   </table></td>
 </tr>
 <tr>
  <td><table width="100%" border="0" cellspacing="2" cellpadding="2">
     <tr>
       <td colspan="2"><?php echo tep_draw_separator(); ?></td>
     </tr>
     <tr>
       <td valign="top"><table width="100%" border="0" cellspacing="2" 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->customer, 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="2" 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>
 </tr>
 <tr>
   <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td>
 </tr>
     <tr>
   <td><table border="0" cellspacing="2" cellpadding="4">
<tr>
   	<td class="main"><b><?php echo ENTRY_ORDER_NUMBER; ?></b></td>
       	<td class="main"><?php echo $oID; ?></td>	  
</tr>
<tr>
       	<td class="main"><b><?php echo ENTRY_ORDER_DATE; ?></b></td>
       	<td class="main"><?php echo $date_purchased; ?></td>	  
</tr>    
<tr>
       <td class="main"><b><?php echo ENTRY_PAYMENT_METHOD; ?></b></td>
       <td class="main"><?php echo $order->info['payment_method']; ?></td>
     </tr>
   </table></td>
 </tr>
 <tr>
   <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td>
 </tr>
 <tr>
   <td><table border="0" width="100%" cellspacing="2" cellpadding="4">
     <tr class="dataTableHeadingRow">
       <td class="dataTableHeadingContent" colspan="0"><?php echo TABLE_HEADING_QUANTITY; ?></td>
       <td class="dataTableHeadingContent" colspan="0"><?php echo TABLE_HEADING_PRODUCTS; ?></td>
       <td class="dataTableHeadingContent" colspan="0"><?php echo TABLE_HEADING_PRODUCTS_MODEL; ?></td>
     </tr>
<?php
   for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {
     echo '      <tr class="dataTableRow">' . "\n" .
          '        <td class="dataTableContent" valign="top" align="left">' . $order->products[$i]['qty'] . ' x</td>' . "\n" .
          '        <td class="dataTableContent" valign="top">' . $order->products[$i]['name'];

     if (isset($order->products[$i]['attributes']) && (sizeof($order->products[$i]['attributes']) > 0)) {
       for ($j=0, $k=sizeof($order->products[$i]['attributes']); $j<$k; $j++) {
         echo '<br><nobr><small> <i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'];
         echo '</i></small></nobr>';
       }
     }

     echo '        </td>' . "\n" .
          '        <td class="dataTableContent" valign="top">' . $order->products[$i]['model'] . '</td>' . "\n" .
          '      </tr>' . "\n";
   }
?>
   </table></td>
 </tr>
</table>
<!-- body_text_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

 

And this is the stylesheet:

 

/*
 $Id: stylesheet.css,v 1.56 2003/06/30 20:04:02 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2003 osCommerce

 Released under the GNU General Public License
*/

.boxText { font-family: Verdana, Arial, sans-serif; font-size: 11px; }
.errorBox { font-family : Verdana, Arial, sans-serif; font-size : 12px; background: #ffb3b5; font-weight: bold; }
.stockWarning { font-family : Verdana, Arial, sans-serif; font-size : 12px; color: #cc0033; }
.productsNotifications { background: #f2fff7; }
.orderEdit { font-family : Verdana, Arial, sans-serif; font-size : 12px; color: #70d250; text-decoration: underline; }

BODY {
 background: #ffffff;
 color: #000000;
 margin: 0px;
}

A {
 color: #000080;
 font-weight: bold;
 text-decoration: none;
}

A:hover {
 color: #B22222;
 text-decoration: underline;
}

FORM {
display: inline;
}

TR.header {
 background: #ffffff;
}

TR.headerNavigation {
 background: #b6b7cb;
 width: 100%;
}

TD.headerNavigation {
 font-family: Verdana, Arial, sans-serif;
 font-size: 13px;
 background: #b6b7cb;
 color: #000080;
 font-weight: bold;
}

A.headerNavigation { 
 color: #000000;
 font-weight: bold; 
}

A.headerNavigation:hover {
 color: #191970;
}

TR.headerError {
 background: #ff0000;
}

TD.headerError {
 font-family: Tahoma, Verdana, Arial, sans-serif;
 font-size: 12px;
 background: #ff0000;
 color: #ffffff;
 font-weight : bold;
 text-align : center;
}

TR.headerInfo {
 background: #00ff00;
}

TD.headerInfo {
 font-family: Tahoma, Verdana, Arial, sans-serif;
 font-size: 12px;
 background: #00ff00;
 color: #ffffff;
 font-weight: bold;
 text-align: center;
}

TR.footer {
 background: #b6b7cb;
}

TD.footer {
 font-family: Verdana, Arial, sans-serif;
 font-size: 11px;
 background: #b6b7cb;
 color: #000000;
 font-weight: bold;
}

.infoBox {
 background: #b6b7cb;
}

.infoBoxContents {
 background: #f8f8f9;
 font-family: Verdana, Arial, sans-serif;
 font-size: 11px;
}

.infoBoxNotice {
 background: #f99;
}

.infoBoxNoticeContents {
 background: #FFE6E6;
 font-family: Verdana, Arial, sans-serif;
 color: #000080; 
 font-size: 12px;
}

TD.infoBoxHeading {
 font-family: Verdana, Arial, sans-serif;
 font-size: 12px;
 font-weight: bold;
 background: #b6b7cb;
 color: #000000;
}

TD.infoBox, SPAN.infoBox {
 font-family: Verdana, Arial, sans-serif;
 font-size: 11px;
}

TR.accountHistory-odd, TR.addressBook-odd, TR.alsoPurchased-odd, TR.payment-odd, TR.productListing-odd, TR.productReviews-odd, TR.upcomingProducts-odd, TR.shippingOptions-odd {
 background: #ffffff;
}

TR.accountHistory-even, TR.addressBook-even, TR.alsoPurchased-even, TR.payment-even, TR.productListing-even, TR.productReviews-even, TR.upcomingProducts-even, TR.shippingOptions-even {
 background: #ffffff;
}

TABLE.productListing {
 border: 1px;
 border-style: solid;
 border-color: #b6b7cb;
 border-spacing: 1px;
}

.productListing-heading {
 font-family: Verdana, Arial, sans-serif;
 font-size: 11px;
 background: #ccc;
 color: #fff;
 font-weight: bold;
}

TD.productListing-data {
 font-family: Verdana, Arial, sans-serif;
 font-size: 11px;
}

A.pageResults {
 color: #00008b;
}

A.pageResults:hover {
 color: #0000FF;
 background: #FFFF33;
}

TD.pageHeading, DIV.pageHeading {
 font-family: Verdana, Arial, sans-serif;
 font-size: 20px;
 font-weight: bold;
 color: #000080;
}

TR.subBar {
 background: #fff;
}

TD.subBar {
 font-family: Verdana, Arial, sans-serif;
 font-size: 11px;
 color: #000000;
}

TD.main, P.main {
 font-family: Verdana, Arial, sans-serif;
 font-size: 11px;
 line-height: 1.5;
}

TD.smallText, SPAN.smallText, P.smallText {
 font-family: Verdana, Arial, sans-serif;
 font-size: 10px;
}

TD.accountCategory {
 font-family: Verdana, Arial, sans-serif;
 font-size: 12px;
 color: #aabbdd;
}

TD.fieldKey {
 font-family: Verdana, Arial, sans-serif;
 font-size: 12px;
 font-weight: bold;
}

TD.fieldValue {
 font-family: Verdana, Arial, sans-serif;
 font-size: 12px;
}

TD.tableHeading {
 font-family: Verdana, Arial, sans-serif;
 font-size: 12px;
 font-weight: bold;
}

SPAN.newItemInCart {
 font-family: Verdana, Arial, sans-serif;
 font-size: 12px;
 color: #ff0000;
}

CHECKBOX, INPUT, RADIO, SELECT {
 font-family: Verdana, Arial, sans-serif;
 font-size: 11px;
}

TEXTAREA {
 width: 100%;
 font-family: Verdana, Arial, sans-serif;
 font-size: 11px;
}

SPAN.greetUser {
 font-family: Verdana, Arial, sans-serif;
 font-size: 12px;
 color: #f0a480;
 font-weight: bold;
}

TABLE.formArea {
 background: #f1f9fe;
 border-color: #7b9ebd;
 border-style: solid;
 border-width: 1px;
}

TD.formAreaTitle {
 font-family: Tahoma, Verdana, Arial, sans-serif;
 font-size: 12px;
 font-weight: bold;
}

SPAN.markProductOutOfStock {
 font-family: Tahoma, Verdana, Arial, sans-serif;
 font-size: 12px;
 color: #c76170;
 font-weight: bold;
}

SPAN.productSpecialPrice {
 font-family: Verdana, Arial, sans-serif;
 color: #ff0000;
}

SPAN.errorText {
 font-family: Verdana, Arial, sans-serif;
 color: #ff0000;
}

.moduleRow { }
.moduleRowOver { background-color: #D7E9F7; cursor: pointer; cursor: hand; }
.moduleRowSelected { background-color: #E9F4FC; }

.checkoutBarFrom, .checkoutBarTo { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #8c8c8c; }
.checkoutBarCurrent { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #000000; }

/* message box */

.messageBox { font-family: Verdana, Arial, sans-serif; font-size: 11px; }
.messageStackError, .messageStackWarning { font-family: Verdana, Arial, sans-serif; font-size: 11px; background-color: #ffb3b5; }
.messageStackSuccess { font-family: Verdana, Arial, sans-serif; font-size: 11px; background-color: #99ff00; }

/* input requirement */

.inputRequirement { font-family: Verdana, Arial, sans-serif; font-size: 11px; color: #ff0000; }

 

Let me know what you think.

 

I was able to make a few modifications for my flavour of packing list. Changed here and in the second folder, everything works and aligns beautifully with the exception of the left and right margins. I need to bring them in about 1/2 and inch for the printing margins.

 

Thanks soooooooooo much!

 

Sincerely

Charlene :)

Link to comment
Share on other sites

Hey Velveeta if you are still around. :unsure:

 

I was able to get the pages flavored to what I wanted but, not those margins.

 

So if you are still lurking and have any suggestions, that would be great! :P

 

Thanks again!

 

Sincerely

Charlene :)

Link to comment
Share on other sites

Hey Velveeta if you are still around. :unsure:

 

I was able to get the pages flavored to what I wanted but, not those margins.

 

So if you are still lurking and have any suggestions, that would be great! :P

 

Thanks again!

 

Sincerely

Charlene :)

Well, the first thing I notice is that this looks to be the wrong stylesheet that you posted... It has entries such as inputRequirement, productListing-even, greetUser, newItemInCart, etc, which are all classes on the category side... Any changes you make in this file won't have any influence on your admin files... In addition, I don't see any css classes assigned to anything in that packingslip.php file, but I could just be overlooking them... All I see is some margin settings in your body tag... Can you point me to the css entries in that file?

 

Richard.

Richard Lindsey

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...