Jump to content
PopTheTop

Fancier Invoice & Packingslip v1.0

Recommended Posts

I have just installed version 6.2 (dated August 6, 2009).

 

When I set the Admin -> Config -> E-mail Options-> Use MIME HTML option to TRUE, this happens when checking out:

 

Warning: require(public_html/osc/admin/includes/languages/english/invoice.php) [function.require]: failed to open stream: No such file or directory in /home/mydomain/public_html/osc/includes/modules/email_invoice/email_invoice.php on line 30

 

Warning: require(public_html/osc/admin/includes/languages/english/invoice.php) [function.require]: failed to open stream: No such file or directory in /home/mydomain/public_html/osc/includes/modules/email_invoice/email_invoice.php on line 30

 

Fatal error: require() [function.require]: Failed opening required 'public_html/osc/admin/includes/languages/english/invoice.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mydomain/public_html/osc/includes/modules/email_invoice/email_invoice.php on line 30

 

Any idea where I should start looking?

Hi guys, please consider this SOLVED. Took a long DEEEEEEEEEEP breath, and it appeared to be a wrong definition in /public_html/catalog/includes/local:

define('DIR_FS_ADMIN', '/home/mydomain/public_html/osc/admin/')

Share this post


Link to post
Share on other sites

Hey Everyone

 

I have installed this contribution but i am having some problems with the invoice.php and packingslip.php

 

Here is the picture of the problem i am having

 

http://afcfooduk.co.uk/invoice.jpg

 

 

If someone could help me resolve the problem I would appreciate it

 

 

 

 

Thank's

 

Izzyinvoice.jpg

Edited by ismaiel_c

Share this post


Link to post
Share on other sites

Hey Everyone

 

I have installed this contribution but i am having some problems with the invoice.php and packingslip.php

 

Here is the picture of the problem i am having

 

http://afcfooduk.co.uk/invoice.jpg

 

If someone could help me resolve the problem I would appreciate it

 

 

Thank's

 

Izzyinvoice.jpg

 

It seems to me that you are missing the language definations in languages/english/invoice.php

Share this post


Link to post
Share on other sites

I would like to know where/how this contribution is calling calling tep_mail function. I need to change it so that it I can call another e-mail function? Could please some one point me in that direction?

Share this post


Link to post
Share on other sites

I have installed this contribution and everything is working fine apart from 1 thing:-

When a customer views their order on the website and click on the Print Order button, they get the following error:-

 

Fatal error: Using $this when not in object context in /home/thinkel2/public_html/print_my_invoice.php on line 198

 

It is a white page with customer address etc but it shops where customer's card details should be.

 

The line that is causing the problem is:-

 

<span class="order_infobox_heading_INVOICE"> <b><?php echo ENTRY_PAYMENT_CC_NUMBER; ?></b> <?php echo $this->cc_card_number_less_middle_digits; ?></td>

 

I have changed the $this->cc_card_number_less_middle_digits; to $order->cc_card_number_less_middle_digits;

 

No error comes up now but all the pop up displays is the whole website with nothing where the invoice should be - the white space is just blank.

 

Does anyone know what the problem is with this?

 

Thanks

 

Carl

Share this post


Link to post
Share on other sites

This looks very much like a similar problem I had returning from the PayPal payment page. The error message you have shows /home/YOUR_DOMAIN/public_html/catalog/admin/.....etc. I think your problem is that YOUR-DOMAIN should be reflect your store domain. Depending on the type web server configuration you have the part that says /public_html/ might also be wrong.

 

In my case, the problem was in the /catalog/admin/includes/local/configure.php file. Check yours.

Find // Folder Definitions

If there is an entry that reads:

define('DIR_FS_ADMIN', '/home/YOUR_DOMAIN/public_html/catalog/admin/'); // absolute path required

then you need to edit the path. (this is covered rather loosely in Step 6 of the install.htm file which is part of the version 6.1 download.)

 

