Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fancier Invoice & Packingslip v1.0


PopTheTop

Recommended Posts

At the top of you html_invoice.php make sure that it looks like this

<?php
/*
?$Id: invoice.php,v 5.1 2005/05/07 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

*/

class objectInfo {

// class constructor
? function objectInfo($object_array) {
? ? reset($object_array);
? ? while (list($key, $value) = each($object_array)) {
? ? ? $this->$key = tep_db_prepare_input($value);
? ? }
? }
}
?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>

I believe you are missing the "class objectInfo" part.

 

I'm not very good at php but error at line 298 is the same error that I had before.

 

FYI: You might get better help if you post the code your having problems with. Just make sure to use the CODE button.

 

Dave.

 

 

You was right, I've forgotten this correction... But now, again the error listed before :

 

- The email subject from the order confirmation received by the customer is :

EMAIL_TEXT_SUBJECT instead of orders details

 

- The html email don't have any pictures in it (borders, logos, etc)

 

- When the customer click on "print my invoice" button on his order history, he has a error 404...

 

I'm lost...

Link to comment
Share on other sites

hey ,can you please tell me where to change this text EMAIL_TEXT_SUBJECT

this is exactly how the subject looks like i just want to change it to storename order number , nothing else.

 

 

catalog\includes\languages\english\checkout_process.php

 

If you use a program called Windows Grep, you will be able to search for text like "EMAIL_TEXT_SUBJECT" and it will display every file that has that in it. You can get it from http://www.wingrep.com

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Link to comment
Share on other sites

GRR

I've AGAIN redone all the process (I've forgotten the file temp_cache.php) and I've now the same error tha the firsts times I installed this contribution :

 

When customer do an order, at the checkout_porcess he has a copy of the invoice directly on the page but not complete with, written at the end of thje page :

 

Fatal error: Cannot instantiate non-existent class: objectinfo in /home/virtual/site156/fst/var/www/html/includes/modules/email_invoice/templates/html_invoice.php on line 289

 

The order is passed but the products ordered stay on the basket of the customer and he don't receive zny confirmation...

 

HELP Please

 

 

People, please do not post requests for help unless you have read through this forum topic. Most all answers are found herein. I for one know that I have posted more than once the fix for Fatal error: Cannot instantiate non-existent class: objectinfo.

 

If you do not see anything, then do a simple search in the topic for something. For instance, with this error, I would search for objectinfo.

 

If something has been posted before, I will no longer reply again unless the original reply has been a while back.

 

Also, you really MUST install the latest version. If you have problems, in most all cases, the latest version will have the fix already taken care of. This means installing ALL the included files, not just one or two of them.

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Link to comment
Share on other sites

You was right, I've forgotten this correction... But now, again the error listed before :

 

- The email subject from the order confirmation received by the customer is :

EMAIL_TEXT_SUBJECT instead of orders details

 

- The html email don't have any pictures in it (borders, logos, etc)

 

- When the customer click on "print my invoice" button on his order history,  he has a error 404...

 

I'm lost...

 

 

You need to install the latest version step by step. You do not have it installed correctly and it looks as if you did not upload all the included files or you uploaded them in the wrong folders. Pay attention to where they go and keep the same file/folder structure.

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Link to comment
Share on other sites

hey every thing is working fine for me now. Can you please tell me how to change the color of this

 

Invoice # 05- 2828

May 14, 2005

 

store name

store address

____________

_____________

_________

 

its currently in this color > 006699

 

i tried changing the setttings in the below code but it didnt work

 

 

