Jump to content
Latest News: (loading..)
Mort-lemur

Fancier Invoice & Packing Slip for 2.3.1

Recommended Posts

Version compatible with 2.3.1 uploaded here : http://addons.oscommerce.com/info/8362

 

Coding is rough and ready, but it seems to work.

 

Thanks


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

Thank you Heather for great contribution.

I get one error, however - at the end of checkout I get this message:

Fatal error: require() [function.require]: Failed opening required '/home/username/public_html/catalog/admin-name/includes/languages/slovensko/invoice.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in/home/astronum/public_html/shop.astronumero.org/includes/modules/email_invoice/email_invoice.php on line 30

 

But if I reverse your changes in file "checkout_process.php", then the error disappears.

So maybe there is something wrong with the code in your help file:

 

 

6) Edit catalog/checkout_process.php

 

Find:

// lets start with the email confirmation

 

Add After:

// START HTML Invoice

if (EMAIL_INVOICE == 'true') {

require(DIR_WS_MODULES . EMAIL_INVOICE_DIR . FILENAME_EMAIL_INVOICE);

} else {

// END HTML Invoice

 

Find:

// load the after_process function from the payment modules

$payment_modules->after_process();

 

Add Before:

// START HTML Invoice

}

// END HTML Invoice

 

Best wishes,

Andrej Kikelj

from Slovenia

Share this post


Link to post
Share on other sites

That error is caused by the system looking for a file called invoice.php in catalog/admin-name/includes/languages/slovensko/

 

the contribution I posted was for english only - If you have other languages ensure the language file changes are carried out in any language files you use.

 

Thanks

Edited by Mort-lemur

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

I found the problem. I wrote wrong absolute path name of my admin directory in catalog/includes/filenames.php

Thanks!

Share this post


Link to post
Share on other sites

I have this installed and it seems to be running fine, but I just noticed in the emailed invoice it shows the per item price, but it doesn't display the sales tax, shipping or order total. I just ran through the instructions again to see if I missed something but I didn't see any reference to any options related to this.

 

Shouldn't it be displaying those things?

Share this post


Link to post
Share on other sites

@@ggrant3

 

Make sure you have set the order total modules in admin/modules to display.


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

@@Mort-lemur

 

I just checked and I have Shipping, Subtotal, Tax, and Total all set to display. Everything displays fine on the invoice itself, just not in the email sent to the customer.

Share this post


Link to post
Share on other sites

I have two minor problems:

First, when an order is placed, the customer does not get an email-invoice. I guess I have done something wrong with this code, but I do have a payment-module that takes care of the payment, and that one does send out an email saying the order has been payed, so I thought it could be that one interfering.

 

The other, very strange problem I have, is that my admin invoice is all written in times new roman, and I can't seem to change this or the text size, even though there is no times new roman in the stylesheet at all..

Share this post


Link to post
Share on other sites

Your first question. I do not think that a customer will get a n invoice emailed to them automatically when an order is placed. I think they have to return to their account, view the order, then they can print the invoice. They should be getting an order confirmation email though.

 

Your second question I cant help with.


REMEMBER BACKUP, BACKUP AND BACKUP

Before installing the official version of oscommerce first look at a responsive version here

It's very easy to over complicate what are simple things in life

Share this post


Link to post
Share on other sites

Well, I interpret this as the customer and company would get automatic, fancier confirmations: (taken from the install file)

 

"A new facier invoice is e-mailed to both the Admin and the customer in a real nice HTML format (you must have Send MIME HTML E-mails enabled). Admin can turn this on or off through Admin / Configuration / E-mail Options.

 

You may have multiple e-mail HTML invoice templates. Just save your template file in the templates folder and choose which template you want to use through Admin / Configuration / E-mail Options. Some invoice templates are included, the osC stock look and some fancier HTML invoices. This works with customers who have HTML e-mail receiving capabilities AND those who do not."

Share this post


Link to post
Share on other sites

Finally got around to trying this add on on my test store. Carried out a few mods to a stock catalog/account_history.php to allow the use of 2,3 style buttons.

 

Find

require(DIR_WS_INCLUDES . 'template_top.php');
?>

 

add after

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

 

The find

 <div class="buttonSet">
   <?php echo tep_draw_button(IMAGE_BUTTON_BACK, 'triangle-1-w', tep_href_link(FILENAME_ACCOUNT_HISTORY, tep_get_all_get_params(array('order_id')), 'SSL')); ?>
 </div>

 