Now here's the trick. "YOUR_DOMAIN" here is not your website domain i.e. www.myshop.com. It's the Database username as listed here: /catalog/admin/includes/configuration.php (slightly different filename and in a different folder).

 

Also, /public_html in my case was actually /www.

 

To make it easier to determine the the true absolute path to type into the definition for DIR_FS_ADMIN open up the OSCommerce Admin Panel, select "Tools", then "Server Info" and scroll down to the "Environment" section.

Find the entry for SCRIPT_FILENAME and paste that into the definition (without server_info.php at the end - the path should end at /admin/). Be sure to include the final /. Also be sure you are editing the right file. You want to be editing /catalog/admin/includes/local/configure.php

 

If your DIR_FS_ADMIN was already correct, then I would look around to see if there are any other definitions in the files that say /home/YOUR_DOMAIN/public_html/ and try replacing as above. If you have the means to search text in your files automatically you should be able to spot the problem pretty fast.

 

Hi, just a bit puzzled, the install file (step 6) says to put the configure file in catalog/includes/local folder and not in the /catalog/admin/includes/local/, which is right?

Share this post


Link to post
Share on other sites

Hi all, I have 2 problems since installing

 

Problem 1: I have gone through the whole process of buying an item both via paypal and by saying I am going to pay by cheque. On all payment methods I get an error message as soon as I click confirm the order. My screen shows the following message and the url says its accessesing checkout_process.php.

 

checkout%20error.jpg

 

Problem 2: This a print invoice error on the customers side. I am logged in as a customer and I am looking in My Account page.

 

At the top of the page is my list of recent orders. I click the VIEW button and am presented with a page which looks like an invoice.

At the bottom right is a print invoice link. I click this and get the following error:

 

print%20error.jpg

 

Any ideas please?

 

You may test this out at www.affordablemobility.co.uk/store.

 

Thank you

 

Michael

Edited by offie

Share this post


Link to post
Share on other sites

Hi all

i did installed this contri and so far im going well took me several days to look for the text in the invoice.php etc (change to Dutch)

but my problem now is when a custumor push the print invoice button a whit screen pops up and further noting happens..

it did work at the beginning but somehow now it doesnt annymore... annyone anny idea where i do ghave to look?

i dont have a clue...

 

thx already

Share this post


Link to post
Share on other sites

i did checked the outputfile and its compleet empty...

 

 

<html>

<head></head>

<body></body>

</html>

 

did check the java script in account_history_info.php

between

<head>
<script language="javascript">
<!--
function popupPrintReceipt(url) {
 window.open(url,'popupPrintReceipt','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=750')
}
//-->
</script>
</head>

 

and in the body section:

 

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
             <td><div style="float:left"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, tep_get_all_get_params(array('order_id')), 'SSL') . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a></div><div style=float:right>'; ?><a href="javascript:popupPrintReceipt('<?php echo tep_href_link(FILENAME_PRINT_MY_INVOICE, tep_get_all_get_params(array('order_id')) . 'order_id=' . $HTTP_GET_VARS['order_id'], 'SSL'); ?>')"><?php echo tep_image_button('button_print_order.gif', IMAGE_BUTTON_PRINT_ORDER) . '</a>'; ?></div></td>
               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

 

so im having not a clue what i am doing wrong the rest works fine accept for this one..

 

thx already Edwin

Share this post


Link to post
Share on other sites

i did checked the outputfile and its compleet empty...

 

 

<html>

<head></head>

<body></body>

</html>

 

did check the java script in account_history_info.php

between

<head>
<script language="javascript">
<!--
function popupPrintReceipt(url) {
 window.open(url,'popupPrintReceipt','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=750')
}
//-->
</script>
</head>

 

