Jump to content
PopTheTop

Fancier Invoice & Packingslip v1.0

Recommended Posts

Having said all that, I just noticed that you said this happens when your customer tries to print an invoice. I take you have installed a contribution that provides this functionality as I don't have it. I would check any new files added by that contribution or any modifications that were made with it.

 

Now, payback time! I would like to provide a print invoice functionality for my customers. What is the name or number of the contribution that provides this? I thought I saw it one time, but could not find it later.

 

Sorry but I do have another question, how can I change the TAx number, etc,... in the invoice.php without messing up the whole page. I changed the table allready but don't know how's best to change the text.

 

<tr>

<td width="33%">?<b><?php echo INVOICE_TEXT_VAT_NR; ?><?php echo INVOICE_TEXT_COLON; ?></b><?php echo INVOICE_TEXT_VAT_NR2; ?></td>

<td width="33%">?<b><?php echo INVOICE_TEXT_BANK_NR; ?><?php echo INVOICE_TEXT_COLON; ?></b><?php echo INVOICE_TEXT_BANK_NR2; ?></td>

<td width="34%">?<b><?php echo INVOICE_TEXT_VAT_NR3; ?><?php echo INVOICE_TEXT_COLON; ?></b><?php echo INVOICE_TEXT_VAT_NR4; ?></td>

</tr>

Share this post


Link to post
Share on other sites
^^ Honestly not a good idea to post a link to your admin folder... I advise you to fix that :P

 

I would love to fix it. But, how do we edit a post? I do not see that option available.

Share this post


Link to post
Share on other sites

I am having problems in with my admin invoice. (admin/invoice.php) It is filled with the following messages:

 

 INVOICE_IMAGE_ALT_TEXT

INVOICE_TEXT_INVOICE INVOICE_TEXT_NUMBER_SIGN 06INVOICE_TEXT_DASH 41

INVOICE_TEXT_INVOICE

INVOICE_TEXT_ORDER							  INVOICE_TEXT_DATE_OF_ORDERINVOICE_TEXT_COLON

INVOICE_TEXT_NUMBER_SIGNINVOICE_TEXT_COLON

INVOICE_TEXT_THANK_YOU
Paula Moss
STORE_URL_ADDRESS

 

The admin/packingslip.php is fine except the logo is not showing up. Just a blank box.

 

If anyone could help me in resolving this, I would greatly appreciate it.

Share this post


Link to post
Share on other sites
I am having problems in with my admin invoice. (admin/invoice.php) It is filled with the following messages:

 

 INVOICE_IMAGE_ALT_TEXT

INVOICE_TEXT_INVOICE INVOICE_TEXT_NUMBER_SIGN 06INVOICE_TEXT_DASH 41

INVOICE_TEXT_INVOICE

INVOICE_TEXT_ORDER							  INVOICE_TEXT_DATE_OF_ORDERINVOICE_TEXT_COLON

INVOICE_TEXT_NUMBER_SIGNINVOICE_TEXT_COLON

INVOICE_TEXT_THANK_YOU
Paula Moss
STORE_URL_ADDRESS

 

The admin/packingslip.php is fine except the logo is not showing up. Just a blank box.

 

If anyone could help me in resolving this, I would greatly appreciate it.

Go to packingslip.php in admin and find

 

<tr>

<TD ALIGN="left" VALIGN="top"><span class="pageHeadingSM"><FONT FACE="Verdana" SIZE="1" COLOR="#006699"><strong><?php echo nl2br(STORE_NAME_ADDRESS); ?></strong></font></span><br><br><FONT FACE="Verdana" SIZE="2" COLOR="#006699"><strong><?php echo INVOICE_TEXT_INVOICE_NR; ?> <?php// echo INVOICE_TEXT_NUMBER_SIGN; ?> <?php// echo date("y"); ?><?php// echo INVOICE_TEXT_DASH; ?> <?php echo $oID; ?><BR><?php echo ORDER_DATE; ?><?php echo tep_date_short($order->info['date_purchased']); ?></strong></font></TD>

<td style="padding: 10px 10px 0px 0px; vertical-align: top;" align="right"><?php echo '<input type="image" src="' . INVOICE_IMAGE . '" width="204" height="50" " alt="' . INVOICE_IMAGE_ALT_TEXT . '" onClick="java script:ShowHide(\'comments_open\',\'comments_close\');">'; ?></td>

</tr>

 

And replace the red text into your own logos url and size...

Share this post