and replace with

 <div class="buttonSet">
 <div style=float:left><?php echo tep_draw_button(IMAGE_BUTTON_BACK, 'triangle-1-w', tep_href_link(FILENAME_ACCOUNT_HISTORY, tep_get_all_get_params(array('order_id')), 'SSL')); ?></div>
 <div style=float:right><a href="javascript:popupPrintReceipt('<?php echo tep_href_link(FILENAME_PRINT_MY_INVOICE, tep_get_all_get_params(array('order_id')) . 'order_id=' . $HTTP_GET_VARS['order_id'], 'SSL'); ?>')"><?php echo tep_draw_button(IMAGE_BUTTON_PRINT_ORDER) . '</a>'; ?></div>
</div>

 

That should now all be working.

 

Now to make the invoices using css


REMEMBER BACKUP, BACKUP AND BACKUP

Before installing the official version of oscommerce first look at a responsive version here

It's very easy to over complicate what are simple things in life

Share this post


Link to post
Share on other sites

I have two minor problems:

First, when an order is placed, the customer does not get an email-invoice. I guess I have done something wrong with this code, but I do have a payment-module that takes care of the payment, and that one does send out an email saying the order has been payed, so I thought it could be that one interfering.

 

The other, very strange problem I have, is that my admin invoice is all written in times new roman, and I can't seem to change this or the text size, even though there is no times new roman in the stylesheet at all..

 

@@Mort-lemur or anybody else have a clue as to why this is happening? I am most keen on solving the font issue, since this makes the invoice unnecessarily big, and comments might not fit the first page (and I find it annoying to have to print a second page with just a small comment :P)

Share this post


Link to post
Share on other sites

How does the template system work? I would like to have order status on the invoice seen by the admin.

I would also like to change some things around

Share this post


Link to post
Share on other sites

My store logo for the "Print My Invoice" from account history screen comes up as "Store_Logo.jpg" where do I change this?

Share this post


Link to post
Share on other sites

@@Mort-lemur

Is there a way that the order status can be printed on invoice if status is "Balance Unpaid" or some other specific status?

Soon as I learn some more coding, I am going to try my hand at making this specific selection an option within the admin configuration panel.

But a little help now would be apprreciated just to have a fully functioning store

Share this post


Link to post
Share on other sites

@@Mort-lemur

 

I just checked and I have Shipping, Subtotal, Tax, and Total all set to display. Everything displays fine on the invoice itself, just not in the email sent to the customer.

 

this is true for me aswell... can't seem to find anything that would exclude shipping and the other info that displays under the "product" row (except for messages, that one shows)

Share this post


Link to post
Share on other sites

Store_Logo.jpg is changed in the language file for all who wish to know.

 

@@kymation

@@burt

I specifically asked for your help because I know you guys are really good, but this question is for everyone.

I'm really trying to get the Current Order Status to display, even if there is no other status changes. This helps when we have an unpaid balance, and customer pickup for shipping.

Right now I have the following code, but there is no status being displayed. How can I do It. I have added this right after line 265. (You can see code by large gaps)

for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
echo '	 <tr class="dataTableRow_INVOICE">' . "\n" .
'	 <td class="dataTableContent_INVOICE" valign="top" align="left">' . $order->products[$i]['qty'] . ' x</td>' . "\n" .
'	 <td class="dataTableContent_INVOICE" valign="top" align="left">' . $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_INVOICE" valign="top">' . $order->products[$i]['model'] . '</td>' . "\n";
 echo '		 <td WIDTH="80" class="dataTableContent_INVOICE" 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_INVOICE" 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_INVOIVE">' . $order->totals[$i]['title'] . '</td>' . "\n" .
 '		 <td align="right" class="smallText_INVOIVE">' . $order->totals[$i]['text'] . '</td>' . "\n" .
 '		 </tr>' . "\n";
}
?>
		 </table></td>
	 </tr>



<!-- ORDER STATUS DISPLAY CODE STARTS HERE -->
<br>
<b>
<?php
<td align="right" class="smallText_INVOIVE">
echo TABLE_HEADING_ORDR_STATUS;
?></br>
<?php
$statuses_query = tep_db_query("select os.orders_status_name, osh.date_added, osh.comments from " . TABLE_ORDERS_STATUS . " os, " . TABLE_ORDERS_STATUS_HISTORY . " osh where osh.orders_id = '" . (int)$HTTP_GET_VARS['order_id'] . "' and osh.orders_status_id = os.orders_status_id and os.language_id = '" . (int)$languages_id . "' order by osh.date_added");
echo ' <td align="right" class="smallText_INVOIVE">' . $statuses['orders_status_name'] . '</td>' . "\n";
?>
<!-- ORDER STATUS DISPLAY CODE ENDS HERE -->



 </table></td>