and in the body section:

 

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
             <td><div style="float:left"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, tep_get_all_get_params(array('order_id')), 'SSL') . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a></div><div style=float:right>'; ?><a href="javascript:popupPrintReceipt('<?php echo tep_href_link(FILENAME_PRINT_MY_INVOICE, tep_get_all_get_params(array('order_id')) . 'order_id=' . $HTTP_GET_VARS['order_id'], 'SSL'); ?>')"><?php echo tep_image_button('button_print_order.gif', IMAGE_BUTTON_PRINT_ORDER) . '</a>'; ?></div></td>
               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

 

so im having not a clue what i am doing wrong the rest works fine accept for this one..

 

thx already Edwin

 

I did find the error :

define('INVOICE_IMAGE_ALT_TEXT', STORE_NAME); // Change this to your logo's ALT text or leave blank

 

i did leave that blank and it wont work annymore so you have to set this with your store's name

 

annother error i have :

 

INVOICE_TEXT_INVOICE_NR

INVOICE_TEXT_INVOICE_DATE

 

i did change the text in print_my_invoice.php and upload

 

the postal code isnt showing on the invoice how do i do that?

Edited by edensan

Share this post


Link to post
Share on other sites

I did find the error :

define('INVOICE_IMAGE_ALT_TEXT', STORE_NAME); // Change this to your logo's ALT text or leave blank

 

i did leave that blank and it wont work annymore so you have to set this with your store's name

 

annother error i have :

 

INVOICE_TEXT_INVOICE_NR

INVOICE_TEXT_INVOICE_DATE

 

i did change the text in print_my_invoice.php and upload

 

the postal code isnt showing on the invoice how do i do that?

 

did add 2 define's in print_my_invoice.php:

define('INVOICE_TEXT_INVOICE_NR', 'invoice number');
define('INVOICE_TEXT_INVOICE_DATE', 'invoice date');

 

now its working great

 

The last 2 probs are:

 

no invoice number on customer invoice and no postalcode on custumer invoice

Share this post


Link to post
Share on other sites

To view the invoice from the customers' side, I got this error message;

 

Fatal error: Cannot redeclare do_magic_quotes_gpc() (previously declared in /home/elpinapl/public_html/elpinastore/includes/functions/compatibility.php:18) in /home/elpinapl/public_html/elpinastore/includes/functions/compatibility.php on line 30

Share this post


Link to post
Share on other sites

Hi. Great contribution , thanks.

in general all work fantastic, but i have problems because d'ont send e-mails ( costumer and store).

(send html is true , use MIME html is true and send e-mails is true).

thanks.

Share this post


Link to post
Share on other sites

Hello. I wonder, is there any tutorials somewhere for how to install and adapt this contribution for osCommerce 2.3.1?

 

I have downloaded it and have been installing it for some time now... I'm currently at step 9. I'm receiving this error message when I am logged in as a custommer and try to acess a specific order at "order history":

 

Warning: require(includes/column_left.php) [function.require]: failed to open stream: No such file or directory in C:\wamp\www\(myoscommercefolder)\catalog\account_history_info.php on line 88

 

 

I found out on the following link that this is since 2.3.1 and earlier versions doesn't modify those things at the same place:

 

http://forums.oscommerce.com/topic/378391-cant-locate-column-leftphp/

 

 

So, the contribution is for an earlier version of oscommerce, but I would like to use it for 2.3.1.

I would appreciate if anyone know if there is a thread about this anywhere or if there is information elsewhere about it available? I have tried to google it but the extremely few search results I found didn't seem relevant. I also found some thread here somewhere for adapting older contributions to 2.3 but it was for contributions in general and not for this one in specific... (So I thought I might just mess something up by accident if I try that, and therefore I posted here instead.) If there is no such tutorials as of yet but still people that want to help, feel free to give me advices on what files to look at and what lines to search for and how to modify them... (After all, that is what I need a tutorial to help me with.)

 

As of yet the webbshop I'm creating isn't finished, it's still in development, and therefore I only got it running locally. As it is now everything works as before the contribution aside from the order history.

 

I greatly appreciate all help to solve this.

 

 

Btw, since this is my first post... Hello the osCommerce Community!

Share this post


Link to post
Share on other sites

