Jump to content
PopTheTop

Fancier Invoice & Packingslip v1.0

Recommended Posts

I use this contribution and I have this problem when I finnish an order, and I can`t find where to change this "speelmans.com/webshop/" to show proper way.I think this cause the problem but maybe is something else please if you can.

The error is:

Warning: require(C:/xampp/htdocs/speelmans.com/webshop/admin/includes/languages/bulgarian/invoice.php) [function.require]: failed to open stream: No such file or directory in D:\xampp\htdocs\riza_bg_develop\includes\modules\email_invoice\email_invoice.php on line 30

 

Fatal error: require() [function.require]: Failed opening required 'C:/xampp/htdocs/speelmans.com/webshop/admin/includes/languages/bulgarian/invoice.php' (include_path='.;D:\xampp\php\PEAR') in D:\xampp\htdocs\riza_bg_develop\includes\modules\email_invoice\email_invoice.php on line 30

 

If you have not already found it...it is in the /includes/local/configure.php file that you uploaded with the contrib. Follow step number 6 in instructions.

MW

Share this post


Link to post
Share on other sites

Installed fancier I&P and have worked everything out except can't figure this out; when I "print invoice" from account_history_info.php I get this error message

 

404 Not Found

Not Found

The requested URL /store/FILENAME_PRINT_MY_INVOICE was not found on this server.

 

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

 

Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8l DAV/2 mod_auth_passthrough/2.1 FrontPage/5.0.2.2635 Server at firststopsecurity.com Port 443

 

can anyone help?

Share this post


Link to post
Share on other sites

Installed fancier I&P and have worked everything out except can't figure this out; when I "print invoice" from account_history_info.php I get this error message

 

404 Not Found

Not Found

The requested URL /store/FILENAME_PRINT_MY_INVOICE was not found on this server.

 

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

 

Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8l DAV/2 mod_auth_passthrough/2.1 FrontPage/5.0.2.2635 Server at firststopsecurity.com Port 443

 

can anyone help?

 

Found answer in earlier post...sorry just learning how to get around in here. thanks to post #1386

 

added this in catalog/includes/filenames.php

 

define('FILENAME_PRINT_MY_INVOICE', 'print_my_invoice.php');

 

Now will work on getting rid of background color (all blue, and from my site background color I am assuming), so customer invoice will print with white background.

Share this post


Link to post
Share on other sites

Working with PayPal!

 

Hi there

 

For those who are interested in having an HTML email sent to the customer after a Paypal payment has been made, here is what you need to

 

1) alteration of the paypal IPN file:

 

in includes/modules/payment/paypal/catalog/classes/Osc/Order.class.php

 

replace

 

$email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" .
                   EMAIL_SEPARATOR . "\n";
   $email_order .= $this->paymentTitle . "\n\n";

   tep_mail($order->customer['name'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

   // send emails to other people
   if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
     tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
   }

 }

 function setOrderPaymentID($payment_id,$oID='') {
     $order_id = !empty($oID) ? $oID : $this->orderID;
     tep_db_query("update " . TABLE_ORDERS . " set payment_id = '" . (int)$payment_id . "' where orders_id = '" . (int)$order_id . "'");
 }

 

by

 

$email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" .
                   EMAIL_SEPARATOR . "\n";
   $email_order .= $this->paymentTitle . "\n\n";

if (EMAIL_INVOICE == 'false') {
   tep_mail($order->customer['name'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
// send emails to other people
   if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
 tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
   }
}

 }

 function setOrderPaymentID($payment_id,$oID='') {
     $order_id = !empty($oID) ? $oID : $this->orderID;
     tep_db_query("update " . TABLE_ORDERS . " set payment_id = '" . (int)$payment_id . "' where orders_id = '" . (int)$order_id . "'");
 }

 

 

2) alteration of catalog/checkout_success.php:

 

 

a) at the beginin, just below:

  require('includes/application_top.php');

 

add:

 

require('includes/classes/order.php');
require('includes/languages/english/checkout_process.php');

 

 

and where you modified the code for IPN

 

 

replace

/begin PayPal_Shopping_Cart_IPN
    tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string));
  } else if ((isset($HTTP_GET_VARS['action']) && $HTTP_GET_VARS['action'] == 'success')) {
    PayPal_osC::reset_checkout_cart_session();
  }
//end PayPal_Shopping_Cart_IPN

 

by:

 

/begin PayPal_Shopping_Cart_IPN
    tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string));
  } else if ((isset($HTTP_GET_VARS['action']) && $HTTP_GET_VARS['action'] == 'success')) {
if (EMAIL_INVOICE == 'true') {
require(DIR_WS_MODULES . EMAIL_INVOICE_DIR . FILENAME_EMAIL_INVOICE);
}
    PayPal_osC::reset_checkout_cart_session();
  }
//end PayPal_Shopping_Cart_IPN

 

 

That's it !

Edited by pixclinic

Share this post


Link to post
Share on other sites

Hello!

 

I get this error on check out process - checkout_process.php:

 

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

Fatal error: require() [function.require]: Failed opening required '/home/YOUR_DOMAIN/public_html/catalog/admin/includes/languages/english/invoice.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/shop/includes/modules/email_invoice/email_invoice.php on line 30

 

but i was looking at configure.php

 

for this path -

/home/YOUR_DOMAIN/public_html/catalog/admin/

but i have written the path:

define('DIR_FS_ADMIN', '/var/www/shop/admin/'); // absolute path required

 

i can`t get it run!