</tr>
<!-- ORDER COMMENTS CODE STARTS HERE //-->
<tr>
 <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '18'); ?></td>
</tr>
<tr>
 <TD><table width="100%" border="0" cellpadding="0" cellspacing="0">
	 <tr>
	 <td width="9"></td>
	 <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
		 <tr>
			 <td width="11"><img src="images/borders/mainwhite_01.gif" width="11" height="16" alt=""></td>
			 <td background="images/borders/mainwhite_02.gif"><img src="images/borders/mainwhite_02.gif" width="100%" height="16" alt="" ></td>
			 <td width="19"><img src="images/borders/mainwhite_03.gif" width="19" height="16" alt=""></td>
		 </tr>
		 <tr>
			 <td background="images/borders/mainwhite_04.gif"><img src="images/borders/mainwhite_04.gif" width="11" height="100%" alt=""></td>
			 <td align="center" style="background-color: white;"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="main">
				 <tr>
				 <td colspan="3" align="left" valign="top" class="order_infobox_heading"><b><?php echo TEXT_INFO_ORDERS_STATUS_NAME; ?></b></td>
				 </tr>
				 <?php
// $statuses_query = tep_db_query("select os.orders_status_name, osh.date_added, osh.comments from " . TABLE_ORDERS_STATUS . " os, " . TABLE_ORDERS_STATUS_HISTORY . " osh where osh.orders_id = '" . (int)$HTTP_GET_VARS['order_id'] . "' and osh.orders_status_id = os.orders_status_id and os.language_id = '" . (int)$languages_id . "' order by osh.date_added");
while ($statuses = tep_db_fetch_array($statuses_query)) {
 echo '			 <tr>' . "\n";
 echo '					 <td valign="top" class="product_infobox_data" width="114"><br>    <strong>' . tep_date_short($statuses['date_added']) . '</strong></td>' . "\n";
 echo '					 <td valign="top" class="product_infobox_data" width="85"><br>' . $statuses['orders_status_name'] . '</td>' . "\n";
 echo '					 <td valign="top" class="product_infobox_data"><br>' . (empty($statuses['comments']) ? ' ' : nl2br(tep_output_string_protected($statuses['comments']))) . '</td>' . "\n";
 echo '			 </tr>' . "\n";
}
?>
				 <tr>
				 <td colspan="3"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '7'); ?></td>
				 </tr>
			 </table></td>
			 <td background="images/borders/mainwhite_06.gif"><img src="images/borders/mainwhite_06.gif" width="19" height="100%" alt=""></td>
		 </tr>
		 <tr>
			 <td><img src="images/borders/mainwhite_07.gif" width="11" height="18" alt=""></td>
			 <td background="images/borders/mainwhite_08.gif"><img src="images/borders/mainwhite_08.gif" width="100%" height="18" alt=""></td>
			 <td><img src="images/borders/mainwhite_09.gif" width="19" height="18" alt=""></td>
		 </tr>
		 </table></td>
	 </tr>
 </table>
 <!-- ORDER COMMENTS CODE ENDS HERE //-->

Please be kind with me, I am very new to coding. Thanks

Edited by newburns

Share this post


Link to post
Share on other sites

No Admin order emails! Soooo this is what I did to get round this as in checkout_process.php the contribution was stopping any order emails except one html one to the customer. In email_invoice.php find near the bottom:

 

$ei_message->send($order2->customer['name'], $order2->customer['email_address'], STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_TEXT_SUBJECT . ' ' . $insert_id . ' - ' . STORE_NAME); 

 

 

After it add:

 

 

 

tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_TEXT_SUBJECT . ' ' . $insert_id . ' - ' . STORE_NAME, $email_order , STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
   tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

 

 

What this does is send the usual Admin text based order email that you'd get without this contribution and sends the fancy html invoice to the customer plus a text based invoice similar to Admin order as well. If you don't want this remove:

 

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

 

Then the customer will just get the fancy html one.

 

CAUTION! I'm not a coder! I've just had to make this work! Use at your own risk.

 

Lorraine

Share this post


Link to post
Share on other sites

@@Mort-lemur

 

I just checked and I have Shipping, Subtotal, Tax, and Total all set to display. Everything displays fine on the invoice itself, just not in the email sent to the customer.

 

I had the same issue and spent many days trying to figure it out

 

I eventually found a post that showed the code output of a working html_invoice.php template file, so I downloaded it and compared the changes to my file. I noticed a few differences and added those changes to box_invoice.php and presto, order total, shipping, points, everything now showing on the customer invoice :)

 