Ok, iv'e been racking my brain for days and i have to reach out. Ive installed the contribution successfully and everything is working correctly. The only issue i have is the layout and alignment of my page content when navigating to "account_history_info.php"

 

My entire site operates on a centered 780px page width, everything but this new "account_history_info.php" page. This page width is twice the size of my screen, wont resize nor center and seems as if the damn tables are locked somehow.

 

I have tried editing the tables width, TD tag widths, tried inline styles, tried putting the body text coding in an includes file and calling it from master account_history_info page, also tried wrapping it in div tags, i have also edited the transparent.gif images widths to no avail. No edits im making to these tables tags seems to make a difference. Its as if the tables are all locked. All i want to do is set the dang width and center it on screen.

 

Ive compared codes from the original account_history_info.php and everything seems correct. Im lost, please anyone...

 

Ive including links to jpgs of my site layout and a jpg of what this page is doing, i will include the page coding of account_history_info but im betting the answer isnt in this file...

 

Expected layout:

 

http://www.omahafast...ges/correct.jpg

 

Layout after installation:

 

http://www.omahafast...es/lameduck.jpg

 

The code below is account_history_info.php

Dont mind the width="780" height="100%" edits those were my most recent and accomplished nothing

 

<?php
/*
 $Id: account_history_info.php,v 6.1 2005/06/05 23:03:52 PopTheTop Exp $
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com
 Copyright (c) 2003 osCommerce
 Released under the GNU General Public License
*/
// BEGIN Fancier Order Details & Print Invoice
 require('includes/application_top.php');
 if (!tep_session_is_registered('customer_id')) {
$navigation->set_snapshot();
tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
 }
 if (!isset($HTTP_GET_VARS['order_id']) || (isset($HTTP_GET_VARS['order_id']) && !is_numeric(htmlspecialchars($HTTP_GET_VARS['order_id'])))) {
tep_redirect(tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL'));
 }

 $customer_info_query = tep_db_query("select customers_id from " . TABLE_ORDERS . " where orders_id = '". htmlspecialchars((int)$HTTP_GET_VARS['order_id']) . "'");
 $customer_info = tep_db_fetch_array($customer_info_query);
 if ($customer_info['customers_id'] != $customer_id) {
tep_redirect(tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL'));
 }
 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ACCOUNT_HISTORY_INFO);
 $breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_ACCOUNT, '', 'SSL'));
 $breadcrumb->add(NAVBAR_TITLE_2, tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL'));
 $breadcrumb->add(sprintf(NAVBAR_TITLE_3, $HTTP_GET_VARS['order_id']), tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . htmlspecialchars($HTTP_GET_VARS['order_id']), 'SSL'));
 require(DIR_WS_CLASSES . 'order.php');
 $order = new order($HTTP_GET_VARS['order_id']);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo STORE_NAME; ?>-<?php echo HEADING_TITLE; ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<link rel="stylesheet" type="text/css" href="css/index.css" >
<script language="javascript">
<!--
function popupPrintReceipt(url) {
 window.open(url,'popupPrintReceipt','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=800')
}
//-->
</script>
</head>
<body style="width="780" height="100%" align="center" marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->
<table style="width="780" height="100%" align="center" border="0" width="100%" cellspacing="1" cellpadding="0">
 <tr>
<td width="218" valign="top"><table style="width="780" height="100%" align="center" border="0" width="218" cellspacing="0" cellpadding="0">
<!-- left_navigation //-->
  <tr>
 <td height="41" bgcolor="#BB0300" class="white text_ind px12"><strong>Shop by products:</strong></td>
  </tr>
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->
<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
	<td><table style="width="780" height="100%" align="center" border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
		<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_history.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
	  </tr>
	</table></td>
  </tr>
  <TD style="width="780" height="100%" align="center" ALIGN="right" VALIGN="top" class="order_history_top"><?php echo HEADING_ORDER_NUMBER; ?> <?php echo $HTTP_GET_VARS['order_id']; ?><BR>
	<?php echo tep_date_long($order->info['date_purchased']); ?></TD>