1) Backup before you make changes on osC.

2) Backup between addon installs on osC.

 

p.s. Usually you can meet me in osC chat for free help and advice ;)

Share this post


Link to post
Share on other sites

Never mind!

 

 

Got it run, my bad :)


1) Backup before you make changes on osC.

2) Backup between addon installs on osC.

 

p.s. Usually you can meet me in osC chat for free help and advice ;)

Share this post


Link to post
Share on other sites

hi how change the invoice to get a products images too ?

 

 

Do u really need a image of product in your invoice?


1) Backup before you make changes on osC.

2) Backup between addon installs on osC.

 

p.s. Usually you can meet me in osC chat for free help and advice ;)

Share this post


Link to post
Share on other sites

Installed Fancier_invoice_6.2_Fixed_2009-15-09

 

Phone number and email show up. Ship to bill to is missing however it is store in the db.

 

Also is this how it is supposed to look? What is missing? Thanks!

 

Untitled.jpg

Share this post


Link to post
Share on other sites

Installed Fancier_invoice_6.2_Fixed_2009-15-09

 

Phone number and email show up. Ship to bill to is missing however it is store in the db.

 

Also is this how it is supposed to look? What is missing? Thanks!

 

 

Greetings!

 

Is this invoice what is send to customer or this is printed at admin panel or customer prints it at users account invoice?


1) Backup before you make changes on osC.

2) Backup between addon installs on osC.

 

p.s. Usually you can meet me in osC chat for free help and advice ;)

Share this post


Link to post
Share on other sites

Shows on the admin panel. How to remove tax and sku?

Thanks

 

 

Greetings!

 

Is this invoice what is send to customer or this is printed at admin panel or customer prints it at users account invoice?

Share this post


Link to post
Share on other sites

Shows on the admin panel. How to remove tax and sku?

Thanks

 

OPEN THIS FILE: cataloge/admin/invoice.php

 

ad make changes

 

for shipment:

after this:

 

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

add this:

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

 

for invoice adress:

 

aftres this:

 

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

 

add this:

 

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

 

and this (for phone and e-mail)

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

 

and for tax and sku

 

comment out this lines

 

find this:

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

 

change to this:

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

 

and find this:

 

this is for sku or model

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

 

and change to this:

 

<td class="dataTableContent" valign="top"></td>' . "\n";

 

and find this:

 

this is for tax

 

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

 

 

change to this:

 

<td class="dataTableContent" align="right" valign="top"></td>' . "\n" .

 

 

ok this should to this!

Edited by imop

1) Backup before you make changes on osC.

2) Backup between addon installs on osC.

 

p.s. Usually you can meet me in osC chat for free help and advice ;)

Share this post


Link to post
Share on other sites

Hi all.

i have a question about this great contribution.

I have installed the contribution since yesterday.

