Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fancier Invoice & Packingslip v1.0


PopTheTop

Recommended Posts

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?

 

 

OK, I got it. It was the Order history box. The top image code was missing. Thanks for the heads up on where to look.

Link to comment
Share on other sites

Hi, I have installed the latest version but when I try to change the image and image size of the logo for the email invoice in the email_invoice file it doesn't work, it seems to be getting the image logo and settings from invoice.php or packingslip.php. Have I installed it incorrectly?

Link to comment
Share on other sites

hello All,

can any one please tell me if this contribution works with paypal. When a customer pays with paypal this html invoice is not sent :(

this is exactly what my customers gets in the email

 

 

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

Order Number: 2855

Detailed Invoice: https://www.site.com/account_history_info.php?order_id=2855

Date Ordered: Tuesday 17 May, 2005

 

Products

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

1 x Testing (shipcost) = $0.05

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

Sub-Total: $0.05

Free Shipping: $0.00

Total: $0.05

 

Delivery Address

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

 

 

,

 

 

Billing Address

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

 

 

,

 

 

Payment Method

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

PayPal

 

 

 

 

 

thankyou

Link to comment
Share on other sites

Like the contrib alot, but I have some problems that just appeared after I installed it.

 

1. The client is recieving their order confirmation emails just fine but I am not recieving any orders at all in my email.

 

2. After the customer finishes the order and they get the "Your Order Has Been Processed" screen. When they click on the Continue button a Security info box pops up saying "This page contains both secure and nonsecure items. Do you want to display the nonsecure items?" That didn't happen before!

 

3. In the invoice that is being sent to the customer, it has the price listed 4 times, how do I get rid of the 2 I don't need? Here is what it looks like:

 

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

5 x Dell S2500 (R0884)    310-3674        7%      $139.95      $139.95    $699.75      $699.75

 

What are all these ( Price (ex) Price (inc) Total (ex) Total (inc) )for anyway? :huh:

 

All I want is Products, Model# Price Each, Total.

 

So It looks like this:

 

Quantity    Products                            Model #        Price ea.      Total

    5          Dell S2500 (R0884)          310-3674        $139.95      $699.75

 

Is that possible? :blink:

My Favorite Quote from a movie.

 

Question: How do you know women sooo well?

 

Answer: I think of a man, then take away reason and accountability.

Link to comment
Share on other sites

hello All,

can any one please tell me if this contribution works with paypal. When a customer pays with paypal this html invoice is not sent :(

this is exactly what my customers gets in the email

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

Order Number: 2855

Detailed Invoice: https://www.site.com/account_history_info.php?order_id=2855

Date Ordered: Tuesday 17 May, 2005

 

Products

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

1 x Testing (shipcost) = $0.05

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

Sub-Total: $0.05

Free Shipping: $0.00

Total: $0.05

 

Delivery Address

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

,

Billing Address

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

,

Payment Method

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

PayPal

thankyou

 

It does not work with paypal IPN 1.1 for me. I get the same text email also.

 

It does work with authorize.net 1.7b though just fine.

Link to comment
Share on other sites

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?

 

 

The image widths, just do a search for width="05" and you will find it.

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

hello All,

can any one please tell me if this contribution works with paypal.thankyou

 

 

Are you talking about PayPal IPN or just the stock PayPal payment module that comes with osC? It works fantastic with the stock PayPal payment module that comes with osC but there are those here who do have problems with both PayPal IPN contributions for some reason.

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

1. The client is recieving their order confirmation emails just fine but I am not recieving any orders at all in my email.

 

Some people have that problem with the html_invoice.php template. Try using the other one that comes with this contribution or use the new box_invoice.php I just posted in the contribution download section. That should fix your problem.

 

 

 

2. After the customer finishes the order and they get the "Your Order Has Been Processed" screen. When they click on the Continue button a Security info box pops up saying "This page contains both secure and non secure items. Do you want to display the non secure items?" That didn't happen before!

 

This is because some of the images are being loaded as non-secure with http:// instead of https:// so you need to check the HTML and PHP coding plus check your configure.php files (all 3) and see that your HTTPS settings are correct.

 

 

 

3. In the invoice that is being sent to the customer, it has the price listed 4 times, how do I get rid of the 2 I don't need? Here is what it looks like:

What are all these ( Price (ex)    Price (inc)  Total (ex)    Total (inc) )for anyway? :huh:

 

 

I know what you mean and I no longer have that in my invoices. Download version 1.0 of this contribution to get the code you need in the invoice.php file. I added it back in because many people here wanted it. It is a bit redundant having it there for US based stores so I removed them. Take a look at my screen shot...

 

Invoice.jpg

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

I am using box_invoice.php and it looks great. I cannot for the life of me figure out how to get the product attributes to show up on the e-mail. I've been through these forums up and down and still cannot get attributes into e-mail. This is very important because I'm trying to sell T-shirts and I need to know what size to send out to people. Thanks for any help.

Link to comment
Share on other sites

I am using box_invoice.php and it looks great.  I cannot for the life of me figure out how to get the product attributes to show up on the e-mail.  I've been through these forums up and down and still cannot get attributes into e-mail.  This is very important because I'm trying to sell T-shirts and I need to know what size to send out to people.  Thanks for any help.

 

 

The product attributes do show up in the e-mailed invoices with all the templates. I do not know why your HTML invoices do not.

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

Go into your Amin / Configuration / My Store and edit your stor address. Then just add your phone number below. I saved mine as:

 

Pop-the-top Trading Post

13 Algonquin Circle

Hillsboro, MO 63050

419-710-5712

 

Instead of

 

Pop-the-top Trading Post

13 Algonquin Circle

Hillsboro, MO 63050

Easy huh?

 

Hi!

I have tried to install this great contrib but get a problem. Whit the changes made in checkout_process I get a blank page when I try to confirm an order, when I take it away it works ok again.

Any clues??

 

Anders(Newbi)

Link to comment
Share on other sites

The attributes would not show up on the regular store e-mails either that is why I was trying the fancy invoice.  Is there anything I can do to check the attributes to make sure they are correct?

 

 

Not sure then, you may have modified something in your store to cause that. If it does not work with the other stock setup, then it will not work with this either because this uses the same stock osC code. Check the previously installed contributions and ask for support on those forum topics because I can not help you on that one.

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

Hi!

I have tried to install this great contrib but get a problem. Whit the changes made in checkout_process I get a blank page when I try to confirm an order, when I take it away it works ok again.

Any clues??

 

Anders(Newbi)

 

 

You must be using one of the PayPal IPN contributions then. With this contribution, you need to use the stock osC PayPal payment module. This was stated a few posts above yours. This is not compatible with PayPal IPN payment modules and I do not plan on making it so because the idea is nice, but PayPal IPN payment modules are still way too buggy and conflict with MANY other contributions.

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

Some people have that problem with the html_invoice.php template. Try using the other one that comes with this contribution or use the new box_invoice.php I just posted in the contribution download section. That should fix your problem.

This is because some of the images are being loaded as non-secure with http:// instead of https:// so you need to check the HTML and PHP coding plus check your configure.php files (all 3) and see that your HTTPS settings are correct.

I know what you mean and I no longer have that in my invoices. Download version 1.0 of this contribution to get the code you need in the invoice.php file. I added it back in because many people here wanted it. It is a bit redundant having it there for US based stores so I removed them. Take a look at my screen shot...

 

Invoice.jpg

 

Fixed the photo thing, thanks :thumbsup:

 

But I still don't receive my order emails when I use the contrib.

 

If I install the box_invoice.php I get this error as an email sent to the client and I still don;t get an order email.

 

Warning: main(includes/modules/email_invoice/templates/box_invoice.php): failed to open stream: No such file or directory in /hsphere/local/group-1/home/ksaun/tonerjunction.com/catalog/includes/modules/email_invoice/email_invoice.php on line 39

Warning: main(includes/modules/email_invoice/templates/box_invoice.php): failed to open stream: No such file or directory in /hsphere/local/group-1/home/ksaun/tonerjunction.com/catalog/includes/modules/email_invoice/email_invoice.php on line 39

Warning: main(): Failed opening 'includes/modules/email_invoice/templates/box_invoice.php' for inclusion (include_path='.:/usr/local/lib/php') in /hsphere/local/group-1/home/ksaun/tonerjunction.com/catalog/includes/modules/email_invoice/email_invoice.php on line 39

 

I also downloaded version 1.0 like you suggested but I have no idea where to start making the changes to get rid of the extra item cost and totals

 

Can you give me some direction on these issues? :blush:

My Favorite Quote from a movie.

 

Question: How do you know women sooo well?

 

Answer: I think of a man, then take away reason and accountability.

Link to comment
Share on other sites

Scooter, I have a question and or problem with this mod & the email invoice mod that you added the box_invoice template. I have a more simpler layout but with more data for record keeping.

 

I can see the need for a better invoiceing & packing slip which I use, but one thing that knowbody has addressed is there is no way to manualy send an invoice from the orders page.

 

I may be wrong but the only chance for the customer to get an emailed invoice is on cheheckout. Most of us have the Order editor tool so if a customer wants to change an order they cannot get a final detailed invoice emailed to them.

 

Is there any way to add the following in the admin order page ?

 

1. Button to " Send Invoice" to the customers email address.

2. Button to " Send PDF Invoice" to the customers email address.

 

 

Thanks

 

Jimmy

Edited by RI Downlink

I'm not a coder just a splicer.

Link to comment
Share on other sites

Hello,

 

I've installed the Fancier Invoice & Packingslip v5.5. Everything seems to work acceptable, except when my customer receives an email with order status change:

 

Store Name

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

Order Number: 53

Detailed Invoice: .......osCommerce/account_history_info.php?order_id=53

Date Ordered: Saturday 21 May, 2005

 

The comments for your order are

 

 

 

 

 

Your order has been updated to the following status.

 

New status: Processing

Please reply to this email if you have any questions.

 

Detailed Invoice: .......osCommerce/account_history_info.php?order_id=53 is not clickable, just a simple text.

 

Another problem is when a customer bought from my store, I receive an Extra Order Email not in my Inbox but in Trash of my Mailbox. That is strange!

 

Does anybody else have similar problems?

Thanks for your response. Irina.

Link to comment
Share on other sites

3. In the invoice that is being sent to the customer, it has the price listed 4 times, how do I get rid of the 2 I don't need? Here is what it looks like:

What are all these ( Price (ex)    Price (inc)  Total (ex)    Total (inc) )for anyway? :huh:

 

All I want is Products, Model# Price Each, Total.

 

So It looks like this:

Is that possible? :blink:

 

catalog/admin/invoice.php

=====

Find:

=====

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

 

=========

Replace with:

=========

 

<table border="0" width="99%" cellspacing="0" cellpadding="2">
                 <tr bgcolor="#CCCCCC">
                   <td colspan="2" class="dataTableHeadingContent"> <font color="#000000"><?php echo TABLE_HEADING_PRODUCTS; ?></font></td>
                   <td WIDTH="80" class="dataTableHeadingContent"><font color="#000000"><?php echo TABLE_HEADING_PRODUCTS_MODEL; ?></font></span></td>
                   <td WIDTH="80" align="right" class="dataTableHeadingContent"><font color="#000000"><?php echo TABLE_HEADING_UNIT_PRICE; ?></font></td>
                   <TD WIDTH="80" ALIGN="right" CLASS="dataTableHeadingContent"><font color="#000000"><?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">' . $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>

 

Hope this is of some help.

Link to comment
Share on other sites

MrRim,

 

Made the changes you suggested but it still looks the same as before :blink:

 

Any other ideas? :huh:

My Favorite Quote from a movie.

 

Question: How do you know women sooo well?

 

Answer: I think of a man, then take away reason and accountability.

Link to comment
Share on other sites

OK, this is weird.

 

I just deleted the catalog/admin/invoice.php file off my server and ran an order through.

 

The order email that was sent to the customer was the same as the one before I deleted the file.

 

Isn't that file supposed to format the invoice and tell it what to display?? :blink:

My Favorite Quote from a movie.

 

Question: How do you know women sooo well?

 

Answer: I think of a man, then take away reason and accountability.

Link to comment
Share on other sites

Actually, as I look closer, <?php echo $ei_image_dir; ?> will not work because in the comments section, the whole thing is already included in <?php unlike the invoice section above it.? It is using <?php echo to render the html

 

should it be something like

<img src="' . ei_image_dir . 'borders/file.gif'"

 

again, I'm not to good at this.

 

Tommy, did you ever figure this out for the comments section? I've fixed the rest of the sections in the Admin invoice by adding a new variable $ai_image_dir, and will do similar with the packing slip, but I can't figure out the correct syntax for this comments section that is included in <?php ?> tags...any luck?

 

Also, to Scooter/PopTheTop, a suggestion regarding handling of images. The way you changed it for the HTML invoice worked great - maybe in a future release you could do the same change for the Admin invoice and Packing Slip (and if you could call the variables $ai_image_dir and $ps_image_dir - that'd be great too :-" )? Great contrib, by the way!

Edited by KBC
Link to comment
Share on other sites

Tommy, did you ever figure this out for the comments section? I've fixed the rest of the sections in the Admin invoice by adding a new variable $ai_image_dir, and will do similar with the packing slip, but I can't figure out the correct syntax for this comments section that is included in <?php ?> tags...any luck?

 

Also, to Scooter/PopTheTop, a suggestion regarding handling of images. The way you changed it for the HTML invoice worked great - maybe in a future release you could do the same change for the Admin invoice and Packing Slip (and if you could call the variables $ai_image_dir and $ps_image_dir - that'd be great too  :-" )? Great contrib, by the way!

Well duh.... I was trying to complicate matters by using the variable I assigned to call the image, when regular HTML src syntax would do.

 

For anyone else trying to figure this out (I can only hope there is more than one of me :blush: !):

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

Link to comment
Share on other sites

OK, this is weird.

 

I just deleted the catalog/admin/invoice.php file off my server and ran an order through.

 

The order email that was sent to the customer was the same as the one before I deleted the file.

 

Isn't that file supposed to format the invoice and tell it what to display?? :blink:

 

Yes that's not the file sending the e-mail out catalog/admin/invoice.php is the file used when you PRINT a invoice from within the admin program "Customers" "Orders" and using the "Invoice button"

Edited by MrRim
Link to comment
Share on other sites

Hopefully someone can direct me here...I've searched all over and have seen this type of error posted. However, the person usually responds later with "nevermind I fixed it"....um, how? is never answered!

 

I installed this contribution and with some hacking around was able to get most of it working - and it looks great. However, when an email is sent to the customer this is what the content looks like:

Warning: main(includes/modules/email_invoice/templates/html_invoice.php): failed to open stream: No such file or directory in /home/kboulet/public_html/store/includes/modules/email_invoice/email_invoice.php on line 39

 

Warning: main(includes/modules/email_invoice/templates/html_invoice.php): failed to open stream: No such file or directory in /home/kboulet/public_html/store/includes/modules/email_invoice/email_invoice.php on line 39

 

Warning: main(): Failed opening 'includes/modules/email_invoice/templates/html_invoice.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/kboulet/public_html/store/includes/modules/email_invoice/email_invoice.php on line 39

 

I've tried to look around in the files mentioned as well as configure.php but I am beyond my capabilities here. Any help would be appreciated. (and since these questions are usually obvious to everyone but the person with the problem, I apologize now!)

Link to comment
Share on other sites

MrRim,

 

Made the changes you suggested but it still looks the same as before :blink:

 

Any other ideas? :huh:

 

Try installing the New E-mailed HTML Invoice Template...

 

Copy the below text into a text file and save it as box_invoice.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></title>
<style type="text/css">
.dataTableHeadingRow { background-color: #C9C9C9; }
.dataTableHeadingContent { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #ffffff; font-weight: bold; }
.dataTableRow { background-color: #F0F1F1; }
.dataTableRowSelected { background-color: #DEE4E8; }
.dataTableRowOver { background-color: #FFFFFF; cursor: pointer; cursor: hand; }
.dataTableContent { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #000000;}
.dataTableSmallText {font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 10px;} 
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>

<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; ?> </strong></font><FONT FACE="Verdana" SIZE="2" COLOR="#006699"><strong><?php echo date("y"); ?></strong></font><FONT FACE="Arial" SIZE="2" COLOR="#006699"><strong><?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><?php echo tep_draw_separator('pixel_trans.gif', '8', '8'); ?></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><?php echo tep_draw_separator('pixel_trans.gif', '8', '8'); ?></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><?php echo tep_draw_separator('pixel_trans.gif', '8', '8'); ?></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><?php echo tep_draw_separator('pixel_trans.gif', '8', '8'); ?></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><?php echo tep_draw_separator('pixel_trans.gif', '8', '8'); ?></td>
? ? ? ? ? ? ? ? ? ? ?</tr>
? ? ? ? ? ? ? ? ? ? ?<tr>
? ? ? ? ? ? ? ? ? ? ? ?<td> </td>
? ? ? ? ? ? ? ? ? ? ?</tr>
? ? ? ? ? ? ? ? ? ? ?<tr>
? ? ? ? ? ? ? ? ? ? ? ?<td> </td>
? ? ? ? ? ? ? ? ? ? ?</tr>
? ? ? ? ? ? ? ? ? ? ?<tr>
? ? ? ? ? ? ? ? ? ? ? ?<td><?php echo tep_draw_separator('pixel_trans.gif', '8', '8'); ?></td>
? ? ? ? ? ? ? ? ? ? ?</tr>
? ? ? ? </table>
<!-- END Shipping Info -->
?</td>
</tr>
</table>

<!-- START Product Info -->
<table border="0" width="100%" cellspacing="0" cellpadding="2">
? ? ? ? ? ? ? ? ?<tr bgcolor="#CCCCCC">
? ? ? ? ? ? ? ? ? ?<td colspan="2" class="dataTableHeadingContent"> <font color="#000000"><?php echo TABLE_HEADING_PRODUCTS; ?></font></td>
? ? ? ? ? ? ? ? ? ?<td WIDTH="80" bgcolor="#CCCCCC" class="dataTableHeadingContent"><font color="#000000"><?php echo TABLE_HEADING_PRODUCTS_MODEL; ?></font></span></td>
? ? ? ? ? ? ? ? ? ?<td WIDTH="80" align="right" bgcolor="#CCCCCC" class="dataTableHeadingContent"><font color="#000000"><?php echo TABLE_HEADING_UNIT_PRICE; ?></font></td>
? ? ? ? ? ? ? ? ? ?<TD WIDTH="80" ALIGN="right" bgcolor="#CCCCCC" CLASS="dataTableHeadingContent"><font color="#000000"><?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">' . $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="dataTableSmallText">' . $order->totals[$i]['title'] . '</td>' . "\n" .
? ? ? ? ' ? ? ? ? ?<td align="right" class="dataTableSmallText">' . $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>
? ?<td>
? ? ?<div align="center" class="dataTableSmallText">
? ? ? ?<p>Copyright ? 20<?php echo date("y"); ?> <?php echo STORE_NAME; ?>, 
?

? All Rights Reserved<br>
? Company No. 1234456
? - Registered in England <br>
? ? ? ? ? ?Registered Office: Your Address Here </p>
? ? ? ?</div></td>
?</tr>
</table>
<!-- END Footer -->

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

 

This is my hacked version had problems with picking up the css file so included it in code.

Edited by MrRim
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.

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