SpinerC Posted February 17, 2007 Share Posted February 17, 2007 K, I been having issues with just adding a date and order number to the packing slip, invoice worked fine but, not the packing one. I think I have the file so screwed up now.....:( Could someone take the coded file and paste it here so I can return the file to its former state? Please? :unsure: I need the ADMIN/PACKINGSLIP.PHP file. I looked on line but, couldn't find one. Yep, I know, should have made a back up first..... kicking myself :blush: :angry: >_< Thank you to any who help! Sincerely Charlene :) Link to comment Share on other sites More sharing options...
wheeloftime Posted February 17, 2007 Share Posted February 17, 2007 K, I been having issues with just adding a date and order number to the packing slip, invoice worked fine but, not the packing one. I think I have the file so screwed up now.....:( Could someone take the coded file and paste it here so I can return the file to its former state? Please? :unsure: I need the ADMIN/PACKINGSLIP.PHP file. I looked on line but, couldn't find one. Yep, I know, should have made a back up first..... kicking myself :blush: :angry: >_< Thank you to any who help! Sincerely Charlene :) Download and take the file you need form the package. Keep the download somewhere safe and you will always have something to fall back on when needed. Of course a backup before starting to edit is always advisable ;) Link to comment Share on other sites More sharing options...
SpinerC Posted February 17, 2007 Author Share Posted February 17, 2007 Download and take the file you need form the package. Keep the download somewhere safe and you will always have something to fall back on when needed.Of course a backup before starting to edit is always advisable ;) Thank you! Yes, I did that now lol! learn from our mistakes hopefully. :blush: Then I went back and added the contribution I found on: http://www.oscommerce.com/community/contributions,2521 Here are the codes: ================================================ Add the date and order number to the invoice and packing slip add this to the invoice.php and packingslip.php files in the admin folder: at line 21 //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); and at line 88 <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> In the invoice.php and packingslip.php files in the admin/includes/languages/[language] folder, where [language] represents the language used. define('ENTRY_ORDER_NUMBER', 'Order Number:'); define('ENTRY_ORDER_DATE', 'Order Date:'); if you are not using english obviously substitute the required language. Exact location of these in the file is not really important - use whatever you are comfortable with. This will place the order number and date in the bottom left corner of the invoice and packing slip. They can be moved around the page as required. ========================================== Worked fine in the Invoice file but, not in the Packing Slip one, I don't get it???? So after reinstalling the php file, I added the codes as per instructions and the error message now is as follows: Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /admin/packingslip.php:1) in /admin/includes/functions/sessions.php on line 67 And there are a whack of codes that I can see, that I shouldn't, on the actual packing slip. I am a "newbie" to the php language, I do understand HTML though. Thank you for any and all assistance! :) Sincerely :wub: Charlene :) Link to comment Share on other sites More sharing options...
Velveeta Posted February 17, 2007 Share Posted February 17, 2007 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /admin/packingslip.php:1) in /admin/includes/functions/sessions.php on line 67 Looks like you've got an extra line at the top of your packingslip.php file, which is the first thing read in even before it gets to the require('includes/application_top.php') line... Check the very top of packingslip.php and make sure there's no whitespace there... Richard. Richard Lindsey Link to comment Share on other sites More sharing options...
SpinerC Posted February 17, 2007 Author Share Posted February 17, 2007 YIPPPPPPPPPPEEEEEEEE!! I don't know what I did but, it is working fine now!!!!! Now if I could only set the printing option to move the margins..... lol! :D :D Maybe tomorrow. Thanks again for all your help! Sincerely Charlene :wub: Link to comment Share on other sites More sharing options...
SpinerC Posted February 17, 2007 Author Share Posted February 17, 2007 Looks like you've got an extra line at the top of your packingslip.php file, which is the first thing read in even before it gets to the require('includes/application_top.php') line... Check the very top of packingslip.php and make sure there's no whitespace there... Richard. Thanks Richard, I am not sure exactly what I did but, went into the file one more time, and now it works!!! I am thrilled, another one of my many little tasks finished. I have gone through the stylesheet but, not too sure what I am looking for, because I want to move the margins in on the Packing & Invoice sheets. Do you know where I might find the code for that? Thanks no matter :) Sincerely Charlene :) Link to comment Share on other sites More sharing options...
Velveeta Posted February 17, 2007 Share Posted February 17, 2007 Thanks Richard, I am not sure exactly what I did but, went into the file one more time, and now it works!!! I am thrilled, another one of my many little tasks finished. I have gone through the stylesheet but, not too sure what I am looking for, because I want to move the margins in on the Packing & Invoice sheets. Do you know where I might find the code for that? Thanks no matter :) Sincerely Charlene :) To do that, I just took a quick peek at packingslip.php and didn't see any css classes assigned to those elements at a glance... So if you wanted to modify the padding, you could either set it directly in the html markup that's in that file, or else specify one of the tables as a certain class, and create that class entry in the stylesheet file, and for the admin console, I believe that stylesheet is in admin/includes/stylesheet.css, rather than right in the root of the admin directory... Richard. Richard Lindsey Link to comment Share on other sites More sharing options...
SpinerC Posted February 17, 2007 Author Share Posted February 17, 2007 To do that, I just took a quick peek at packingslip.php and didn't see any css classes assigned to those elements at a glance... So if you wanted to modify the padding, you could either set it directly in the html markup that's in that file, or else specify one of the tables as a certain class, and create that class entry in the stylesheet file, and for the admin console, I believe that stylesheet is in admin/includes/stylesheet.css, rather than right in the root of the admin directory... Richard. Hi Richard, thanks for the reply. :thumbsup: I did go into the admin/includes/stylesheet and haven't got a clue. I am a newbie to php :blush: :'( :blush: :'( I guess I was hoping the parimeters for the sheet would be listed as "forms" and then have the borders outlined where I could just change them to a larger number. I too checked through both packing slip files, one is defined and found nothing I knew to use. Thanks again for your replies. It all helps no matter cause I am learning :) Sincerely Charlene :) Link to comment Share on other sites More sharing options...
Velveeta Posted February 17, 2007 Share Posted February 17, 2007 Hi Richard, thanks for the reply. :thumbsup: I did go into the admin/includes/stylesheet and haven't got a clue. I am a newbie to php :blush: :'( :blush: :'( I guess I was hoping the parimeters for the sheet would be listed as "forms" and then have the borders outlined where I could just change them to a larger number. I too checked through both packing slip files, one is defined and found nothing I knew to use. Thanks again for your replies. It all helps no matter cause I am learning :) Sincerely Charlene :) Yeah css isn't anything like that :) I would suggest going to read up on a css tutorial before you start playing with it... It's really pretty simple once you know what you're doing with it... w3schools.com has a nice tutorial to at least get you started here... It'll show you how to define css classes, and how to apply them to the html markup... Richard. Richard Lindsey Link to comment Share on other sites More sharing options...
SpinerC Posted February 17, 2007 Author Share Posted February 17, 2007 Yeah css isn't anything like that :) I would suggest going to read up on a css tutorial before you start playing with it... It's really pretty simple once you know what you're doing with it... w3schools.com has a nice tutorial to at least get you started here... It'll show you how to define css classes, and how to apply them to the html markup... Richard. Thanks for the site Richard, I will be sure to read up on the css goodies there. I guess I hoping that these pages are already defined within the system and then you could just adjust to the desired width? My computer fella is back in his office in Monday, he might also be able to tell me where he hid the paypal logo so I can move it to the other side of the page LOL! ;) Thanks again! Sincerely Charlene :) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.