When i receive the order email i have this erro in the header

INVOICE_ORDER_CONFIRMATION #

The invoice works just this error in the header of the email.

When i check the invoice in the admin i dont have this error.

Someone know whats wrong?

 

Thank you very much

 

Jens

Share this post


Link to post
Share on other sites

Hope someone can help

I just installed the contribution but even if I can set all the options in my admin panel, I keep getting the "traditional" email invoice of OSCommerce...

where do I start to troubleshot it to understand why?

admin.jpg

here is a capture of my admin panel...

I prevously installed email_invoice 1.1 contribution too...dont know if thats what it is causing troubles...

Share this post


Link to post
Share on other sites

Hi

 

Has anyone figured out how to get the shipping cost and order total to show in the emailed html_invoice?

 

It shows up on the admin invoice but not the invoice emailed to the customer.

Share this post


Link to post
Share on other sites

Hi,

 

I installed this ages ago and had the same problem - but I cant remember how I solved it !

 

The only thing I can suggest trying that is different on my site to the install instructions is:

 

add:

define('FILENAME_PRINT_MY_INVOICE', 'print_my_invoice.php');

after

  define('FILENAME_ORDERS_PRINTABLE', 'print_my_invoice.php');
 define('FILENAME_ORDERS_PRINTABLE_INFO', 'print_my_invoice.php');

 

in catalog/includes/filenames.php

 

Backup first as always.

 

Hope this helps


Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Share this post


Link to post
Share on other sites

Also do your config settings look like this :

 

Send HTML or Text Invoices to Customers true

Default E-Mailed HTML Invoice Template html_invoice.php

E-Mail Transport Method sendmail

E-Mail Linefeeds LF

Use MIME HTML When Sending Emails true

Verify E-Mail Addresses Through DNS false

Send E-Mails true


Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Share this post


Link to post
Share on other sites

Thanks for your reply.

 

My configure settings are set the same as what you posted.

 

I deliberately didn't install the print invoice function on the customer side as I didn't need it, so I doubt the filename edit will make any difference. However I did add it but no change.

 

Is the html_invoice.php file in any way tied to the print invoice function in the customers account? Could it be that because I haven't added the 'print my invoice button' that the shipping is not showing up in the email. I guess it is very unlikely, but does anyone know if the two are linked in any way?

Share this post


Link to post
Share on other sites

yellow!

 

Did your client receives an email with HTML?

 

If the answer is yes, u are almost there!

 

As i understood the received e-mail / invoice dose not show shipping costs?

 

Can u copy/paste the code of your - cataloge/includes/modules/email_invoice/templates/your_template.php

 

 

So i can take a look!


1) Backup before you make changes on osC.

2) Backup between addon installs on osC.

 

p.s. Usually you can meet me in osC chat for free help and advice ;)

Share this post


Link to post
Share on other sites

HiHas anyone figured out how to get the shipping cost and order total to show in the emailed html_invoice?It shows up on the admin invoice but not the invoice emailed to the customer.

Hi Boriss

 

Thanks for your help. You are correct.

 

Here is the contents of that file:

 

<?php
/*
 $Id: html_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
*/

 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);
     }
   }
 }
 $order2 = new order($oID);
?>
<html>
<head>
<title><?php echo STORE_NAME; ?>Order<?php echo INVOICE_TEXT_NUMBER_SIGN; ?><?php echo tep_trans_id($order2->info['date_purchased'], $oID); ?></title>
<style type="text/css">
BODY {
background: #ffffff;
color: #000000;
margin: 0px;
}
A {
color: #000000;
text-decoration: none;
}
A:hover {
color: #AABBDD;
text-decoration: underline;
}
A.headerNavigation {
color: #FFFFFF;
}
A.headerNavigation:hover {
color: #ffffff;
}
TD.main, P.main {
font-family: Verdana, Arial, sans-serif;
font-size: 11px;
line-height: 1.5;
}
TD.smallText, SPAN.smallText, P.smallText {
font-family: Verdana, Arial, sans-serif;
font-size: 10px;
}
.dataTableContent {
font-family: Verdana, Arial, sans-serif;
font-size: 10px;
color: #000000;
}
.dataTableHeadingRow {
background-color: #C9C9C9;
}
.dataTableHeadingContent {
font-family: Verdana, Arial, sans-serif;
font-size: 10px;
color: #ffffff;
font-weight: bold;
}
.dataTableRow {
background-color: #F0F1F1;
}
</style>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<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="Verdana" SIZE="2" COLOR="#006699"><strong> Order <?php echo INVOICE_TEXT_NUMBER_SIGN; ?><?php echo tep_trans_id($order2->info['date_purchased'], $oID); ?><BR>
   <?php echo $date; ?></strong></font><br>
   <br>
   <span class="pageHeadingSM"><FONT FACE="Verdana" SIZE="1" COLOR="#006699"><strong><?php echo nl2br(STORE_NAME_ADDRESS); ?></strong></font></span></TD>