</tr>
<tr>
  <td VALIGN="top"><table style="width="780" height="100%" align="center" border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<TD><table style="width="780" height="100%" align="center"  width="100%" border="0" cellspacing="0" cellpadding="2">

			<tr>
			  <td colspan="4"><?php echo tep_draw_separator('pixel_trans.gif', '10%', '5'); ?></td>
			</tr>
			<tr>
			  <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
				  <tr>
					<td width="11"><img src="images/borders/mainwhite_01.gif" width="11" height="16" alt=""></td>
					<td background="images/borders/mainwhite_02.gif"><img src="images/borders/mainwhite_02.gif" width="24" height="16" alt="" ></td>
					<td width="19"><img src="images/borders/mainwhite_03.gif" width="19" height="16" alt=""></td>
				  </tr>
				  <tr>
					<td background="images/borders/mainwhite_04.gif"><img src="images/borders/mainwhite_04.gif" width="11" height="21" alt=""></td>
					<td align="center" style="background-color: white;"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="main">
						<tr>
						  <td align="left" valign="top" class="order_infobox_heading"><b><?php echo HEADING_BILLING_ADDRESS; ?></b></td>
						</tr>
						<tr>
						  <td class="order_infobox_data">	<?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td>
						</tr>
						<tr>
						  <td class="order_infobox_data">	<?php echo tep_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>	'); ?></td>
						</tr>
						<tr>
						  <td class="order_infobox_data">	<?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
						</tr>
						<tr>
						  <td class="order_infobox_data">	<?php echo $order->customer['telephone']; ?></td>
						</tr>
						<tr>
						  <td class="order_infobox_data">	<?php echo $order->customer['email_address']; ?></td>
						</tr>
						<tr>
						  <td><?php echo tep_draw_separator('pixel_trans.gif', '10%', '7'); ?></td>
						</tr>
					  </table></td>
					<td background="images/borders/mainwhite_06.gif"><img src="images/borders/mainwhite_06.gif" width="19" height="21" alt=""></td>
				  </tr>
				  <tr>
					<td><img src="images/borders/mainwhite_07.gif" width="11" height="18" alt=""></td>
					<td background="images/borders/mainwhite_08.gif"><img src="images/borders/mainwhite_08.gif" width="24" height="18" alt=""></td>
					<td><img src="images/borders/mainwhite_09.gif" width="19" height="18" alt=""></td>
				  </tr>
				</table></td>
			  <td width="15"></td>
			  <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
				  <tr>
					<td width="11"><img src="images/borders/mainwhite_01.gif" width="11" height="16" alt=""></td>
					<td background="images/borders/mainwhite_02.gif"><img src="images/borders/mainwhite_02.gif" width="24" height="16" alt=""></td>
					<td width="19"><img src="images/borders/mainwhite_03.gif" width="19" height="16" alt=""></td>
				  </tr>
				  <tr>
					<td background="images/borders/mainwhite_04.gif"><img src="images/borders/mainwhite_04.gif" width="11" height="21" alt=""></td>
					<td align="center" bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="main">
						<tr>
						  <td align="left" valign="top" class="order_infobox_heading"><b><?php echo HEADING_DELIVERY_ADDRESS; ?></b></td>
						</tr>
						<tr>
						  <td class="order_infobox_data">	<?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td>
						</tr>
						<tr>
						  <td class="order_infobox_data">	<?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br>	'); ?></td>
						</tr>
						<tr>
						  <td class="order_infobox_data">	<?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
						</tr>
						<tr>
						  <td class="order_infobox_data">	</td>
						</tr>
						<tr>
						  <td class="order_infobox_data">	</td>
						</tr>
						<tr>
						  <td><?php echo tep_draw_separator('pixel_trans.gif', '10%', '7'); ?></td>
						</tr>
					  </table></td>
					<td background="images/borders/mainwhite_06.gif"><img src="images/borders/mainwhite_06.gif" width="19" height="21" alt=""></td>
				  </tr>
				  <tr>
					<td><img src="images/borders/mainwhite_07.gif" width="11" height="18" alt=""></td>
					<td background="images/borders/mainwhite_08.gif"><img src="images/borders/mainwhite_08.gif" width="24" height="18" alt=""></td>
					<td><img src="images/borders/mainwhite_09.gif" width="19" height="18" alt=""></td>
				  </tr>
				</table></td>
			</tr>
		  </table></TD>
	  </tr>
	  <tr>
		<TD><?php echo tep_draw_separator('pixel_trans.gif', '10%', '15'); ?></td>
	  </tr>
	  <tr>
		<TD><table width="100%" border="0" cellpadding="0" cellspacing="0">
			<tr>
			  <td width="2"></td>
			  <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
				  <tr>
					<td width="11"><img src="images/borders/mainwhite_01.gif" width="11" height="16" alt=""></td>
					<td background="images/borders/mainwhite_02.gif"><img src="images/borders/mainwhite_02.gif" width="24" height="16" alt="" ></td>
					<td width="19"><img src="images/borders/mainwhite_03.gif" width="19" height="16" alt=""></td>
				  </tr>
				  <tr>
					<td background="images/borders/mainwhite_04.gif"><img src="images/borders/mainwhite_04.gif" width="11" height="21" alt=""></td>
					<td align="center" style="background-color: white;"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="main">
						<tr>
						  <td class="order_infobox_data"> <b><?php echo HEADING_ORDER_NUMBER; ?>:</b> <?php echo $HTTP_GET_VARS['order_id']; ?><br>
							<?php echo tep_draw_separator('pixel_trans.gif', '10%', '6'); ?><br>
							 <b><?php echo HEADING_ORDER_DATE; ?></b> <?php echo tep_date_short($order->info['date_purchased']); ?></td>
						  <br>
						<tr>
						  <?php
 if (tep_not_null($order->info['cc_number'])) {
$this->cc_card_number_less_middle_digits = substr($order->info['cc_number'], 0, 4) . str_repeat('x', (strlen($order->info['cc_number']) - 8)) . substr($order->info['cc_number'], -4);
?>
						  <td align="left" class="order_infobox_data"> <b><?php echo HEADING_PAYMENT_METHOD; ?></b> <?php echo $order->info['payment_method']; ?> (<?php echo $order->info['cc_type']; ?>)<br>
							<?php echo tep_draw_separator('pixel_trans.gif', '10%', '6'); ?><br>
							 <b><?php echo ENTRY_PAYMENT_CC_NUMBER; ?></b> <?php echo $this->cc_card_number_less_middle_digits; ?></td>
						  <?php
 } else {
?>
						  <td align="left" class="order_infobox_data"> <b><?php echo HEADING_PAYMENT_METHOD; ?></b> <?php echo $order->info['payment_method']; ?> </td>
						  <?php
 }