Here's the 2.3 working code for box_invoice.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);
 }
}
}
$order2 = new order($oID);
?>
<html>
<head>
<title><?php echo STORE_NAME; ?> <?php echo INVOICE_TEXT_INVOICE; ?> <?php echo INVOICE_TEXT_NUMBER_SIGN; ?><?php echo date("y"); ?><?php echo INVOICE_TEXT_DASH; ?><?php echo $oID; ?></title>
<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; }
.dataTableContent { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #000000; }
.smallText { font-family: Verdana, Arial, sans-serif; font-size: 10px; }
.smallTextBlue { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #006699; }
.smallAddressBlue { font-family: Arial; font-size: 9px; color: #006699; }
.main { font-family: Verdana, Arial, sans-serif; font-size: 12px; }
</style>
</head>
<body bgcolor="#FFFFFF" leftmargin=10 topmargin=10>
<!-- START Top Header -->
<table width=100% bgcolor="#FFFFFF" cellpadding="5" style="border2-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 class="smallTextBlue" ALIGN="right" VALIGN="top" NOWRAP><strong><?php echo INVOICE_TEXT_INVOICE; ?> <?php echo INVOICE_TEXT_NUMBER_SIGN; ?> <?php echo date("y"); ?><?php echo INVOICE_TEXT_DASH; ?><?php echo $oID; ?><BR><?php echo $date; ?></strong></font><br><br><span class="smallAddressBlue"><strong><?php echo nl2br(STORE_NAME_ADDRESS); ?></strong></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><?php echo INVOICE_TEXT_INVOICE; ?></i></font></td>
</tr>
</table>
<!-- END INVOICE -->
<table width="100%" border="3" cellpadding="5" bordercolor="#EEEEEE" bgcolor="#FFFFFF" style="border2-collapse: collapse">
<tr>
<td width="50%" valign="top">
<!-- START Billing Info -->
	 <table width="100%" border="0" cellspacing="0" cellpadding="0" class="main">
				 <tr>
				 <td class="smallTextBlue" align="left" valign="top"><b><?php echo ENTRY_SHIP_TO; ?></b></font></td>
				 </tr>
				 <tr>
				 <td><img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="100" height="5" alt=""></td>
				 </tr>
				 <tr>
				 <td class="smallTextBlue" NOWRAP>    <?php echo tep_address_format($order2->delivery['format_id'], $order2->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 Billing Info -->
</td>
<td width="50%" valign="top">
<!-- START Shipping Info -->
	 <table width="100%" border="0" cellpadding="0" cellspacing="0" class="main">
				 <tr>
				 <td class="smallTextBlue" align="left" valign="top"><b><?php echo ENTRY_SOLD_TO; ?></b></font></td>
				 </tr>
				 <tr>
				 <td><img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="100" height="5" alt=""></td>
				 </tr>
				 <tr>
				 <td class="smallTextBlue" NOWRAP>    <?php echo tep_address_format($order2->customer['format_id'], $order2->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 class="smallTextBlue" NOWRAP>    <?php echo $order2->customer['telephone']; ?></font></td>
				 </tr>
				 <tr>
				 <td class="smallTextBlue" NOWRAP>    <?php echo $order2->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 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"><?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($order2->products); $i < $n; $i++) {
echo '		 <tr class="dataTableRow">' . "\n" .
 '		 <td class="dataTableContent" valign="top" align="right">' . $order2->products[$i]['qty'] . ' x</td>' . "\n" .
 '		 <td class="dataTableContent" valign="top">' . $order2->products[$i]['name'];
 if (isset($order2->products[$i]['attributes']) && (($k = sizeof($order2->products[$i]['attributes'])) > 0)) {
 for ($j = 0; $j < $k; $j++) {
	 echo '<br><nobr><small> <i> - ' . $order2->products[$i]['attributes'][$j]['option'] . ': ' . $order2->products[$i]['attributes'][$j]['value'];
	 if ($order2->products[$i]['attributes'][$j]['price'] != '0') echo ' (' . $order2->products[$i]['attributes'][$j]['prefix'] . $currencies->format($order2->products[$i]['attributes'][$j]['price'] * $order2->products[$i]['qty'], true, $order2->info['currency'], $order2->info['currency_value']) . ')';
	 echo '</i></small></nobr>';
 }
 }
 echo '		 </td>' . "\n" .
	 '		 <td class="dataTableContent" valign="top">' . $order2->products[$i]['model'] . '</td>' . "\n";
 echo '		 <td class="dataTableContent" align="right" valign="top">' . tep_display_tax_value($order2->products[$i]['tax']) . '%</td>' . "\n" .
	 '		 <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format($order2->products[$i]['final_price'], true, $order2->info['currency'], $order2->info['currency_value']) . '</b></td>' . "\n" .
	 '		 <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format(tep_add_tax($order2->products[$i]['final_price'], $order2->products[$i]['tax']), true, $order2->info['currency'], $order2->info['currency_value']) . '</b></td>' . "\n" .
	 '		 <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format($order2->products[$i]['final_price'] * $order2->products[$i]['qty'], true, $order2->info['currency'], $order2->info['currency_value']) . '</b></td>' . "\n" .
	 '		 <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format(tep_add_tax($order2->products[$i]['final_price'], $order2->products[$i]['tax']) * $order2->products[$i]['qty'], true, $order2->info['currency'], $order2->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($order2->totals); $i < $n; $i++) {
echo '		 <tr>' . "\n" .
 '		 <td align="right" class="smallText">' . $order2->totals[$i]['title'] . '</td>' . "\n" .
 '		 <td align="right" class="smallText">' . $order2->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="border2-collapse: collapse">
<tr>
<td colspan="2" align="center"><br><font size=2 face="Arial" color="#006699"><?php echo INVOICE_TEXT_THANK_YOU; echo " "; echo STORE_NAME; ?><br><?php echo STORE_URL_ADDRESS; ?></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 date("y"); ?> <?php echo STORE_NAME; ?>, <?php echo INVOICE_RIGHTS; ?></FONT></STRONG></td>
</tr>
</table>
<!-- END Footer -->
</body>
</html>

Edited by jackhill

Share this post


Link to post
Share on other sites

I've just input this contribution and it works fine, except the 'suburb' does not print on the shipping address (though it is present on the billing side). Can someone tell me where/what to change, so I can ensure that it prints the full shipping address, and also so it can put the postcode on the next line. And less importantly, but while i'm trying to get it right, which bit it is and where to make the font larger for the shipping address only. thank you


Running a botched up version of  osCommerce Online Merchant v2.3.4 bootstrap with the dresscode theme installed, numerous add-ons, terrible coding, terrible website, but will have to make do until I have made up for my losses and can risk shutting down for a couple of weeks while I start all over again. - I did not install my program but am endeavouring to fix it with your help.

Share this post


Link to post
Share on other sites

Ignore the bit about the suburb, that's okay, but would like the shipping address: bigger, postcode on next line, and county omitted, if anyone knows how I could do this?


Running a botched up version of  osCommerce Online Merchant v2.3.4 bootstrap with the dresscode theme installed, numerous add-ons, terrible coding, terrible website, but will have to make do until I have made up for my losses and can risk shutting down for a couple of weeks while I start all over again. - I did not install my program but am endeavouring to fix it with your help.

Share this post


Link to post
Share on other sites

Does no one have any idea how I would put the postcode on the next line. And less importantly, but while i'm trying to get it right, which bit it is and where to make the font larger for the shipping address only? The postman will need binoculars to read the address, it is tiny!!!thank you


Running a botched up version of  osCommerce Online Merchant v2.3.4 bootstrap with the dresscode theme installed, numerous add-ons, terrible coding, terrible website, but will have to make do until I have made up for my losses and can risk shutting down for a couple of weeks while I start all over again. - I did not install my program but am endeavouring to fix it with your help.

Share this post


Link to post
Share on other sites

Does no one have any idea how I would put the postcode on the next line. And less importantly, but while i'm trying to get it right, which bit it is and where to make the font larger for the shipping address only? The postman will need binoculars to read the address, it is tiny!!!thank you

 

http://forums.oscommerce.com/topic/391714-add-extra-fields-for-customer-details/#entry1663419

try this fix and change around the order of info. I think that $cr is a new line, but I am not certain so you'll have to try.

 

I think you'll have to change the size in the admin/orders.php at "entry_shipping_address".

Share this post


Link to post
Share on other sites

Hi, thank you for your help. I managed to get the postcode on the second line. as you said by adding in $cr just before the postcode to put it on a new line. Strange thing is that both the shipping address and invoice address use the same format id, that I find puzzling! Still at a loss as to changing the text size of the shipping address. I could not see anywhere in admin/orders.php that related to text size and in the stylesheet nothing that seems to relate to the addresses. I have looked through every file, and looked at my other website files, on which I HAVE managed to increase the text size of just the shipping address, but it was 6 years ago and I really haven't a clue to how I did it! So frustrating!


Running a botched up version of  osCommerce Online Merchant v2.3.4 bootstrap with the dresscode theme installed, numerous add-ons, terrible coding, terrible website, but will have to make do until I have made up for my losses and can risk shutting down for a couple of weeks while I start all over again. - I did not install my program but am endeavouring to fix it with your help.

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

×