</tr>
<tr>
 <td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="0">
     <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" NOWRAP><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"><img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="100" height="5" alt=""></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="<?php echo $ei_image_dir; ?>borders/maingrey_01.gif" width="11" height="16" alt=""></td>
                   <td background="<?php echo $ei_image_dir; ?>borders/maingrey_02.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_02.gif" width="24" height="16" alt="" ></td>
                   <td width="19"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_03.gif" width="19" height="16" alt=""></td>
                 </tr>
                 <tr>
                   <td background="<?php echo $ei_image_dir; ?>borders/maingrey_04.gif"><img src="<?php echo $ei_image_dir; ?>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_SHIP_TO; ?></b></td>
                       </tr>
                       <tr>
                         <td>    <img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="5" alt=""></td>
                       </tr>
                       <tr>
                         <td NOWRAP>    <?php echo tep_address_format($order2->delivery['format_id'], $order2->delivery, 1, '', '<br>    '); ?></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></td>
                   <td background="<?php echo $ei_image_dir; ?>borders/maingrey_06.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_06.gif" width="19" height="21" alt=""></td>
                 </tr>
                 <tr>
                   <td><img src="<?php echo $ei_image_dir; ?>borders/maingrey_07.gif" width="11" height="18" alt=""></td>
                   <td background="<?php echo $ei_image_dir; ?>borders/maingrey_08.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_08.gif" width="24" height="18" alt=""></td>
                   <td><img src="<?php echo $ei_image_dir; ?>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="<?php echo $ei_image_dir; ?>borders/mainwhite_01.gif" width="11" height="16" alt=""></td>
                   <td background="<?php echo $ei_image_dir; ?>borders/mainwhite_02.gif"><img src="<?php echo $ei_image_dir; ?>borders/mainwhite_02.gif" width="24" height="16" alt=""></td>
                   <td width="19"><img src="<?php echo $ei_image_dir; ?>borders/mainwhite_03.gif" width="19" height="16" alt=""></td>
                 </tr>
                 <tr>
                   <td background="<?php echo $ei_image_dir; ?>borders/mainwhite_04.gif"><img src="<?php echo $ei_image_dir; ?>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_SOLD_TO; ?></b></td>
                       </tr>
                       <tr>
                         <td>    <img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="5" alt=""></td>
                       </tr>
                       <tr>
                         <td NOWRAP>    <?php echo tep_address_format($order2->customer['format_id'], $order2->customer, 1, '', '<br>    '); ?></td>
                       </tr>
                       <tr>
                         <td>    <img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="10" alt=""></td>
                       </tr>
                       <tr>
                         <td NOWRAP>    <?php echo $order2->customer['telephone']; ?></td>
                       </tr>
                       <tr>
                         <td NOWRAP>    <?php echo $order2->customer['email_address']; ?></td>
                       </tr>
                       <tr>
                         <td><img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="7" alt=""></td>
                       </tr>
                     </table></td>
                   <td background="<?php echo $ei_image_dir; ?>borders/mainwhite_06.gif"><img src="<?php echo $ei_image_dir; ?>borders/mainwhite_06.gif" width="19" height="21" alt=""></td>
                 </tr>
                 <tr>
                   <td><img src="<?php echo $ei_image_dir; ?>borders/mainwhite_07.gif" width="11" height="18" alt=""></td>
                   <td background="<?php echo $ei_image_dir; ?>borders/mainwhite_08.gif"><img src="<?php echo $ei_image_dir; ?>borders/mainwhite_08.gif" width="24" height="18" alt=""></td>
                   <td><img src="<?php echo $ei_image_dir; ?>borders/mainwhite_09.gif" width="19" height="18" alt=""></td>
                 </tr>
               </table></td>
           </tr>
         </table></TD>
     </tr>
     <tr>
       <TD COLSPAN="2"><img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="100" height="15" alt=""></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="<?php echo $ei_image_dir; ?>borders/maingrey_01.gif" width="11" height="16" alt=""></td>
                   <td background="<?php echo $ei_image_dir; ?>borders/maingrey_02.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_02.gif" width="24" height="16" alt="" ></td>
                   <td width="19"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_03.gif" width="19" height="16" alt=""></td>
                 </tr>
                 <tr>
                   <td background="<?php echo $ei_image_dir; ?>borders/maingrey_04.gif"><img src="<?php echo $ei_image_dir; ?>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="50%" NOWRAP> <b><?php echo INVOICE_TEXT_ORDER; ?> <?php echo INVOICE_TEXT_NUMBER_SIGN; ?><?php echo INVOICE_TEXT_COLON; ?></b> <?php echo tep_trans_id($order2->info['date_purchased'], $oID); ?></td>
                         <?php
 if (tep_not_null($order2->info['cc_number'])) {
   $this->cc_card_number_less_middle_digits = substr($order2->info['cc_number'], 0, 4) . str_repeat('x', (strlen($order2->info['cc_number']) - 8)) . substr($order2->info['cc_number'], -4);
?>
                         <td width="50%" NOWRAP> <b><?php echo ENTRY_PAYMENT_METHOD; ?></b> <?php echo $order2->info['payment_method']; ?> (<?php echo $order2->info['cc_type']; ?>)<br>
                           <img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="100%" height="6" alt=""><br>
                            <b><?php echo ENTRY_PAYMENT_CC_NUMBER; ?></b> <?php echo $this->cc_card_number_less_middle_digits; ?></td>
                         <?php
 } else {
?>
                         <td width="50%" NOWRAP> <b><?php echo ENTRY_PAYMENT_METHOD; ?></b> <?php echo $order2->info['payment_method']; ?></td>
                         <?php
 }