Link to post
Share on other sites

Hi Guys (and gals)

 

Whats the deal with this and the Paypal IPN system. Has it been resolved so that it works with invoices now or is it still a no no? Ive looked through the thread and couldnt really find a definative answer


Things still to do before going "live" in no real order...

Change "buy now buttons" css styles

Change "lets see what we have here" into something meaningfull

Main logo of the website

Sort out currency to make site UK only (at present)

Remove "xx requests since" stuff

Update mainpage :D

Move shopping cart status into header

Add in stock status to product listing page

Define styles for product listing standardisation

Change CSS background for Headings

Increase Category size headings

Used mods so far:- basic_design_pack1mk7 | Google XML sitemap w admin | Paypal IPN v 1.2 | Feedmachine | pricematch_1_3_1 | Dynamic Sitemap 1.6 | Whos online Enhancement | Easypopulate 2.72

 

Each one that I solve I;ll be putting a post on the forum in a "completed shop" thread that Im writing up

Share this post


Link to post
Share on other sites

Hi, i'm facing the same problem as xavier. When I try to confirm checkout, the error

 

Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home/munchie/public_html/includes/application_top.php on line 285

Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home/munchie/public_html/includes/application_top.php on line 285

Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home/munchie/public_html/includes/application_top.php on line 285

Fatal error: main(): Failed opening required 'includes/languages/.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/munchie/public_html/includes/application_top.php on line 285

 

line 285 on application_top.php is

// include the language translations
require(DIR_WS_LANGUAGES . $language_dir . '.php');

 

 

Anyone can help? The website works perfectly till checkout is confirmed. Need urgent help!

 

 

When i make this change i have :

 

Warning: main(includes/languages/Array.php): failed to open stream: No such file or directory in /home/WwwBSD/france-incontinence.fr/DSPH/includes/application_top.php on line 313

Fatal error: main(): Failed opening required 'includes/languages/Array.php' (include_path='.:/usr/share/pear') in /home/WwwBSD/france-incontinence.fr/DSPH/includes/application_top.php on line 313

 

xavier

Share this post


Link to post
Share on other sites
Sorry but I do have another question, how can I change the TAx number, etc,... in the invoice.php without messing up the whole page. I changed the table allready but don't know how's best to change the text.

Can't help your there. Your invoice.php(s) is not the same as mine.

Share this post


Link to post
Share on other sites

I've been unable to find any help integrating PAYPAL IPN with Fancier Invoice. The previous suggestions by dilon didn't really work for me.

 

Problem is I really like the Fancier Invoice contribution and I want to know if there are any other Paypal contributions that work well with Fancier invoice other than the stock OSC Paypal module.

 

I need the Paypal module to work like Paypal IPN. So, can anyone using Fancier give me suggestions on what Paypal contributions to use?

 

Thanks in advance.

Share this post


Link to post
Share on other sites

Hi there all... Just wondering if anyone know how to hide the comments on default for the invoice? I know you can click the logo to get rid of them, but I'd prefer to click the logo to show the comments, i.e. have the invoice come up without comments by default.

 

We don't often have to print comments on our invoices, and I can see it's goin to be a pain to constantly remind staff to click the logo.

 

Thanks

 

~bobsi18~

Share this post


Link to post
Share on other sites

can i add a cheeky weee bump to the Paypal IPN question also.


Stuart

Share this post


Link to post
Share on other sites

Hi,

 

i have 2 questions regarding the print_my_invoice function.

 

First question:

 

print_my_invoice.jpg

 

I installed the latest Fancier Invoice Swedish version and I realised the invoice no doesn't come up in the top left hand corner.

 

in public_html/includes/languages/english/print_my_invoice.php

 

define('INVOICE_TEXT_INVOICE_NR', 'Invoice #.: ');
define('INVOICE_TEXT_INVOICE_DATE', 'Date of invoice: ');
// Misc Invoice Info
define('INVOICE_TEXT_NUMBER_SIGN', '#');
define('INVOICE_TEXT_DASH', '-');
define('INVOICE_TEXT_COLON', ':');

 

and in public_html/print_my_invoice.php

 