/* BEGIN Fancier Invoice and Packingslip */
.order_history_top { color : #006699; font-weight: bold; font-family: Verdana; font-size: 13px; }
.order_infobox_heading { color : #000000; font-weight: bold; font-family: Verdana; font-size: 12px; }
.order_infobox_data { color : #000000; font-family: Verdana; font-size: 12px; }
.product_infobox_heading_row { background-color: #C9C9C9; }
.product_infobox_heading { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #ffffff; font-weight: bold; }
.product_infobox_data_row { background-color: #F0F1F1; }
.product_infobox_data { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #000000; }
/* END Fancier Invoice and Packingslip */

Link to comment
Share on other sites

Sure, just change the HEX number of #006699 to what ever the color you want.

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Link to comment
Share on other sites

Does this contribution allow you to pull up an invoice by invoice number?

 

With the paypal IPN all I get is the customer name and invoice number.

The customer could put a diferent name in OSC than paypal and I would not be able to find the invoice with the customer name alone.

 

Is this the basic flow for an order?

Order placed, email comes from paypal and osc owner,

owner looks up name in orders, print invoice??

Link to comment
Share on other sites

hey ,

i tried that and it didnt work

 

heres what i have in my stylesheet.css

 

  /* BEGIN Fancier Invoice and Packingslip */
.order_history_top { color : #333333; font-weight: bold; font-family: Verdana; font-size: 13px; }
.order_infobox_heading { color : #999999; font-weight: bold; font-family: Verdana; font-size: 12px; }
.order_infobox_data { color : #999999; font-family: Verdana; font-size: 12px; }
.product_infobox_heading_row { background-color: #C9C9C9; }
.product_infobox_heading { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #ffffff; font-weight: bold; }
.product_infobox_data_row { background-color: #F0F1F1; }
.product_infobox_data { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #999999; }
/* END Fancier Invoice and Packingslip */

 

 

also about the tax prices i have changed all the tax prices to Just one unit price(got the code form your versio 1)

 

now the packing slip,invoice,and account history pages are showing it right but when the customer receives an html inovice email

it still shows like this

 

Products Style # Tax Price (ex) Price (inc) Total (ex) Total (inc)

 

please help me fix this

 

thankyou

Link to comment
Share on other sites

Does this contribution allow you to pull up an invoice by invoice number?

 

With the paypal IPN all I get is the customer name and invoice number.

The customer could put a diferent name in OSC than paypal and I would not be able to find the invoice with the customer name alone.

 

Is this the basic flow for an order?

Order placed, email comes from paypal and osc owner,

owner looks up name in orders, print invoice??

 

 

Pretty much, yes. If osC created an order number PRIOR to order success page like on the confirmation page, then you could use the order number as the item name in your PayPal payments. But since osC is not setup like that, you have to look up the dollar amount and compare with your orders in osC.

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Link to comment
Share on other sites

hey ,

i tried that and it didnt work

 

heres what i have in my stylesheet.css

 

 ?/* BEGIN Fancier Invoice and Packingslip */
.order_history_top { color : #333333; font-weight: bold; font-family: Verdana; font-size: 13px; }
.order_infobox_heading { color : #999999; font-weight: bold; font-family: Verdana; font-size: 12px; }
.order_infobox_data { color : #999999; font-family: Verdana; font-size: 12px; }
.product_infobox_heading_row { background-color: #C9C9C9; }
.product_infobox_heading { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #ffffff; font-weight: bold; }
.product_infobox_data_row { background-color: #F0F1F1; }
.product_infobox_data { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #999999; }
/* END Fancier Invoice and Packingslip */

also about the tax prices i have changed all the tax prices to Just one unit price(got the code form your versio 1)

 

now the packing slip,invoice,and account history pages are showing it right but when the customer receives an html inovice email

it still shows like this

 

Products Style # Tax Price (ex) Price (inc) Total (ex) Total (inc)

 

please help me fix this

 

thankyou

 

 

Then if the font color is not in the style sheet, it is in the HTML code within the PHP files. Open your templates and invoice.php and packingslip.php files and search for #006699

 

As far as the other thing goes, you have to delete the extra code to get rid of the added price w/tax and so on (like in version 1) and then you have to change ALL the colspan=XX in each of the <TD> tags in that same table.

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Link to comment
Share on other sites

New E-mailed HTML Invoice Template...

 

Copy the below text into a text file and save it as box_invopice.php then upload it to your catalog/includes/modules/email_invoice/templates folder

 

Then under Admin / Config / E-mail Options, change the template file name to box_invopice.php

 

<?php
/*
 $Id: box_invoice.php,v 5.5 2005/05/15 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
*/

 class objectInfo {

// class constructor
   function objectInfo($object_array) {
     reset($object_array);
     while (list($key, $value) = each($object_array)) {
       $this->$key = tep_db_prepare_input($value);
     }
   }
 }

?>
<html>
<head>
<title><?php echo STORE_NAME; ?> <?php echo INVOICE_TEXT_INVOICE; ?> <?php echo INVOICE_TEXT_NUMBER_SIGN; ?><?php echo INVOICE_TEXT_CURRENT_YEAR; ?><?php echo INVOICE_TEXT_DASH; ?><?php echo $oID; ?></title>
<link rel="stylesheet" type="text/css" href="<?php echo $ei_css_path; ?>stylesheet.css">
</head>
<body bgcolor="#FFFFFF" leftmargin=10 topmargin=10>

<table width="600">
<tr>
 <td height="6" colspan="2"> </td>
</tr>

<tr>
 <td width="4"> </td>
 <td>

<!-- START Top Header -->
<table width=100% bgcolor="#FFFFFF" cellpadding="5" style="border-collapse: collapse" bordercolor="#EEEEEE" cellspacing="0" border="3">
<tr>
 <td width="100%">
	 <table width="100%">
   <tr>
  	 <td align="left"><?php echo '<img src="' . INVOICE_IMAGE . '" border="0" alt="' . INVOICE_IMAGE_ALT_TEXT . '" width="' . INVOICE_IMAGE_WIDTH . '" height="' . INVOICE_IMAGE_HEIGHT . '" hspace="10">'; ?></td>
  	 <TD ALIGN="right" VALIGN="top" NOWRAP><FONT FACE="Arial" SIZE="2" COLOR="#006699"><strong><?php echo INVOICE_TEXT_INVOICE; ?> <?php echo INVOICE_TEXT_NUMBER_SIGN; ?> <?php echo INVOICE_TEXT_CURRENT_YEAR; ?><?php echo INVOICE_TEXT_DASH; ?><?php echo $oID; ?><BR><?php echo $date; ?></strong></font><br><br><span class="pageHeadingSM"><FONT FACE="Arial" SIZE="1" COLOR="#006699"><strong><?php echo nl2br(STORE_NAME_ADDRESS); ?></strong></font></span></TD>
   </tr>
	 </table>
 </td>
</tr>
</table>
<!-- END Top Header -->

<!-- START INVOICE -->
<table width=100% bgcolor="#C9C9C9" cellpadding="2">
 <tr class="dataTableHeadingRow">
   <td> <font face="Arial Black" size="3" color="#FFFFFF"><i>INVOICE</i></font></td>
 </tr>
</table>
<!-- END INVOICE -->

<table width="100%" border="3" cellpadding="5" bordercolor="#EEEEEE" bgcolor="#FFFFFF" style="border-collapse: collapse">
 <tr>
   <td width="50%" valign="top">
<!-- START Billing Info -->
      	 <table width="100%" border="0" cellspacing="0" cellpadding="0" class="main">
                     <tr>
                       <td align="left" valign="top"><FONT FACE="Arial" SIZE="2" COLOR="#006699"><b><?php echo ENTRY_SOLD_TO; ?></b></font></td>
                     </tr>
                     <tr>
                       <td>    <img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="5" alt=""></td>
                     </tr>
                     <tr>
                       <td NOWRAP>    <FONT FACE="Arial" SIZE="2" COLOR="#006699"><?php echo tep_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>    '); ?></font></td>
                     </tr>
                     <tr>
                       <td>    <img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="10" alt=""></td>
                     </tr>
                     <tr>
                       <td NOWRAP>    <FONT FACE="Arial" SIZE="2" COLOR="#006699"><?php echo $order->customer['telephone']; ?></font></td>
                     </tr>
                     <tr>
                       <td NOWRAP>    <FONT FACE="Arial" SIZE="2" COLOR="#006699"><?php echo $order->customer['email_address']; ?></font></td>
                     </tr>
                     <tr>
                       <td><img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="7" alt=""></td>
                     </tr>
                   </table>
<!-- END Billing Info -->
   </td>
   <td width="50%" valign="top">
<!-- START Shipping Info -->
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="main">
                     <tr>
                       <td align="left" valign="top"><FONT FACE="Arial" SIZE="2" COLOR="#006699"><b><?php echo ENTRY_SHIP_TO; ?></b></font></td>
                     </tr>
                     <tr>
                       <td>    <img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="5" alt=""></td>
                     </tr>
                     <tr>
                       <td NOWRAP>    <FONT FACE="Arial" SIZE="2" COLOR="#006699"><?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br>    '); ?></font></td>
                     </tr>
                     <tr>
                       <td>    <img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="10" alt=""></td>
                     </tr>
                     <tr>
                       <td>    </td>
                     </tr>
                     <tr>
                       <td>    </td>
                     </tr>
                     <tr>
                       <td><img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="7" alt=""></td>
                     </tr>
        </table>
<!-- END Shipping Info -->
 </td>
</tr>
</table>

<!-- START Product Info -->
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="dataTableHeadingRow">
 <td class="dataTableHeadingContent" colspan="2"> <font color="#FFFFFF"><?php echo TABLE_HEADING_PRODUCTS; ?></font></td>
 <td WIDTH="80" class="dataTableHeadingContent"><font color="#FFFFFF"><?php echo TABLE_HEADING_PRODUCTS_MODEL; ?></font></td>
 <td WIDTH="80" class="dataTableHeadingContent" align="right"><font color="#FFFFFF"><?php echo TABLE_HEADING_UNIT_PRICE; ?></font></td>
 <TD WIDTH="80" ALIGN="right" CLASS="dataTableHeadingContent"><font color="#FFFFFF"><?php echo TABLE_HEADING_TOTAL; ?></font> </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" NOWRAP>' . $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="dataTableContent" valign="top">' . $order->products[$i]['model'] . '</td>' . "\n";
     echo '  <td WIDTH="80" class="dataTableContent" 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="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";
     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>
<!-- END Product Info -->
<!-- START Customer Thank You and Order Link -->
<table width="100%" border="3" cellpadding="5" bordercolor="#EEEEEE" bgcolor="#FFFFFF" style="border-collapse: collapse">
<tr>
 <td colspan="2" align="center"><br><font size=2 face="Arial" color="#006699">Thank you for purchasing from <?php echo STORE_NAME; ?><br><?php echo STORE_URL_ADDRESS; ?><br>Please print this invoice for your records</font><br><br></td>
</tr>
<!-- END Customer Thank You and Order Link -->
</table>

<!-- START Footer -->
<table width=100% bgcolor="#C9C9C9" cellpadding="2">
 <tr class="dataTableHeadingRow">
   <td class="dataTableHeadingContent"> <STRONG><FONT COLOR="#ffffff">Copyright ? 20<?php echo INVOICE_TEXT_CURRENT_YEAR; ?> <?php echo STORE_NAME; ?>, All Rights Reserved</FONT></STRONG></td>
 </tr>
</table>
<!-- END Footer -->

 </td>
</tr>
</table>
</body>
</html>

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Link to comment
Share on other sites

Need help here...

 

I have a new problem that I can not figure out...

 

The stock e-mails show the payment information/instruction at the bottom stored for each payment. I believe the code that call that is this:

	if (is_object($$payment)) {
 $email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" . 
                     EMAIL_SEPARATOR . "\n";
   $payment_class = $$payment;
   $email_order .= $payment_class->title . "\n\n";

 if ($payment_class->email_footer) {
	 $email_order .= $payment_class->email_footer . "\n\n";
   }
	 }

 

And if a product is a virtual product like downloadable stuff, it prints in the e-mail the link to where they can down load it. I think the code that call that call that is this:

 	 if ($order->content_type != 'virtual') {
 $email_order .= "\n" .  EMAIL_TEXT_DELIVERY_ADDRESS . "\n" . 
                       EMAIL_SEPARATOR . "\n" .
                       tep_address_label($customer_id, $sendto, 0, '', "\n") . "\n";
	 }

 

 

The question here is...

How do we incorporate them into the HTML invoices?

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Link to comment
Share on other sites

New E-mailed HTML Invoice Template...

 

Copy the below text into a text file and save it as box_invopice.php then upload it to your catalog/includes/modules/email_invoice/templates folder

 

Then under Admin / Config / E-mail Options, change the template file name to box_invopice.php

 

<?php
/*
 $Id: box_invoice.php,v 5.5 2005/05/15 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
*/

 class objectInfo {

// class constructor
   function objectInfo($object_array) {
     reset($object_array);
     while (list($key, $value) = each($object_array)) {
       $this->$key = tep_db_prepare_input($value);
     }
   }
 }

?>
<html>
<head>
<title><?php echo STORE_NAME; ?> <?php echo INVOICE_TEXT_INVOICE; ?> <?php echo INVOICE_TEXT_NUMBER_SIGN; ?><?php echo INVOICE_TEXT_CURRENT_YEAR; ?><?php echo INVOICE_TEXT_DASH; ?><?php echo $oID; ?></title>
<link rel="stylesheet" type="text/css" href="<?php echo $ei_css_path; ?>stylesheet.css">
</head>
<body bgcolor="#FFFFFF" leftmargin=10 topmargin=10>

<table width="600">
<tr>
 <td height="6" colspan="2"> </td>
</tr>

<tr>
 <td width="4"> </td>
 <td>

<!-- START Top Header -->
<table width=100% bgcolor="#FFFFFF" cellpadding="5" style="border-collapse: collapse" bordercolor="#EEEEEE" cellspacing="0" border="3">
<tr>
 <td width="100%">
	 <table width="100%">
   <tr>
  	 <td align="left"><?php echo '<img src="' . INVOICE_IMAGE . '" border="0" alt="' . INVOICE_IMAGE_ALT_TEXT . '" width="' . INVOICE_IMAGE_WIDTH . '" height="' . INVOICE_IMAGE_HEIGHT . '" hspace="10">'; ?></td>
  	 <TD ALIGN="right" VALIGN="top" NOWRAP><FONT FACE="Arial" SIZE="2" COLOR="#006699"><strong><?php echo INVOICE_TEXT_INVOICE; ?> <?php echo INVOICE_TEXT_NUMBER_SIGN; ?> <?php echo INVOICE_TEXT_CURRENT_YEAR; ?><?php echo INVOICE_TEXT_DASH; ?><?php echo $oID; ?><BR><?php echo $date; ?></strong></font><br><br><span class="pageHeadingSM"><FONT FACE="Arial" SIZE="1" COLOR="#006699"><strong><?php echo nl2br(STORE_NAME_ADDRESS); ?></strong></font></span></TD>
   </tr>
	 </table>
 </td>
</tr>
</table>
<!-- END Top Header -->

<!-- START INVOICE -->
<table width=100% bgcolor="#C9C9C9" cellpadding="2">
 <tr class="dataTableHeadingRow">
   <td> <font face="Arial Black" size="3" color="#FFFFFF"><i>INVOICE</i></font></td>
 </tr>
</table>
<!-- END INVOICE -->

<table width="100%" border="3" cellpadding="5" bordercolor="#EEEEEE" bgcolor="#FFFFFF" style="border-collapse: collapse">
 <tr>
   <td width="50%" valign="top">
<!-- START Billing Info -->
      	 <table width="100%" border="0" cellspacing="0" cellpadding="0" class="main">
                     <tr>
                       <td align="left" valign="top"><FONT FACE="Arial" SIZE="2" COLOR="#006699"><b><?php echo ENTRY_SOLD_TO; ?></b></font></td>
                     </tr>
                     <tr>
                       <td>    <img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="5" alt=""></td>
                     </tr>
                     <tr>
                       <td NOWRAP>    <FONT FACE="Arial" SIZE="2" COLOR="#006699"><?php echo tep_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>    '); ?></font></td>
                     </tr>
                     <tr>
                       <td>    <img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="10" alt=""></td>
                     </tr>
                     <tr>
                       <td NOWRAP>    <FONT FACE="Arial" SIZE="2" COLOR="#006699"><?php echo $order->customer['telephone']; ?></font></td>
                     </tr>
                     <tr>
                       <td NOWRAP>    <FONT FACE="Arial" SIZE="2" COLOR="#006699"><?php echo $order->customer['email_address']; ?></font></td>
                     </tr>
                     <tr>
                       <td><img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="7" alt=""></td>
                     </tr>
                   </table>
<!-- END Billing Info -->
   </td>
   <td width="50%" valign="top">
<!-- START Shipping Info -->
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="main">
                     <tr>
                       <td align="left" valign="top"><FONT FACE="Arial" SIZE="2" COLOR="#006699"><b><?php echo ENTRY_SHIP_TO; ?></b></font></td>
                     </tr>
                     <tr>
                       <td>    <img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="5" alt=""></td>
                     </tr>
                     <tr>
                       <td NOWRAP>    <FONT FACE="Arial" SIZE="2" COLOR="#006699"><?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br>    '); ?></font></td>
                     </tr>
                     <tr>
                       <td>    <img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="10" alt=""></td>
                     </tr>
                     <tr>
                       <td>    </td>
                     </tr>
                     <tr>
                       <td>    </td>
                     </tr>
                     <tr>
                       <td><img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="7" alt=""></td>
                     </tr>
        </table>
<!-- END Shipping Info -->
 </td>
</tr>
</table>

<!-- START Product Info -->
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="dataTableHeadingRow">
 <td class="dataTableHeadingContent" colspan="2"> <font color="#FFFFFF"><?php echo TABLE_HEADING_PRODUCTS; ?></font></td>
 <td WIDTH="80" class="dataTableHeadingContent"><font color="#FFFFFF"><?php echo TABLE_HEADING_PRODUCTS_MODEL; ?></font></td>
 <td WIDTH="80" class="dataTableHeadingContent" align="right"><font color="#FFFFFF"><?php echo TABLE_HEADING_UNIT_PRICE; ?></font></td>
 <TD WIDTH="80" ALIGN="right" CLASS="dataTableHeadingContent"><font color="#FFFFFF"><?php echo TABLE_HEADING_TOTAL; ?></font> </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" NOWRAP>' . $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="dataTableContent" valign="top">' . $order->products[$i]['model'] . '</td>' . "\n";
     echo '  <td WIDTH="80" class="dataTableContent" 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="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";
     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>
<!-- END Product Info -->
<!-- START Customer Thank You and Order Link -->
<table width="100%" border="3" cellpadding="5" bordercolor="#EEEEEE" bgcolor="#FFFFFF" style="border-collapse: collapse">
<tr>
 <td colspan="2" align="center"><br><font size=2 face="Arial" color="#006699">Thank you for purchasing from <?php echo STORE_NAME; ?><br><?php echo STORE_URL_ADDRESS; ?><br>Please print this invoice for your records</font><br><br></td>
</tr>
<!-- END Customer Thank You and Order Link -->
</table>

<!-- START Footer -->
<table width=100% bgcolor="#C9C9C9" cellpadding="2">
 <tr class="dataTableHeadingRow">
   <td class="dataTableHeadingContent"> <STRONG><FONT COLOR="#ffffff">Copyright ? 20<?php echo INVOICE_TEXT_CURRENT_YEAR; ?> <?php echo STORE_NAME; ?>, All Rights Reserved</FONT></STRONG></td>
 </tr>
</table>
<!-- END Footer -->

 </td>
</tr>
</table>
</body>
</html>

 

 

Made theese changes as of your instructions. Looks great now the mail sent out to customer.

 

I have a problem with this one as an earlier problem stated here, remeber my shipping slip ?? It seem like the same problem arises here. I can only get the english text on my invoice sent to customers !! I can't see why, I've really searched through the code a couplo of times. When I use the old html_invoice.php everything works great with my swedish translation. Can you point me to some direction to fix this ??

 

// Storeman:- :(

Link to comment
Share on other sites

Not sure what to tell you because it works just fine for me and everyone else, so it seems.

Well - there are another user who reports the same problems as I do. See recent posts from the user mmph.

 

Be certain you have the Admin Option in Admin / Config / My Store of Send Extra Order Emails To set with an e-mail address and is is a valid e-mail address. If this is blank, you will not get the extra e-mails.

It's not blank

 

See, this is the code that calls it in email_invoice.php

!= '' means if it is not blank...

	if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
?$ei_message->send(STORE_OWNER, SEND_EXTRA_ORDER_EMAILS_TO, $order->customer['name'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT);
}

My code is excately like the above code

 

Also, some servers when they get loaded down will take a few hours or even over night to get the mail sent out. That has happened to me periodiclly and in that case, the next morning, the e-mails were there.

This is not the question here either.

 

Did you make any changes to the included files in this contribution?

No

 

 

BUT:

 

I now did another test. When I change the settings under E-Mail Options in the administration and set "Send HTML or Text Invoices to Customers" to false - then i get the extra order emails, but in the old textformat - not in your fancy new design (which I would like to have)

 

/MR.T

Link to comment
Share on other sites

Im new to osC and PHP (only a week since I started). I have installed Fancier Invoices 5.5 and I have a major problem.

 

I have re-installed 2 times (everything but SQL) and checked and re-checked and re-checked my installation to make sure everything is correct.

 

Anyway, the problem I have is when I log in to my account and there is order history the bottom of the page gets skewed to the left and some of the boxes that should be in the right side get moved to the left side.

 

This is only when there is order history. If I delete the order history it does not do this.

 

Here are some screens of the anomoly

 

BAD

ftmessedup.jpg

GOOD

ftnormal.jpg

 

 

 

You can try it out for yourself with this test account

 

www.fullmicros.com

 

usr: [email protected]

pass: johndoe

 

I also have a few other contribs installed, UltraPics (image+html release), DeadEasy Center Thingy, Review Approval System, and Print Catalog.

 

 

Also, when I click the "Print Order" button I get this error.

The requested URL /FILENAME_ORDERS_PRINTABLE was not found on this server.

 

when I uninstall Fancier Invoices everything works perfectly.

 

 

Any help would be much appreciated.

 

Thanks. :D

Edited by fullmicros
Link to comment
Share on other sites

From reading the last several posts (and not yet being familiar with the complete contrib), 2 observations might be helpful:

 

1) It is useful to use a good syntax-highlighting editor to perform code changes. Using Notepad, Wordpad, etc will work, but using the HomeSite HTML editor, Crimson Editor (free), ConTEXT (free), or many other syntax-highlighting editors are MUCH easier. Why? Because when displaying your .PHP files, they automatically put PHP commands in a different color than HTML, which is in a different color than commented lines, etc. With Notepad / Wordpad or any other non-syntax highlighting editor, all the text is the same color.

 

Many of these editors will also display the line number before each line. This is especially useful when trying to find errors that refer to specific lines. Note that the error is not always _caused_ the code on that line, it's just that the PHP server module _noticed_ an error when trying to execute that line. Often the actual error is a few lines above.

 

2) Tools like WinMerge from http://winmerge.org (also free) are good to find differences between text files. Whether it's a "file1 works why doesn't file 2?" problem, or a "what did I just change" problem, you can compare 2 files and very easily see (and change) the differences in these files.

 

-jared

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Link to comment
Share on other sites

Made theese changes as of your instructions. Looks great now the mail sent out to customer.

 

I have a problem with this one as an earlier problem stated here, remeber my shipping slip ?? It seem like the same problem arises here. I can only get the english text on my invoice sent to customers !! I can't see why, I've really searched through the code a couplo of times. When I use the old html_invoice.php everything works great with my swedish translation. Can you point me to some direction to fix this ??

 

// Storeman:-? ? :(

 

 

Sorry, I only have an English language store and do not know anything about other languages. I do know one thing though, if you translate the included language files and copy them to your other language folders, then they should get them in the correct language.

Edited by PopTheTop

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Link to comment
Share on other sites

Well - there are another user who reports the same problems as I do. See recent posts from the user mmph.

It's not blank

My code is excately like the above code

This is not the question here either.

No

BUT:

 

I now did another test. When I change the settings under E-Mail Options in the administration and set "Send HTML or Text Invoices to Customers" to false - then i get the extra order emails, but in the old textformat - not in your fancy new design (which I would like to have)

 

/MR.T

 

 

Still, I do not know as the code is there to do it and it works for me and most all others. Try using another HTML invoice template and see if that will work. I just uploaded a new one yesterday called box_invoice.php.

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Link to comment
Share on other sites

It's in the e-mail invoices and the admin invoices.

 

/MR.T

 

Try comparing that code with the code in Admin / Orders - They should be the same.

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Link to comment
Share on other sites

When using the new template - I get the extra email on orders....

 

/MR.T

 

 

I guess the code in html_invoice.php is not compatible with some carts. It works for most, but I guess it depends on the modifications you have done to your site or something... Hmmm

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Link to comment
Share on other sites

Im new to osC and PHP (only a week since I started). I have installed Fancier Invoices 5.5 and I have a major problem.

 

I have re-installed 2 times (everything but SQL) and checked and re-checked and re-checked my installation to make sure everything is correct.

 

Anyway, the problem I have is when I log in to my account and there is order history the bottom of the page gets skewed to the left and some of the boxes that should be in the right side get moved to the left side.

 

This is only when there is order history. If I delete the order history it does not do this.

 

Here are some screens of the anomoly

 

BAD

ftmessedup.jpg

GOOD

ftnormal.jpg

You can try it out for yourself with this test account

 

www.fullmicros.com

 

usr: [email protected]

pass: johndoe

 

I also have a few other contribs installed, UltraPics (image+html release), DeadEasy Center Thingy, Review Approval System, and Print Catalog.

Also, when I click the "Print Order" button I get this error.

The requested URL /FILENAME_ORDERS_PRINTABLE was not found on this server.

 

when I uninstall Fancier Invoices everything works perfectly.

Any help would be much appreciated.

 

Thanks. :D

 

 

You have a problem with your HTML code...

 

For starters, you have a lot of "width="05" for your image widths. That is incorrect. It should be "5". You can not add a zero in front like that.

 

As far as the rest, my HTML Validator in HomeSite did not find any other problems. But I do see that the Order History box on the right is screwed up. I suggest looking into that as well.

Edited by PopTheTop

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Link to comment
Share on other sites

Sorry, I only have an English language store and do not know anything about other languages. I do know one thing though, if you translate the included language files and copy them to your other language folders, then they should get them in the correct language.

 

That's what I've done. I cant finde any error in that code.

 

// Storeman:-

Link to comment
Share on other sites

You have a problem with your HTML code...

 

For starters, you have a lot of "width="05" for your image widths. That is incorrect. It should be "5". You can not add a zero in front like that.

 

As far as the rest, my HTML Validator in HomeSite did not find any other problems. But I do see that the Order History box on the right is screwed up. I suggest looking into that as well.

 

 

Well, thats the thing its not my code, I havent actually changed any code other than what I was told to insert by you in your instructions. I copied and pasted it, double checked that I have it correct and I did.

 

What width are you talking about? The space between the boxes?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...