?>
                       </tr>
                       <tr>
                         <td><img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="7" alt=""></td>
                       </tr>
                     </table></td>
                   <td background="<?php echo $ei_image_dir; ?>borders/maingrey_06.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_06.gif" width="19" height="21" alt=""></td>
                 </tr>
                 <tr>
                   <td><img src="<?php echo $ei_image_dir; ?>borders/maingrey_07.gif" width="11" height="18" alt=""></td>
                   <td background="<?php echo $ei_image_dir; ?>borders/maingrey_08.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_08.gif" width="24" height="18" alt=""></td>
                   <td><img src="<?php echo $ei_image_dir; ?>borders/maingrey_09.gif" width="19" height="18" alt=""></td>
                 </tr>
               </table></td>
           </tr>
         </table></td>
     </tr>
     <tr>
       <TD COLSPAN="2"><img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="15" alt=""></td>
     </tr>
     <tr>
       <TD COLSPAN="2"><img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="10" alt=""></td>
     </tr>
     <tr>
       <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>
     </tr>
   </table>
   <?php
$order2s_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($order2s_status_history_query)) {
	  $has_comments = false;
?>
   <br>
   <br>
   <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="<?php echo $ei_image_dir; ?>borders/maingrey_01.gif" width="11" height="16" alt=""></td>
             <td background="<?php echo $ei_image_dir; ?>borders/maingrey_02.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_02.gif" width="24" height="16" alt="" ></td>
             <td width="19"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_03.gif" width="19" height="16" alt=""></td>
           </tr>
           <tr>
             <td background="<?php echo $ei_image_dir; ?>borders/maingrey_04.gif"><img src="<?php echo $ei_image_dir; ?>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="95%" NOWRAP> <b><?php echo TABLE_HEADING_COMMENTS; ?></b><br>
                     <br></td>
                 </tr>
                 <?php
    while ($order2s_comments = tep_db_fetch_array($order2s_status_history_query)) {
    	 if (tep_not_null($order2s_comments['comments'])) {
      $has_comments = true; // Not Null = Has Comments
      if (tep_not_null($order2s_comments['comments'])) {
          $sInfo = new objectInfo($order2s_comments);
?>
                 <tr>
                   <td align="center" width="95%"><table width="95%" border="0" cellpadding="0" cellspacing="0">
                       <tr>
                         <td width="95%" class="smallText"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="main">
                             <tr>
                               <td width="150" align="left" valign="top" class="smallText"><strong><u><?php echo TABLE_HEADING_DATE_ADDED; ?></u></strong></td>
                               <td align="left" valign="top" class="smallText"><strong><u><?php echo TABLE_HEADING_COMMENT_LEFT; ?></u></strong></td>
                             </tr>
                           </table></td>
                       </tr>
                     </table></td>
                 </tr>
                 <tr>
                   <td align="center" width="95%"><table width="95%" border="0" cellpadding="0" cellspacing="0">
                       <tr>
                         <td width="95%" class="smallText"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="main">
                             <tr>
                               <td width="150" align="left" valign="top" class="smallText"><?php echo tep_date_short($sInfo->date_added); ?></td>
                               <td align="left" valign="top" class="smallText"><?php echo nl2br(tep_db_output($order2s_comments['comments'])); ?><br>
                                 <br></td>
                             </tr>
                           </table></td>
                       </tr>
                     </table></td>
                 </tr>
                 <?php
      }
      }
    }
    if ($has_comments == false) {
?>
                 <tr>
                   <td align="center" width="95%"><table width="95%" border="0" cellpadding="0" cellspacing="0">
                       <tr>
                         <td width="95%" class="smallText"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="main">
                             <tr>
                               <td width="100%" align="left" valign="top" class="smallText"><?php echo INVOICE_TEXT_NO_COMMENT; ?></td>
                             </tr>
                           </table></td>
                       </tr>
                     </table></td>
                 </tr>
                 <?php
    }
?>
                 <tr>
                   <td><img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="7" alt=""></td>
                 </tr>
               </table></td>
             <td background="<?php echo $ei_image_dir; ?>borders/maingrey_06.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_06.gif" width="19" height="21" alt=""></td>
           </tr>
           <tr>
             <td><img src="<?php echo $ei_image_dir; ?>borders/maingrey_07.gif" width="11" height="18" alt=""></td>
             <td background="<?php echo $ei_image_dir; ?>borders/maingrey_08.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_08.gif" width="24" height="18" alt=""></td>
             <td><img src="<?php echo $ei_image_dir; ?>borders/maingrey_09.gif" width="19" height="18" alt=""></td>
           </tr>
         </table></td>
     </tr>
   </table>
   <?php
}
?>
   <br>
   <CENTER>
     <span class="smallText"><FONT FACE="Verdana" COLOR="#006699"><strong><?php echo INVOICE_TEXT_THANK_YOU; ?><BR>
     <?php echo STORE_NAME; ?><BR>
     <?php echo STORE_URL_ADDRESS; ?></strong></font></span>
   </CENTER>
</body>
</html>

Edited by Benjjj6

Share this post


Link to post
Share on other sites

The code seems to be ok!

 

What version of OsC do u have installed?


1) Backup before you make changes on osC.

2) Backup between addon installs on osC.

 

p.s. Usually you can meet me in osC chat for free help and advice ;)

Share this post


Link to post
Share on other sites

Hi

 

I'm running V2.2 RC2 and using contribution version 6.2 from 15 Sept 2009

 

Actually i don`t have any clue on that...

 

If u made the installation correct it must work!


1) Backup before you make changes on osC.

2) Backup between addon installs on osC.

 

p.s. Usually you can meet me in osC chat for free help and advice ;)

Share this post


Link to post
Share on other sites

Actually i don`t have any clue on that...

 

If u made the installation correct it must work!

 

Thanks for your help anyway. In the code I posted I don't see anything about shipping, is that normal? What piece of code should display the shipping cost?

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

×