<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
  <TD ALIGN="left" VALIGN="top"><span class="pageHeadingSM"><FONT FACE="Verdana" SIZE="1" COLOR="#006699"><strong><?php echo nl2br(STORE_NAME_ADDRESS); ?></strong></font></span><br><br><FONT FACE="Verdana" SIZE="2" COLOR="#006699"><strong><?php echo INVOICE_TEXT_INVOICE_NR; ?> <?php// echo INVOICE_TEXT_NUMBER_SIGN; ?> <?php// echo date("y"); ?><?php// echo INVOICE_TEXT_DASH; ?> <?php echo $oID; ?><BR><?php echo INVOICE_TEXT_INVOICE_DATE; ?><?php echo tep_date_short($order->info['date_purchased']); ?></strong></font></TD>
   <td style="padding: 10px 10px 0px 0px; vertical-align: top;" align="right"><?php echo '<input type="image" src="' . INVOICE_IMAGE . '" width="' . INVOICE_IMAGE_WIDTH . '" height="' . INVOICE_IMAGE_HEIGHT . '" " alt="' . INVOICE_IMAGE_ALT_TEXT . '" onClick="java script:ShowHide(\'comments_open\',\'comments_close\');">'; ?></td>
 </tr>
<tr>
  <td colspan="2">

 

How do i generate the invoice number on the print my invoice.php?

 

 

Second question:

 

In the same print_my_invoice.php, the address isn't completely shown. The address in my admin/invoice is

 

456 Road

Dunn,

North Carolina

North Carolina

United States 28334

 

But it is cut off in the print_my_invoice (see pic above). Is there any way i can show the full address?

 

Thanks in advance :D

Share this post


Link to post
Share on other sites
Hi,

 

i have 2 questions regarding the print_my_invoice function.

 

First question:

 

print_my_invoice.jpg

 

I installed the latest Fancier Invoice Swedish version and I realised the invoice no doesn't come up in the top left hand corner.

 

in public_html/includes/languages/english/print_my_invoice.php

 

define('INVOICE_TEXT_INVOICE_NR', 'Invoice #.: ');
define('INVOICE_TEXT_INVOICE_DATE', 'Date of invoice: ');
// Misc Invoice Info
define('INVOICE_TEXT_NUMBER_SIGN', '#');
define('INVOICE_TEXT_DASH', '-');
define('INVOICE_TEXT_COLON', ':');

 

and in public_html/print_my_invoice.php

 

<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
  <TD ALIGN="left" VALIGN="top"><span class="pageHeadingSM"><FONT FACE="Verdana" SIZE="1" COLOR="#006699"><strong><?php echo nl2br(STORE_NAME_ADDRESS); ?></strong></font></span><br><br><FONT FACE="Verdana" SIZE="2" COLOR="#006699"><strong><?php echo INVOICE_TEXT_INVOICE_NR; ?> <?php// echo INVOICE_TEXT_NUMBER_SIGN; ?> <?php// echo date("y"); ?><?php// echo INVOICE_TEXT_DASH; ?> <?php echo $oID; ?><BR><?php echo INVOICE_TEXT_INVOICE_DATE; ?><?php echo tep_date_short($order->info['date_purchased']); ?></strong></font></TD>
   <td style="padding: 10px 10px 0px 0px; vertical-align: top;" align="right"><?php echo '<input type="image" src="' . INVOICE_IMAGE . '" width="' . INVOICE_IMAGE_WIDTH . '" height="' . INVOICE_IMAGE_HEIGHT . '" " alt="' . INVOICE_IMAGE_ALT_TEXT . '" onClick="java script:ShowHide(\'comments_open\',\'comments_close\');">'; ?></td>
 </tr>
<tr>
  <td colspan="2">

 

How do i generate the invoice number on the print my invoice.php?

Second question:

 

In the same print_my_invoice.php, the address isn't completely shown. The address in my admin/invoice is

 

456 Road

Dunn,

North Carolina

North Carolina

United States 28334

 

But it is cut off in the print_my_invoice (see pic above). Is there any way i can show the full address?

 

Thanks in advance :D

 

in this code:

define('INVOICE_TEXT_INVOICE_NR', 'Invoice #.: ');

change to:

define('INVOICE_TEXT_INVOICE_NR', 'Invoice #: ');