?>
						</tr>
						<tr>
						  <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '10%', '7'); ?></td>
						</tr>
					  </table></td>
					<td background="images/borders/mainwhite_06.gif"><img src="images/borders/mainwhite_06.gif" width="19" height="21" alt=""></td>
				  </tr>
				  <tr>
					<td><img src="images/borders/mainwhite_07.gif" width="11" height="18" alt=""></td>
					<td background="images/borders/mainwhite_08.gif"><img src="images/borders/mainwhite_08.gif" width="24" height="18" alt=""></td>
					<td><img src="images/borders/mainwhite_09.gif" width="19" height="18" alt=""></td>
				  </tr>
				</table></td>
			</tr>
		  </table></td>
	  </tr>
	  <tr>
		<TD><?php echo tep_draw_separator('pixel_trans.gif', '10%', '20'); ?></td>
	  </tr>
	  <tr>
		<td align="center"><table border="0" width="99%" cellspacing="0" cellpadding="2">
			<tr class="product_infobox_heading_row">
			  <td class="product_infobox_heading" colspan="2"> <font color="#000000"><?php echo HEADING_PRODUCTS; ?></font></td>
			  <td WIDTH="80" class="product_infobox_heading"><font color="#000000"><?php echo HEADING_MODEL; ?></font></td>
			  <td WIDTH="80" class="product_infobox_heading" align="right"><font color="#000000"><?php echo HEADING_UNIT; ?></font></td>
			  <TD WIDTH="80" ALIGN="right" CLASS="product_infobox_heading"><font color="#000000"><?php echo HEADING_TOTAL; ?></font> </TD>
			</tr>
			<?php