(remove the . after the # sign)

 

in this code:

<?php// echo INVOICE_TEXT_NUMBER_SIGN; ?> <?php// echo date("y"); ?><?php// echo INVOICE_TEXT_DASH; ?> <?php echo $oID; ?>

 

Why the // after <?php ?? I'm no expert on php but that doesn't look right to me. // is generally used to comment out any remaining code on the line. Try changing to:

 

<?php echo INVOICE_TEXT_NUMBER_SIGN; ?> <?php echo date("y"); ?><?php echo INVOICE_TEXT_DASH; ?> <?php echo $oID; ?>

 

Ron

Share this post


Link to post
Share on other sites
Hi,

 

i have 2 questions regarding the print_my_invoice function.

 

First question:

 

print_my_invoice.jpg

 

I installed the latest Fancier Invoice Swedish version and I realised the invoice no doesn't come up in the top left hand corner.

 

Note: code removed

 

How do i generate the invoice number on the print my invoice.php?

Second question:

 

In the same print_my_invoice.php, the address isn't completely shown. The address in my admin/invoice is

 

456 Road

Dunn,

North Carolina

North Carolina

United States 28334

 

But it is cut off in the print_my_invoice (see pic above). Is there any way i can show the full address?

 

Thanks in advance :D

 

In answer to your second question about the truncated address:

 

In the admin panel experiment with the various available Address Formats.

 

Open: Admin

select: Locations/Taxes

select: countries

Select: the country you are having problems with by clicking the circle "i" 'Action' column

Select: Edit

Select: another format from the pull down menu labeled "Address Format:". You can experiment with the various address formats until you get what you want.

 

Another possibility is that the total address ($firstname $lastname$cr$streets$cr$city, $state $postcode$cr$country) exceeds field size set in the database (I only counted 64 in your example). If that is true, you may change the 'type' for the address_format field in the database by increasing VAR(##) to whatever size field you need. The default is VAR(128).

 

BTW, I noticed that your addresses are cut off at 64 characters (1/2 of the default 128 characters). Is it possible you have already reduced this field perhaps to save storage space? If so, change it back to 128.

Ron

Share this post


Link to post
Share on other sites

This is what I see in Packingslip

 

INVOICE_TEXT_INVOICE_NR 300

INVOICE_TEXT_INVOICE_DATE07/24/2006

 

--------------------------------------------------------------------------------

TITLE_PACKING

 

 

Because of what I've read above I figured out how to get the logo right....but can't figure out why it reads INVOICE_TEXT_INVOICE bla bla bla.

 

When I open an Invoice, I get the same, but it list Invoice correctly.

 

Thanks for your help. I'm php illiterate :blush:

Share this post


Link to post
Share on other sites

Hi aspenshops, thanks for replying to my questions. Unfortunately, both ur suggested solutions didnt work for me. On the invoice that customers print out, the invoice number doesn't come up.

 

The second problem abt the address, I've checked the address format in myphpadmin and it is VAR(128) as per default.

 

I guess i'll keep looking for solutions! but thanks anyway.. :D

 

 

In answer to your second question about the truncated address:

 

In the admin panel experiment with the various available Address Formats.

 

Open: Admin

select: Locations/Taxes

select: countries

Select: the country you are having problems with by clicking the circle "i" 'Action' column

Select: Edit

Select: another format from the pull down menu labeled "Address Format:". You can experiment with the various address formats until you get what you want.

 

Another possibility is that the total address ($firstname $lastname$cr$streets$cr$city, $state $postcode$cr$country) exceeds field size set in the database (I only counted 64 in your example). If that is true, you may change the 'type' for the address_format field in the database by increasing VAR(##) to whatever size field you need. The default is VAR(128).

 

BTW, I noticed that your addresses are cut off at 64 characters (1/2 of the default 128 characters). Is it possible you have already reduced this field perhaps to save storage space? If so, change it back to 128.

Ron

Share this post


Link to post
Share on other sites

This might help with the problem of the code displaying instead of the data.

 

Check the code in whatever file is displayed (check the url in the browser for the correct path... ie: /catalog/admin/packingslip.php as opposed to /catalog/admin/includes/languages/english/packingslip.php). While displaying the code, search for the specific text that is not supposed to be displayed (i.e. search for INVOICE_TEXT_INVOICE_NR). If it follows an echo command and has single quotes (') around it, remove the quotes.

 

I ran into a lot of this while adding contributions. I'm not sure how/why single quotes were placed in the code provided. The quotes only belong when you want to display what is between them. Otherwise, with no quotes it should pull the text that is defined elsewhere (usually in the language file of the same name as the file you are working with).

 

examples:

1. Assume that INVOICE_TEXT_INVOICE_NR was defined in catalog/admin/includes/language/english/packingslip.php as Invoice Number:

 

2. You should get the following behavior from this code in catalog/admin/packingslip.php:

 

<?php echo 'INVOICE_TEXT_INVOICE_NR'; ?> will display INVOICE_TEXT_INVOICE_NR

 

<?php echo INVOICE_TEXT_INVOICE_NR; ?> will display Invoice Number:

 

btw my version does not have INVOICE_TEXT_INVOICE_NR defined in the packingslip language file. Mine uses INVOICE_NUMBER. (I have the Fancier Invoice & Packing Slip contribution installed)

 

 

I hope to have my osCommerce system online by next week. It's very close to launch. Wish me luck!

 

Ron (aspenshopsonline)

 

 

Hi aspenshops, thanks for replying to my questions. Unfortunately, both ur suggested solutions didnt work for me. On the invoice that customers print out, the invoice number doesn't come up.

 

The second problem abt the address, I've checked the address format in myphpadmin and it is VAR(128) as per default.

 

I guess i'll keep looking for solutions! but thanks anyway.. :D

Share this post


Link to post
Share on other sites

Hello,

A couple of quick questions before i decide to install great this contribution.

1) Does it have the ability to do a bulk invoice print ? - If not does it work with the "Batch Order Print" contribution to enable one to do this ?

2) Is anyone running this with CreLoaded ? Any problems ?

Thanks Alex

Share this post


Link to post
Share on other sites
This might help with the problem of the code displaying instead of the data.

 

Check the code in whatever file is displayed (check the url in the browser for the correct path... ie: /catalog/admin/packingslip.php as opposed to /catalog/admin/includes/languages/english/packingslip.php). While displaying the code, search for the specific text that is not supposed to be displayed (i.e. search for INVOICE_TEXT_INVOICE_NR). If it follows an echo command and has single quotes (') around it, remove the quotes.

 

I ran into a lot of this while adding contributions. I'm not sure how/why single quotes were placed in the code provided. The quotes only belong when you want to display what is between them. Otherwise, with no quotes it should pull the text that is defined elsewhere (usually in the language file of the same name as the file you are working with).

 

examples:

1. Assume that INVOICE_TEXT_INVOICE_NR was defined in catalog/admin/includes/language/english/packingslip.php as Invoice Number:

 

2. You should get the following behavior from this code in catalog/admin/packingslip.php:

 

<?php echo 'INVOICE_TEXT_INVOICE_NR'; ?> will display INVOICE_TEXT_INVOICE_NR

 

<?php echo INVOICE_TEXT_INVOICE_NR; ?> will display Invoice Number:

 

btw my version does not have INVOICE_TEXT_INVOICE_NR defined in the packingslip language file. Mine uses INVOICE_NUMBER. (I have the Fancier Invoice & Packing Slip contribution installed)

I hope to have my osCommerce system online by next week. It's very close to launch. Wish me luck!

 

Ron (aspenshopsonline)

 

Yup, that did it for me. Thanks! And I learned a little about coding too :blush:

I don't suppose you know how to get a space between Invoice Date and the date do you?

Share this post


Link to post
Share on other sites
Yup, that did it for me. Thanks! And I learned a little about coding too :blush:

I don't suppose you know how to get a space between Invoice Date and the date do you?

 

ooopsss :blush: I finally got it to not list 'INVOICE_TEXT_INVOICE_NR' and 'INVOICE_TEXT_INVOICE_DATE', and I see that I don't even want them there. They are place above "Invoice", and shouldn't be....since they are in a fancy box just below "Invoice"......where do I cancel them out? (without messing every thing else up)

Share this post


Link to post
Share on other sites
ooopsss :blush: I finally got it to not list 'INVOICE_TEXT_INVOICE_NR' and 'INVOICE_TEXT_INVOICE_DATE', and I see that I don't even want them there. They are place above "Invoice", and shouldn't be....since they are in a fancy box just below "Invoice"......where do I cancel them out? (without messing every thing else up)

 

Can you do another screen print? I'm not clear what the problem is.

 

Ron

Share this post


Link to post
Share on other sites

I now have a screen shot of my invoice that is giving me problems. Maybe this will help to give you an idea the problem I am having. This is only in the catalog/admin/invoice.php part. How do I get rid of all the invoice_text stuff?

 

 

invoice.jpg

 

 

<?php

/*

$Id: invoice.php,v 6.1 2005/06/05 00:37:30 PopTheTop Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright (c) 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']);

$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);

$date = date('M d, Y');

?>

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

<html <?php echo HTML_PARAMS; ?>>

<head>

<title><?php echo STORE_NAME; ?> <?php echo INVOICE_TEXT_INVOICE; ?> <?php echo INVOICE_TEXT_NUMBER_SIGN; ?><?php echo date("y"); ?><?php echo INVOICE_TEXT_DASH; ?><?php echo $oID; ?></title>

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

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

<script type="text/javascript" src='includes/admin_comments_popup.js'></script>

 

</head>

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

 

<!-- body_text //-->

 

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

<tr>

<td align="left"><?php echo '<input type="image" src="' . INVOICE_IMAGE . '" width="' . INVOICE_IMAGE_WIDTH . '" height="' . INVOICE_IMAGE_HEIGHT . '" " alt="' . INVOICE_IMAGE_ALT_TEXT . '" onClick="java script:ShowHide(\'comments_open\',\'comments_close\');">'; ?></td>

<TD ALIGN="right" VALIGN="top"><FONT FACE="Verdana" SIZE="2" COLOR="#006699"><strong><?php echo INVOICE_TEXT_INVOICE; ?> <?php echo INVOICE_TEXT_NUMBER_SIGN; ?> <?php echo date("y"); ?><?php echo INVOICE_TEXT_DASH; ?> <?php echo $oID; ?><BR><?php echo $date; ?></strong></font></TD>

</tr>

<tr>

<td colspan="2">

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

<tr>

<TD ALIGN="right" COLSPAN="2"><span class="pageHeadingSM"><FONT FACE="Verdana" SIZE="1" COLOR="#006699"><strong><?php echo nl2br(STORE_NAME_ADDRESS); ?></strong></font></span></TD>

</tr>

<tr>

<TD>

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

<tr>

<td colspan="4">

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

<tr>

<td width="10%"><hr size="2"></td>

<td align="center" class="pageHeading"><em><b><?php echo INVOICE_TEXT_INVOICE; ?></b></em></td>

<td width="100%"><hr size="2"></td>

</tr>

</table>

</td>

</tr>

<tr>

<td colspan="4"><?php echo tep_draw_separator('pixel_trans.gif', '100', '5'); ?></td>

</tr>

<tr>

<td width="3"> </td>

<td valign="top">

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

<tr>

<td width="11"><img src="../images/borders/maingrey_01.gif" width="11" height="16" alt=""></td>

<td background="../images/borders/maingrey_02.gif"><img src="../images/borders/maingrey_02.gif" width="24" height="16" alt="" ></td>

<td width="19"><img src="../images/borders/maingrey_03.gif" width="19" height="16" alt=""></td>

</tr>

<tr>

<td background="../images/borders/maingrey_04.gif"><img src="../images/borders/maingrey_04.gif" width="11" height="21" alt=""></td>

<td align="center" bgcolor="#F2F2F2">

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

<tr>

<td align="left" valign="top"><b><?php echo ENTRY_SOLD_TO; ?></b></td>

</tr>

<tr>

<td>    <?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td>

</tr>

<tr>

<td>    <?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', '10'); ?></td>

</tr>

<tr>

<td>    <?php echo $order->customer['telephone']; ?></td>

</tr>

<tr>

<td>    <?php echo $order->customer['email_address']; ?></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '1', '7'); ?></td>

</tr>

</table>

</td>

<td background="../images/borders/maingrey_06.gif"><img src="../images/borders/maingrey_06.gif" width="19" height="21" alt=""></td>

</tr>

<tr>

<td><img src="../images/borders/maingrey_07.gif" width="11" height="18" alt=""></td>

<td background="../images/borders/maingrey_08.gif"><img src="../images/borders/maingrey_08.gif" width="24" height="18" alt=""></td>

<td><img src="../images/borders/maingrey_09.gif" width="19" height="18" alt=""></td>

</tr>

</table>

</td>

<td width="45"> </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"><b><?php echo ENTRY_SHIP_TO; ?></b></td>

</tr>

<tr>

<td>    <?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td>

</tr>

<tr>

<td>    <?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br>    '); ?></td>

</tr>

<tr>

<td>    <?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>

</tr>

<tr>

<td>    </td>

</tr>

<tr>

<td>    </td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '1', '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 COLSPAN="2"><?php echo tep_draw_separator('pixel_trans.gif', '100', '15'); ?></td>

</tr>

<tr>

<TD COLSPAN="2">

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

<tr>

<td width="9"> </td>

<td>

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

<tr>

<td width="11"><img src="../images/borders/maingrey_01.gif" width="11" height="16" alt=""></td>

<td background="../images/borders/maingrey_02.gif"><img src="../images/borders/maingrey_02.gif" width="24" height="16" alt="" ></td>

<td width="19"><img src="../images/borders/maingrey_03.gif" width="19" height="16" alt=""></td>

</tr>

<tr>

<td background="../images/borders/maingrey_04.gif"><img src="../images/borders/maingrey_04.gif" width="11" height="21" alt=""></td>

<td align="center" bgcolor="#F2F2F2">

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

<tr>

<td width="33%"> <b><?php echo INVOICE_TEXT_ORDER; ?> <?php echo INVOICE_TEXT_NUMBER_SIGN; ?><?php echo INVOICE_TEXT_COLON; ?></b> <?php echo tep_db_input($oID); ?></td>

<td width="33%"> <b><?php echo INVOICE_TEXT_DATE_OF_ORDER; ?><?php echo INVOICE_TEXT_COLON; ?> </b><?php echo tep_date_short($order->info['date_purchased']); ?></td>

<?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> <b><?php echo ENTRY_PAYMENT_METHOD; ?></b> <?php echo $order->info['payment_method']; ?> (<?php echo $order->info['cc_type']; ?>)<br><?php echo tep_draw_separator('pixel_trans.gif', '100%', '6'); ?><br> <b><?php echo ENTRY_PAYMENT_CC_NUMBER; ?></b> <?php echo $this->cc_card_number_less_middle_digits; ?></td>

<?php

} else {

?>

<td> <b><?php echo ENTRY_PAYMENT_METHOD; ?></b> <?php echo $order->info['payment_method']; ?></td>

<?php

}

?>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '1', '7'); ?></td>

</tr>

</table>

</td>

<td background="../images/borders/maingrey_06.gif"><img src="../images/borders/maingrey_06.gif" width="19" height="21" alt=""></td>

</tr>

<tr>

<td><img src="../images/borders/maingrey_07.gif" width="11" height="18" alt=""></td>

<td background="../images/borders/maingrey_08.gif"><img src="../images/borders/maingrey_08.gif" width="24" height="18" alt=""></td>

<td><img src="../images/borders/maingrey_09.gif" width="19" height="18" alt=""></td>

</tr>

</table>

</td>

</tr>

</table>

</td>

</tr>

<tr>

<TD COLSPAN="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '15'); ?></td>

</tr>

<tr>

<TD COLSPAN="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>

</tr>

<tr>

<TD COLSPAN="2">

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

<tr class="dataTableHeadingRow">

<td class="dataTableHeadingContent" colspan="2"><?php echo TABLE_HEADING_PRODUCTS; ?></td>

<td class="dataTableHeadingContent"><?php echo TABLE_HEADING_PRODUCTS_MODEL; ?></td>

<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_TAX; ?></td>

<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_PRICE_EXCLUDING_TAX; ?></td>

<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_PRICE_INCLUDING_TAX; ?></td>

<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_TOTAL_EXCLUDING_TAX; ?></td>

<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_TOTAL_INCLUDING_TAX; ?></td>

</tr>

<?php

for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {

echo ' <tr class="dataTableRow">' . "\n" .

' <td class="dataTableContent" valign="top" align="right">' . $order->products[$i]['qty'] . ' x</td>' . "\n" .

' <td class="dataTableContent" 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 class="dataTableContent" valign="top">' . $order->products[$i]['model'] . '</td>' . "\n";

echo ' <td class="dataTableContent" align="right" valign="top">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n" .

' <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format($order->products[$i]['final_price'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n" .

' <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']), true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n" .

' <td class="dataTableContent" 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" .

' <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n";

echo ' </tr>' . "\n";

}

?>

<tr>

<td align="right" colspan="8">

<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>

</table>

<!-- ORDER COMMENTS CODE STARTS HERE //-->

<div id="comments_open" style="position: relative;">

<?php

$orders_status_history_query = tep_db_query("select * from " . TABLE_ORDERS_STATUS_HISTORY . " where orders_id = '" . tep_db_input($oID) . "' order by date_added");

if (tep_db_num_rows($orders_status_history_query)) {

$has_comments = false;

echo ' <br><br>';

echo ' <table width="100%" border="0" cellpadding="0" cellspacing="0">';

echo ' <tr>';

echo ' <td width="9"> </td>';

echo ' <td>';

echo ' <table width="100%" border="0" cellpadding="0" cellspacing="0">';

echo ' <tr>';

echo ' <td width="11"><img src="../images/borders/maingrey_01.gif" width="11" height="16" alt=""></td>';

echo ' <td background="../images/borders/maingrey_02.gif"><img src="../images/borders/maingrey_02.gif" width="24" height="16" alt="" ></td>';

echo ' <td width="19"><img src="../images/borders/maingrey_03.gif" width="19" height="16" alt=""></td>';

echo ' </tr>';

echo ' <tr>';

echo ' <td background="../images/borders/maingrey_04.gif"><img src="../images/borders/maingrey_04.gif" width="11" height="21" alt=""></td>';

echo ' <td align="center" bgcolor="#F2F2F2">';

echo ' <table width="100%" border="0" cellpadding="0" cellspacing="0" class="main">';

echo ' <tr>';

echo ' <td width="95%"> <b>' . TABLE_HEADING_COMMENTS . '</b><br><br></td>';

echo ' </tr>';

 

while ($orders_comments = tep_db_fetch_array($orders_status_history_query)) {

if (tep_not_null($orders_comments['comments'])) {

$has_comments = true; // Not Null = Has Comments

if (tep_not_null($orders_comments['comments'])) {

$sInfo = new objectInfo($orders_comments);

echo ' <tr>';

echo ' <td align="center" width="95%">';

echo ' <table width="95%" border="0" cellpadding="0" cellspacing="0">';

echo ' <tr>';

echo ' <td width="95%" class="smallText">';

echo ' <table width="100%" border="0" cellpadding="0" cellspacing="0" class="main">';

echo ' <tr>';

echo ' <td width="150" align="left" valign="top" class="smallText"><strong><u>' . TABLE_HEADING_DATE_ADDED . '</u></strong></td>';

echo ' <td align="left" valign="top" class="smallText"><strong><u>' . TABLE_HEADING_COMMENT_LEFT . '</u></strong></td>';

echo ' </tr>';

echo ' </table>';

echo ' </td>';

echo ' </tr>';

echo ' </table>';

echo ' </td>';

echo ' </tr>';

echo ' <tr>';

echo ' <td align="center" width="95%">';

echo ' <table width="95%" border="0" cellpadding="0" cellspacing="0">';

&n

Share this post


Link to post
Share on other sites
I now have a screen shot of my invoice that is giving me problems. Maybe this will help to give you an idea the problem I am having. This is only in the catalog/admin/invoice.php part. How do I get rid of all the invoice_text stuff?

invoice.jpg

 

 

I removed all the code pasted into my reply so as to keep this answer shorter. Looks like your problem is that you are missing a file. There should be a file located here /admin/includes/languages/english/invoice.php

 

This invoice.php file contains such things as the define('INVOICE_TEXT_INVOICE', 'Invoice'); Which would get rid of the INVOICE_TEXT_INVOICE and replace it with Invoice.

 

Let me know how you make out.

 

Rob.

Share this post


Link to post
Share on other sites

I'm tempted to download and install this contribution, but then I saw the following text in the description of an earlier version:

 

"Remember, this will not work with ANY PayPal IPN Contributions so you must choose one or the other when adding them into your osC store."

 

What the heck is this talking about? I thought this contribution just makes a nice printable invoice and/or packing slip. What's PayPal IPN got to do with it?

 

 

Thanks!

 

-= Dave =-

Share this post


Link to post
Share on other sites

Hi, i think what it means is that if you have any Paypal IPN contribution installed, this Fancier contribution will not work for your store. There would be problems integrating BOTH into your store. So, either you choose to have this Fancier contribution or Paypal IPN contribution for your store.

 

 

 

I'm tempted to download and install this contribution, but then I saw the following text in the description of an earlier version:

 

"Remember, this will not work with ANY PayPal IPN Contributions so you must choose one or the other when adding them into your osC store."

 

What the heck is this talking about? I thought this contribution just makes a nice printable invoice and/or packing slip. What's PayPal IPN got to do with it?

Thanks!

 

-= Dave =-

Share this post


Link to post
Share on other sites
Hi, i think what it means is that if you have any Paypal IPN contribution installed, this Fancier contribution will not work for your store. There would be problems integrating BOTH into your store. So, either you choose to have this Fancier contribution or Paypal IPN contribution for your store.

 

 

Thanks!

 

I'm just curious as to WHY! I've got a couple of customers with the older version of this contribution and I don't understand where it interacts with PayPal IPN. Now, it could be that that interaction is a new thing.

 

If I knew what the problem was, I might be able to code around it.

 

 

Thanks!

 

-= Dave =-

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

×