for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
 echo '	  <tr class="product_infobox_data_row">' . "\n" .
   '		<td class="product_infobox_data" valign="top" align="right">' . $order->products[$i]['qty'] . ' x</td>' . "\n" .
   '		<td class="product_infobox_data" valign="top">' . $order->products[$i]['name'];
  if (isset($order->products[$i]['attributes']) && (($k = sizeof($order->products[$i]['attributes'])) > 0)) {
	for ($j = 0; $j < $k; $j++) {
	  echo '<br><nobr><small> <i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'];
	  if ($order->products[$i]['attributes'][$j]['price'] != '0') echo ' (' . $order->products[$i]['attributes'][$j]['prefix'] . $currencies->format($order->products[$i]['attributes'][$j]['price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . ')';
	  echo '</i></small></nobr>';
	}
  }
  echo '		  </td>' . "\n" .
	   '		  <td WIDTH="80" class="product_infobox_data" valign="top">' . $order->products[$i]['model'] . '</td>' . "\n";
  echo '		  <td WIDTH="80" class="product_infobox_data" align="right" valign="top">' . $currencies->format($order->products[$i]['final_price'], true, $order->info['currency'], $order->info['currency_value']) . '</td>' . "\n" .
	   '		  <td WIDTH="80" class="product_infobox_data" align="right" valign="top"><b>' . $currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . ' </b></td>' . "\n";
  echo '		 </tr>' . "\n";
}
?>
			<tr>
			  <td align="right" colspan="5"><table border="0" cellspacing="0" cellpadding="2">
				  <?php
 for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) {
echo '		 <tr>' . "\n" .
	 '		  <td align="right" class="smallText">' . $order->totals[$i]['title'] . '</td>' . "\n" .
	 '		  <td align="right" class="smallText">' . $order->totals[$i]['text'] . '</td>' . "\n" .
	 '		 </tr>' . "\n";
 }
?>
				</table></td>
			</tr>
		  </table></td>
	  </tr>
	  <?php
 if (DOWNLOAD_ENABLED == 'true') include(DIR_WS_MODULES . 'downloads.php');
?>
	  <tr>
		<td><?php echo tep_draw_separator('pixel_trans.gif', '10%', '18'); ?></td>
	  </tr>
	  <tr>
		<td><?php echo tep_draw_separator('pixel_trans.gif', '10%', '18'); ?></td>
	  </tr>
	  <tr>
		<TD><table width="100%" border="0" cellpadding="0" cellspacing="0">
			<tr>
			  <td width="2"></td>
			  <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
				  <tr>
					<td width="11"><img src="images/borders/mainwhite_01.gif" width="11" height="16" alt=""></td>
					<td background="images/borders/mainwhite_02.gif"><img src="images/borders/mainwhite_02.gif" width="24" height="16" alt="" ></td>
					<td width="19"><img src="images/borders/mainwhite_03.gif" width="19" height="16" alt=""></td>
				  </tr>
				  <tr>
					<td background="images/borders/mainwhite_04.gif"><img src="images/borders/mainwhite_04.gif" width="11" height="21" alt=""></td>
					<td align="center" style="background-color: white;"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="main">
						<tr>
						  <td colspan="3" align="left" valign="top" class="order_infobox_heading"><b><?php echo ORDER_STATUS; ?></b></td>
						</tr>
						<?php
 $statuses_query = tep_db_query("select os.orders_status_name, osh.date_added, osh.comments from " . TABLE_ORDERS_STATUS . " os, " . TABLE_ORDERS_STATUS_HISTORY . " osh where osh.orders_id = '" . (int)$HTTP_GET_VARS['order_id'] . "' and osh.orders_status_id = os.orders_status_id and os.language_id = '" . (int)$languages_id . "' order by osh.date_added");
 while ($statuses = tep_db_fetch_array($statuses_query)) {
  echo '				<tr>' . "\n";
  echo '					 <td valign="top" class="product_infobox_data" width="114"><br>	<strong>' . tep_date_short($statuses['date_added']) . '</strong></td>' . "\n";
  echo '					 <td valign="top" class="product_infobox_data" width="85"><br>' . $statuses['orders_status_name'] . '</td>' . "\n";
  echo '					 <td valign="top" class="product_infobox_data"><br>' . (empty($statuses['comments']) ? ' ' : nl2br(tep_output_string_protected($statuses['comments']))) . '</td>' . "\n";
  echo '				</tr>' . "\n";
 }
?>
						<tr>
						  <td colspan="3"><?php echo tep_draw_separator('pixel_trans.gif', '10%', '7'); ?></td>
						</tr>
					  </table></td>
					<td background="images/borders/mainwhite_06.gif"><img src="images/borders/mainwhite_06.gif" width="19" height="21" alt=""></td>
				  </tr>
				  <tr>
					<td><img src="images/borders/mainwhite_07.gif" width="11" height="18" alt=""></td>
					<td background="images/borders/mainwhite_08.gif"><img src="images/borders/mainwhite_08.gif" width="24" height="18" alt=""></td>
					<td><img src="images/borders/mainwhite_09.gif" width="19" height="18" alt=""></td>
				  </tr>
				</table></td>
			</tr>
		  </table></td>
	  </tr>
	  <tr>
		<td><?php echo tep_draw_separator('pixel_trans.gif', '10%', '25'); ?></td>
	  </tr>
	  <tr>
		<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
			<tr class="infoBoxContents">
			  <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
				  <tr>
					<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
					<td><div style="float:left"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, tep_get_all_get_params(array('order_id')), 'SSL') . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a></div><div style=float:right>'; ?><a href="javascript:popupPrintReceipt('<?php echo tep_href_link(FILENAME_PRINT_MY_INVOICE, tep_get_all_get_params(array('order_id')) . 'order_id=' . $HTTP_GET_VARS['order_id'], 'SSL'); ?>')"><?php echo tep_image_button('button_print_order.gif', IMAGE_BUTTON_PRINT_ORDER) . '</a>'; ?></div></td>
					<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
				  </tr>
				</table></td>
			</tr>
		  </table></td>
	  </tr>
	</table></td>
</td>

</tr>

 </table>
 <!-- body_text_eof //-->

 </tr>
</table>
<!-- body_eof //-->
<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<?php
// END Fancier Order Details & Print Invoice
?>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Edited by breakbred101

Share this post


Link to post
Share on other sites

Ive tried editing my borders and bgcolors to gain a better grasp on it to no avail. Its as if the damn thing is locked in one size for some reason. I was thinking some sort of big image is preventing it from shrinking but thats not it either. Please im ready to launch and this is holding me up

Share this post


Link to post
Share on other sites

My invoice that is being sent to the customer and the one in the admin is missing the Shipping Total. I've read through most of this thread to find that others are having the issue but I have yet to find a solution. The total of the order is correct with the shipping added but it isn't broken down.

Share this post


Link to post
Share on other sites

I just had an auto-update of Mozilla Firefox to 17. Now, even though the "Print Background (colors & images)" is checked on my page set-up, they no longer print :(

 

Any idea who to correct this? I had to roll back to previous version of Firefox to get my fancier invoices to print correctly.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×