Jump to content
PopTheTop

Fancier Invoice & Packingslip v1.0

Recommended Posts

I should mention that I am not using PayPal to process credit cards.

 

Here is the apache error code I am getting:

 

Using $this when not in object context in /var/www/public_html/ahaplace/html/admin/invoice.php on line 180

 

Here is line 170 and 180.

<?php

if (tep_not_null($order->info['cc_number'])) {

$this->cc_card_number_less_middle_digits = substr($order->info['cc_number'], 0, 4) . str_repeat('x', (strlen($order->info['cc_number']) - 8)) . substr($order->info['cc_number'], -4);

?>

 

Anybody get credit cards (not using PayPal) to work with this contrib?

I found a post saying to do the following:

if (tep_not_null($order->info['cc_number'])) {

$this->cc_card_number_less_middle_digits = substr($order->info['cc_number'], 0, 4) . str_repeat('x', (strlen($order->info['cc_number']) - 8)) . substr($order->info['cc_number'], -4);

?>

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

<?php

} else

 

but that did not help any.

Share this post


Link to post
Share on other sites
When credit card orders are placed, the packing slip shows the order properly, but when viewing the invoice in admin or via customer account, the invoice is cut off. It does not show the product ordered, totals, or the footer of the invoice. I am not using PayPal to process credit cards.

Has anybody got this contrib to work with credit cards?

Share this post


Link to post
Share on other sites
When credit card orders are placed, the packing slip shows the order properly, but when viewing the invoice in admin or via customer account, the invoice is cut off. It does not show the product ordered, totals, or the footer of the invoice. I am not using PayPal to process credit cards.

 

Has anybody got this contrib to work with credit cards?

After more hours of troubleshooting, I have found out what file is causing the problem when trying to view an invoice paid by credit card. It is the account_history_info.php file. When I replaced the fancier invoice version of the file with the default account_history_info.php file you can view the invoice with no problem as a customer. However, the problem with this is that invoices cannot be printed by the customer.

 

So the next step is to find out what is in this file that is causing the problem.

Anyone out there who knows osc code able to tackle this problem?

Share this post


Link to post
Share on other sites
are you printing with backgrounds on???

The problem occurs prior to printing an actual invoice. It occurs as soon as a customer confirms their order.

 

To fix the problem I have changed this

 

<?php

if (tep_not_null($order->info['cc_number'])) {

$this->cc_card_number_less_middle_digits = substr($order->info['cc_number'], 0, 4) . str_repeat('x', (strlen($order->info['cc_number']) - 8)) . substr($order->info['cc_number'], -4);

?>

<td align="right" class="order_infobox_data"> <b><?php echo HEADING_PAYMENT_METHOD; ?></b> <?php echo $order->info['payment_method']; ?> (<?php echo $order->info['cc_type']; ?>)<br><?php echo tep_draw_separator('pixel_trans.gif', '100%', '6'); ?><br> <b><?php echo ENTRY_PAYMENT_CC_NUMBER; ?></b> <?php echo $this->cc_card_number_less_middle_digits; ?></td>

<?php

} else {

?>

<td align="right" class="order_infobox_data"> <b><?php echo HEADING_PAYMENT_METHOD; ?></b> <?php echo $order->info['payment_method']; ?> </td>

<?php

}

?>

to

 

<td align="right" class="order_infobox_data"> <b><?php echo HEADING_PAYMENT_METHOD; ?></b> <?php echo $order->info['payment_method']; ?> </td>

Needed to also remove credit card references from the print_my_invoice.php and html_invoice.php file

 

It appears I have everything now working properly. The only thing I need to change is remove the

Extra price columns in the admin invoice forms.

 

Needless to say there are tons of errors with this contrib.

Share this post


Link to post
Share on other sites

I didn't really like the way the invoice worked when a customer wanted to print his invoice.

So I made it a bit different.

 

When the customer wants to print from account_history_info.php - he/she click a print order button - and the order comes up in a new window. I have made it so if the customer don't want to print out "order status" or "Bank Information" or "General Information about the shop policy" - he can click on a button and they dissappear (basically what you can do in admin). I just liked for the customer to do a bit of the same.

 

:::: This is what I did: :::

 

copied admin_comments_popup.js from admin/includes to:

 

catalog/includes

and renamed it: printorder_comments_popup.js

 

 

Put this in your language files includes/yourlanguage/print_my_invoice.php:

define('INVOICE_TEXT_PAYMENT_INFO', 'Bank information you write info about your bank here'); // Your bank info Printed at the bottom of your invoices

 

In account_history_info.php:

 

just before

</head>

 

I put:

 

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

 

 

around line 246 - or where ever you want your print button I put:

 

<a href="java script: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_image_button('button_print_order.gif', IMAGE_BUTTON_PRINT_ORDER) . '</a>'; ?>

 

 

I made 3 small icons (you have to make your own) and put them in:

images/icons/print_bank_info.gif

images/icons/print_general_info.gif

images/icons/print_status_info.gif

 

I wanted the images to be language independant - but I haven't done so!!!

 

The code for print_my_invoice.php:

<?php
/*
 $Id: print_my_invoice.php,v 6.1 2005/06/05 23:03:52 PopTheTop Exp $
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com
 Copyright (c) 2003 osCommerce
 Released under the GNU General Public License
*/

 require('includes/application_top.php');

 if (!tep_session_is_registered('customer_id')) {
$navigation->set_snapshot();
tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
 }

 if (!isset($HTTP_GET_VARS['order_id']) || (isset($HTTP_GET_VARS['order_id']) && !is_numeric($HTTP_GET_VARS['order_id']))) {
tep_redirect(tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL'));
 }
 $orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where orders_id = '" . tep_db_input($oID) . "'");
 $customer_info_query = tep_db_query("select customers_id from " . TABLE_ORDERS . " where orders_id = '". (int)$HTTP_GET_VARS['order_id'] . "'");
 $customer_info = tep_db_fetch_array($customer_info_query);
 if ($customer_info['customers_id'] != $customer_id) {
tep_redirect(tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL'));
 }

 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRINT_MY_INVOICE);

 $breadcrumb->add(NAvb script:ShowHide(\'comments_open\',\'comments_close\');">'; ?><?php echo tep_draw_separator('pixel_trans.gif', '100%', '18'); ?></td>
   </tr>
   <tr>
	  <TD><!-- ORDER COMMENTS CODE STARTS HERE //-->
<div id="comments_open" style="position: relative;">
	 <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>
</div>
<!-- ORDER COMMENTS CODE ENDS HERE //-->
<?php echo '<input type="image" src="images/icons/print_bank_info.gif" onClick="java script:ShowHide(\'comments_open2\',\'comments_close2\');">'; ?><br>
<div id="comments_open2" style="position: relative;">
<span class="main_INVOICE"><?php echo INVOICE_TEXT_PAYMENT_INFO; ?></span>
</div>
<br>
<?php echo '<input type="image" src="images/icons/print_general_info.gif" onClick="java script:ShowHide(\'comments_open3\',\'comments_close3\');">'; ?><br>
<div id="comments_open3" style="position: relative;">
<span class="main_INVOICE"><?php echo INVOICE_TEXT_THANK_YOU; ?></span>
</div>

<CENTER><span class="smallText_INVOICE"><BR><?php echo STORE_NAME; ?><BR><?php echo STORE_URL_ADDRESS; ?></strong></font></span></CENTER>
<!-- body_text_eof //-->

</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

 

Please don't ask me for support - I'm not a shark in this PHP.

If you like it and make improvements to it - please put the code out here for all to see....

 

Helle :-)

Share this post


Link to post
Share on other sites

Can someone tell me how i make this url

http://www.MYDOMAIN/account_history_info.php/order_id/57

 

The right url should be

http://www.MYDOMAIN/account_history_info.php?order_id=57

 

But all

					 <td><div style="float:left"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, tep_get_all_get_params(array('order_id')), 'SSL') . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a></div><div style=float:right>'; ?><a href="java script: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_image_button('button_print_order.gif', IMAGE_BUTTON_PRINT_ORDER) . '</a>'; ?></div></td>

Is the same from all version to this modul.

I hope someone can help me.

Share this post


Link to post
Share on other sites

Hi, i want to display my prices in the shop without tax, but when i turn off in the admin->config "show prices inc. tax" Only the prices without tax will show up in the invoice.

Is there a way to fix this?

 

Thnxz

Share this post


Link to post
Share on other sites
Hi, i want to display my prices in the shop without tax, but when i turn off in the admin->config "show prices inc. tax" Only the prices without tax will show up in the invoice.

Is there a way to fix this?

 

Thnxz

you may want to post that one in a more general forum as it is not a related bug to the contribution

 

I to have noticed that if changed in admin it will not change on site -- but have not looked into an answer

Share this post


Link to post
Share on other sites
you may want to post that one in a more general forum as it is not a related bug to the contribution

 

I to have noticed that if changed in admin it will not change on site -- but have not looked into an answer

 

Hmmm i thought that this was the support forum for the "Fancier Invoice & Packingslip"

i think it's relative to the contri because it dusn't show the tax in the invoice wich belongs to this contri.

Maybee there's a little fix?

 

tax.jpg

Share this post


Link to post
Share on other sites

Hello.

 

I just installed this mod and finally got it work. The only problem I can't figure out is how to get the text on the right and the unwanted text gone. The text is causing my banner to be off center.

 

Is there a way for fix this? Is there a width & height limit?

 

screenshot.gif


Thanks!

Clesha

Share this post


Link to post
Share on other sites

yes but it is in the shop that it does show... invoice correct -- shop (main program is where the issue it..) have nothign to do with contrib

Share this post


Link to post
Share on other sites

I could really use some help with this.

It looks like your contribution does what we need, however I can not seem to get it working correctly.

We are very new to oscommerce, so it is quite possibly something simple in setup, but still is escaping me.

Here is screen shot of what we have, you will notice that header and footer seem to be pulling in some sort of

variable name or message, instead of default images and information. Any help would be great ...

thanks,

Jesse

 

fancy_invoice.jpg

Share this post


Link to post
Share on other sites

Hi

 

You miss some language text I can see. I put here my english version. You will have to see/compare what you are missing:

 

catalog/includes/language/english/print_my_invoice.php

 

Hope it helps you

 

//// START Edit the following defines to your liking ////
define('TEXT_INFO_ORDERS_STATUS_NAME', 'Order Status:');
// Footing
define('INVOICE_TEXT_PAYMENT_INFO', 'Bank information'); // Your bank info Printed at the bottom of your invoices
define('INVOICE_TEXT_THANK_YOU', 'thank you note'); // Printed at the bottom of your invoices
define('STORE_URL_ADDRESS', 'http://www.yourcompany.dk'); // Your web address Printed at the bottom of your invoices

// Image Info
define('INVOICE_IMAGE', 'images/firmalogo.gif'); //Change this to match your logo image and foler it is in
define('INVOICE_IMAGE_WIDTH', '300'); // Change this to your logo's width
define('INVOICE_IMAGE_HEIGHT', '47'); // Change this to your logo's height
define('INVOICE_IMAGE_ALT_TEXT', STORE_NAME); // Change this to your logo's ALT text or leave blank

// Product Table Info Headings
define('TABLE_HEADING_PRODUCTS_MODEL', 'SKU #'); // Change this to "Model #" or leave it as "SKU #"

//// END Editing the above defines to your liking ////
define('INVOICE_TEXT_INVOICE_NR', 'Invoice: ');
define('INVOICE_TEXT_INVOICE_DATE', 'Invoice date: ');

// Misc Invoice Info
define('INVOICE_TEXT_NUMBER_SIGN', '#');
define('INVOICE_TEXT_DASH', '-');
define('INVOICE_TEXT_COLON', ':');

define('INVOICE_TEXT_INVOICE', 'Invoice');
define('INVOICE_TEXT_ORDER', 'Order');
define('INVOICE_TEXT_DATE_OF_ORDER', 'Date of Order');
define('ENTRY_PAYMENT_CC_NUMBER', 'Credit Card:');

// Customer Info
define('ENTRY_SOLD_TO', 'SOLD TO:');
define('ENTRY_SHIP_TO', 'SHIP TO:');
define('ENTRY_PAYMENT_METHOD', 'Payment:');

// Product Table Info Headings
define('TABLE_HEADING_PRODUCTS', 'Products');
define('TABLE_HEADING_PRICE_EXCLUDING_TAX', 'Price (ex)');
define('TABLE_HEADING_PRICE_INCLUDING_TAX', 'Price (inc)');
define('TABLE_HEADING_TOTAL_EXCLUDING_TAX', 'Total (ex)');
define('TABLE_HEADING_TOTAL_INCLUDING_TAX', 'Total (inc)');
define('TABLE_HEADING_TAX', 'Tax');
define('TABLE_HEADING_UNIT_PRICE', 'Unit Price');
define('TABLE_HEADING_TOTAL', 'Total');

// Order Total Details Info
define('ENTRY_SUB_TOTAL', 'Sub Total:');
define('ENTRY_SHIPPING', 'Shipping:');
define('ENTRY_TAX', 'Tax:');
define('ENTRY_TOTAL', 'Total:');

//Order Comments
define('TABLE_HEADING_COMMENTS', 'ORDER COMMENTS:');
define('TABLE_HEADING_DATE_ADDED', 'Date Added');
define('TABLE_HEADING_COMMENT_LEFT', 'Comment Left');
define('INVOICE_TEXT_NO_COMMENT', 'No comments have been left for this order');
?>

Share this post


Link to post
Share on other sites

Yes, I found that file ... however it does not seem to have any effect. I am not PHP expert, but it seems to have something to do with where the variables are being called to print on page or something.

Even though line in print_my_invoice.php says:

define('STORE_URL_ADDRESS', 'http://www.yourcompany.dk'); // Your web address Printed at the bottom of your invoices

It actually prints STORE_URL_ADDRESS not http://www.yourcompany.dk

I have no idea what is causing this, but our invoices look horrible.

Jesse

Share this post


Link to post
Share on other sites
Yes, I found that file ... however it does not seem to have any effect. I am not PHP expert, but it seems to have something to do with where the variables are being called to print on page or something.

Even though line in print_my_invoice.php says:

define('STORE_URL_ADDRESS', 'http://www.yourcompany.dk'); // Your web address Printed at the bottom of your invoices

It actually prints STORE_URL_ADDRESS not http://www.yourcompany.dk

I have no idea what is causing this, but our invoices look horrible.

Jesse

There are all kinds of problems with the language files for this contrib.

Here is what I have that seems to work other than one problem that I will be posting.

 

includes/languages/english/invoice.php

define('TABLE_HEADING_COMMENTS', 'Comments');

define('TABLE_HEADING_PRODUCTS_MODEL', 'Model');

define('TABLE_HEADING_PRODUCTS', 'Products');

define('TABLE_HEADING_TAX', 'Tax');

define('TABLE_HEADING_TOTAL', 'Total');

define('TABLE_HEADING_PRICE_EXCLUDING_TAX', 'Unit Price (Tax ex.)');

define('TABLE_HEADING_PRICE_INCLUDING_TAX', 'Unit Price (Tax inc.)');

define('TABLE_HEADING_TOTAL_EXCLUDING_TAX', 'Total (Tax ex.)');

define('TABLE_HEADING_TOTAL_INCLUDING_TAX', 'Total (Tax inc.)');

 

define('ENTRY_SOLD_TO', 'SOLD TO:');

define('ENTRY_SHIP_TO', 'SHIP TO:');

define('ENTRY_PAYMENT_METHOD', 'Payment Method:');

define('ENTRY_SUB_TOTAL', 'Sub-Total:');

define('ENTRY_TAX', 'Tax:');

define('ENTRY_SHIPPING', 'Shipping:');

define('ENTRY_TOTAL', 'Total:');

 

/* Invoice mod START */

define('ENTRY_HEADLINE', 'Invoice');

define('ENTRY_INVOICE_NUMBER', 'Invoice n°:');

define('ENTRY_INVOICE_NUMBER_PREFIX', 'PR04-');

define('ENTRY_INVOICE_NUMBER_CENTER', '00');

define('ENTRY_INVOICE_NUMBER_SUFFIX', '-N1');

define('ENTRY_INVOICE_DATE', 'Date:');

define('ENTRY_ORDER_NUMBER', 'Order N°:');

define('ENTRY_ORDER_DATE', 'Order Date:');

define('ENTRY_FOOTER', 'Invoice Footer<br><br><br><br>Invoice Footer<br>Invoice Footer: 12345/67890');

/* Invoice mod END */

 

admin/includes/languages/english/invoice.php

//// START Edit the following defines to your liking ////

 

// Footing

define('INVOICE_TEXT_THANK_YOU', 'Thank you for shopping at'); // Printed at the bottom of your invoices

define('STORE_URL_ADDRESS', 'http://www.domain.com'); // Your web address Printed at the bottom of your invoices

 

// Image Info

define('INVOICE_IMAGE', 'images/logo.jpg'); //Change this to match your logo image and foler it is in

define('INVOICE_IMAGE_WIDTH', '241'); // Change this to your logo's width

define('INVOICE_IMAGE_HEIGHT', '28'); // Change this to your logo's height

 

// Product Table Info Headings

define('TABLE_HEADING_PRODUCTS_MODEL', 'SKU #'); // Change this to "Model #" or leave it as "SKU #"

 

//// END Editing the above defines to your liking ////

 

// Misc Invoice Info

define('INVOICE_TEXT_NUMBER_SIGN', '#');

define('INVOICE_TEXT_DASH', '-');

define('INVOICE_TEXT_COLON', ':');

 

define('INVOICE_TEXT_INVOICE', 'Invoice');

define('INVOICE_TEXT_ORDER', 'Order');

define('INVOICE_TEXT_DATE_OF_ORDER', 'Date of Order');

define('ENTRY_PAYMENT_CC_NUMBER', 'Credit Card:');

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

define('INVOICE_TEXT_INVOICE_DATE', 'Date: ');

 

// Customer Info

define('ENTRY_SOLD_TO', 'SOLD TO:');

define('ENTRY_SHIP_TO', 'SHIP TO:');

define('ENTRY_PAYMENT_METHOD', 'Payment:');

 

// Product Table Info Headings

define('TABLE_HEADING_PRODUCTS', 'Products');

define('TABLE_HEADING_PRICE_EXCLUDING_TAX', 'Price');

define('TABLE_HEADING_PRICE_INCLUDING_TAX', 'Price (inc)');

define('TABLE_HEADING_TOTAL_EXCLUDING_TAX', 'Total');

define('TABLE_HEADING_TOTAL_INCLUDING_TAX', 'Total');

define('TABLE_HEADING_TAX', 'Tax');

define('TABLE_HEADING_UNIT_PRICE', 'Unit Price');

define('TABLE_HEADING_TOTAL', 'Total');

 

// Order Total Details Info

define('ENTRY_SUB_TOTAL', 'Sub-Total:');

define('ENTRY_SHIPPING', 'Shipping:');

define('ENTRY_TAX', 'Tax:');

define('ENTRY_TOTAL', 'Total:');

 

//Order Comments

define('TABLE_HEADING_COMMENTS', 'ORDER COMMENTS:');

define('TABLE_HEADING_DATE_ADDED', 'Date Added');

define('TABLE_HEADING_COMMENT_LEFT', 'Comment Left');

define('INVOICE_TEXT_NO_COMMENT', 'No comments have been left for this order');

define('INVOICE_IMAGE_ALT_TEXT', 'A Place of Hope Store'); // Change this to your logo's ALT text or leave blank

?>

 

admin/includes/languages/english/packingslip.php

//// START Edit the following defines to your liking ////

 

// Footing

define('INVOICE_TEXT_THANK_YOU', 'Thank you for shopping at'); // Printed at the bottom of your packingslips

define('STORE_URL_ADDRESS', 'http://www.domain.com'); // Your web address Printed at the bottom of your packingslips

define('TITLE_PACKING_2', 'Packing Slip');

 

// Image Info

define('INVOICE_IMAGE', 'images/logo.jpg'); //Change this to match your logo image and foler it is in

define('INVOICE_IMAGE_WIDTH', '241'); // Change this to your logo's width

define('INVOICE_IMAGE_HEIGHT', '28'); // Change this to your logo's height

define('INVOICE_IMAGE_ALT_TEXT', 'A Place of Hope Store'); // Change this to your logo's ALT text or leave blank

 

// Product Table Info Headings

define('TABLE_HEADING_PRODUCTS_MODEL', 'SKU #'); // Change this to "Model #" or leave it as "SKU #"

 

//// END Editing the above defines to your liking ////

 

define('TITLE_PACKING', 'Packing Slip');

define('TITLE_PACKING_2', 'Packing Slip');

 

define('TABLE_HEADING_COMMENTS', 'Comments');

define('TABLE_HEADING_PRODUCTS_MODEL', 'Model');

define('TABLE_HEADING_PRODUCTS', 'Products');

 

define('ENTRY_SOLD_TO', 'SOLD TO:');

define('ENTRY_SHIP_TO', 'SHIP TO:');

define('ENTRY_PAYMENT_METHOD', 'Payment Method:');

define('INVOICE_TEXT_INVOICE_NR', 'Invoice');

define('INVOICE_TEXT_INVOICE_DATE', 'Date: ');

define('INVOICE_TEXT_NUMBER_SIGN', '#');

define('INVOICE_TEXT_DASH', '');

 

 

define('INVOICE_NUMBER', 'Invoice #');

define('TITLE', 'Packing Slip');

define('ORDER_NUMBER', 'Order #:');

define('ORDER_DATE', 'Date of Order:');

?>

Share this post


Link to post
Share on other sites

Here is the one problem that I am having.

 

On the packing slip it is entering the number 6 under the invoice number serction. So in the following sample, my invoice number should be 27, not 06 27.

 

Invoice # 06 27

Date: 12/21/2006

 

Here is the code for this section of packing slip.php

<FONT FACE="Verdana" SIZE="2" COLOR="#006699"><strong><?php echo INVOICE_TEXT_INVOICE_NR; ?> <?php echo INVOICE_TEXT_NUMBER_SIGN; ?> <?php echo date("n"); ?><?php echo INVOICE_TEXT_DASH; ?> <?php echo $oID; ?><BR><?php echo INVOICE_TEXT_INVOICE_DATE; ?><?php echo tep_date_short($order->info['date_purchased']); ?></strong></font>

 

Here are my defines:

define('INVOICE_TEXT_INVOICE_NR', 'Invoice');

define('INVOICE_TEXT_INVOICE_DATE', 'Date: ');

define('INVOICE_TEXT_NUMBER_SIGN', '#');

define('INVOICE_TEXT_DASH', '');

 

WHERE IS THE 06 COMING FROM. I am assuming it might be connected to the year, but there is nothing in the defines regarding year.

 

The only code it could be coming from is echo $oID;

But further down in the packing slip it uses echo $oID; and does not enter 06

Share this post


Link to post
Share on other sites

Can someone please help me. I have added the latest version of this contribution.

1. I cannot get the catalog/checkout_process.php to accept the given code changes.

2. The Print my invoice button gives and error.

3. Store url still show .pop

4. Comments buttons on admin.

 

I have uploaded or updated all the files and coding. I love the contribution but I am just stumped.

 

tssbakery.com/catalog is my site.

Share this post


Link to post
Share on other sites
Can someone please help me. I have added the latest version of this contribution.

1. I cannot get the catalog/checkout_process.php to accept the given code changes.

2. The Print my invoice button gives and error.

3. Store url still show .pop

4. Comments buttons on admin.

 

I have uploaded or updated all the files and coding. I love the contribution but I am just stumped.

 

tssbakery.com/catalog is my site.

Need to be more specific as to the errors you are getting.

Share this post


Link to post
Share on other sites
Here is the one problem that I am having.

 

On the packing slip it is entering the number 6 under the invoice number serction. So in the following sample, my invoice number should be 27, not 06 27.

 

Invoice # 06 27

Date: 12/21/2006

 

WHERE IS THE 06 COMING FROM?

I changed <?php echo date("n");

to <?php //echo date("n");

Share this post


Link to post
Share on other sites

1. I cannot get the catalog/checkout_process.php to accept the given code changes. When I enter the codes that were given in the directions I get a blank screen. The only other contribution I have is the Order Editor.

2. The Print my invoice button gives and error. When I click the button I get a 404 error. It opens a new screen but does nothing.

3. Store url still show .pop At the bottom of the admin screens for invoice and packing slip http://www.popthetop.com keeps appearing instead of my url.

4. Comments buttons on admin. The button on the top of the invoice and packing slip talks about showing and not showing the comments. It has a red X for whateva the image should be.

Need to be more specific as to the errors you are getting.

Share this post


Link to post
Share on other sites
1. I cannot get the catalog/checkout_process.php to accept the given code changes. When I enter the codes that were given in the directions I get a blank screen. The only other contribution I have is the Order Editor.

The blank screen normally means there is a ' or ; or . or / in the wrong place or is an extra character. Or a command was not closed properly. Start with your original catalog/checkout_process.php file and re-edit it again.

 

2. The Print my invoice button gives and error. When I click the button I get a 404 error. It opens a new screen but does nothing.

I had the same problem. The URL is wrong for the button. This is because there is a define line that is wrong in the contrib. If you look back a page or two in this forum you will find my post of the fix i did.

 

3. Store url still show .pop At the bottom of the admin screens for invoice and packing slip http://www.popthetop.com keeps appearing instead of my url.

You don't have all the defines entered in the language files. Need to check all of them. Also there are several defines that are missing in the contrib. I have posted mine here.

 

4. Comments buttons on admin. The button on the top of the invoice and packing slip talks about showing and not showing the comments. It has a red X for whateva the image should be.

Your store logo should go there. I think it is normally the oscommerce logo in the default mode. Most likely you have the wrong path entered for the image file. It is defined in admin/includes/languages/english/invoice.php

See my previous post about how to fix an error with the invoice number appearing on the packing slip.

 

 

Here are my latest language files that seem to work "flawless". Be very careful that you don't mix up the folders.

 

admin/includes/languages/english/invoice.php

 

//// START Edit the following defines to your liking ////

 

// Footing

define('INVOICE_TEXT_THANK_YOU', 'Thank you for shopping at'); // Printed at the bottom of your invoices

define('STORE_URL_ADDRESS', 'http://www.domain.com'); // Your web address Printed at the bottom of your invoices

 

// Image Info

define('INVOICE_IMAGE', 'images/logo.jpg'); //Change this to match your logo image and foler it is in

define('INVOICE_IMAGE_WIDTH', '241'); // Change this to your logo's width

define('INVOICE_IMAGE_HEIGHT', '28'); // Change this to your logo's height

 

// Product Table Info Headings

define('TABLE_HEADING_PRODUCTS_MODEL', 'SKU #'); // Change this to "Model #" or leave it as "SKU #"

 

//// END Editing the above defines to your liking ////

 

// Misc Invoice Info

define('INVOICE_TEXT_NUMBER_SIGN', '#');

define('INVOICE_TEXT_DASH', '-');

define('INVOICE_TEXT_COLON', ':');

 

define('INVOICE_TEXT_INVOICE', 'Invoice');

define('INVOICE_TEXT_ORDER', 'Order');

define('INVOICE_TEXT_DATE_OF_ORDER', 'Date of Order');

define('ENTRY_PAYMENT_CC_NUMBER', 'Credit Card:');

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

define('INVOICE_TEXT_INVOICE_DATE', 'Date: ');

 

// Customer Info

define('ENTRY_SOLD_TO', 'SOLD TO:');

define('ENTRY_SHIP_TO', 'SHIP TO:');

define('ENTRY_PAYMENT_METHOD', 'Payment:');

 

// Product Table Info Headings

define('TABLE_HEADING_PRODUCTS', 'Products');

define('TABLE_HEADING_PRICE_EXCLUDING_TAX', 'Price');I have removed the (ex)

define('TABLE_HEADING_PRICE_INCLUDING_TAX', 'Price');I have remove dthe (inc)

define('TABLE_HEADING_TOTAL_EXCLUDING_TAX', 'Total');

define('TABLE_HEADING_TOTAL_INCLUDING_TAX', 'Total');

define('TABLE_HEADING_TAX', 'Tax');

define('TABLE_HEADING_UNIT_PRICE', 'Unit Price');

define('TABLE_HEADING_TOTAL', 'Total');

 

// Order Total Details Info

define('ENTRY_SUB_TOTAL', 'Sub-Total:');

define('ENTRY_SHIPPING', 'Shipping:');

define('ENTRY_TAX', 'Tax:');

define('ENTRY_TOTAL', 'Total:');

 

//Order Comments

define('TABLE_HEADING_COMMENTS', 'ORDER COMMENTS:');

define('TABLE_HEADING_DATE_ADDED', 'Date Added');

define('TABLE_HEADING_COMMENT_LEFT', 'Comment Left');

define('INVOICE_TEXT_NO_COMMENT', 'No comments have been left for this order');

define('INVOICE_IMAGE_ALT_TEXT', Image Text); // Change this to your logo's ALT text or leave blank

?>

 

 

admin/includes/languages/english/packingslip.php

 

//// START Edit the following defines to your liking ////

 

// Footing

define('INVOICE_TEXT_THANK_YOU', 'Thank you for shopping at'); // Printed at the bottom of your packingslips

define('STORE_URL_ADDRESS', 'http://www.domain.com'); // Your web address Printed at the bottom of your packingslips

define('TITLE_PACKING_2', 'Packing Slip');

 

// Image Info

define('INVOICE_IMAGE', 'images/logojpg'); //Change this to match your logo image and foler it is in

define('INVOICE_IMAGE_WIDTH', '241'); // Change this to your logo's width

define('INVOICE_IMAGE_HEIGHT', '28'); // Change this to your logo's height

define('INVOICE_IMAGE_ALT_TEXT', 'Logo Text); // Change this to your logo's ALT text or leave blank

 

// Product Table Info Headings

define('TABLE_HEADING_PRODUCTS_MODEL', 'SKU #'); // Change this to "Model #" or leave it as "SKU #"

 

//// END Editing the above defines to your liking ////

 

define('TITLE_PACKING', 'Packing Slip');

define('TITLE_PACKING_2', 'Packing Slip');

 

define('TABLE_HEADING_COMMENTS', 'Comments');

define('INVOICE_TEXT_NO_COMMENT', '');

define('TABLE_HEADING_PRODUCTS_MODEL', 'Model');

define('TABLE_HEADING_PRODUCTS', 'Products');

 

define('ENTRY_SOLD_TO', 'SOLD TO:');

define('ENTRY_SHIP_TO', 'SHIP TO:');

define('ENTRY_PAYMENT_METHOD', 'Payment Method:');

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

define('INVOICE_TEXT_INVOICE_DATE', 'Date: ');

define('INVOICE_TEXT_NUMBER_SIGN', '');

define('INVOICE_TEXT_DASH', '');

 

 

define('INVOICE_NUMBER', 'Invoice #');

define('TITLE', 'Packing Slip');

define('ORDER_NUMBER', 'Order #:');

define('ORDER_DATE', 'Date of Order:');

?>

 

includes/languages/english/print_my_invoice.php

//// START Edit the following defines to your liking ////

 

// Footing

define('INVOICE_TEXT_THANK_YOU', 'Thank you for shopping at'); // Printed at the bottom of your invoices

define('STORE_URL_ADDRESS', 'http://www.domain.com'); // Your web address Printed at the bottom of your invoices

 

// Image Info

define('INVOICE_IMAGE', '/images/logo.jpg'); //Change this to match your logo image and foler it is in

define('INVOICE_IMAGE_WIDTH', '241'); // Change this to your logo's width

define('INVOICE_IMAGE_HEIGHT', '28'); // Change this to your logo's height

define('INVOICE_IMAGE_ALT_TEXT', 'Image Text); // Change this to your logo's ALT text or leave blank

 

// Product Table Info Headings

define('TABLE_HEADING_PRODUCTS_MODEL', 'SKU #'); // Change this to "Model #" or leave it as "SKU #"

 

//// END Editing the above defines to your liking ////

 

// Misc Invoice Info

define('INVOICE_TEXT_NUMBER_SIGN', '#');

define('INVOICE_TEXT_DASH', '-');

define('INVOICE_TEXT_COLON', ':');

 

define('INVOICE_TEXT_INVOICE', 'Invoice');

define('INVOICE_TEXT_ORDER', 'Order');

define('INVOICE_TEXT_DATE_OF_ORDER', 'Date of Order');

define('ENTRY_PAYMENT_CC_NUMBER', 'Credit Card:');

define('INVOICE_TEXT_INVOICE_NR', '');

define('INVOICE_TEXT_INVOICE_DATE', 'Date:');

define('TEXT_INFO_ORDERS_STATUS_NAME', 'ORDER STATUS:');

 

 

// Customer Info

define('ENTRY_SOLD_TO', 'SOLD TO:');

define('ENTRY_SHIP_TO', 'SHIP TO:');

define('ENTRY_PAYMENT_METHOD', 'Payment:');

 

// Product Table Info Headings

define('TABLE_HEADING_PRODUCTS', 'Products');

define('TABLE_HEADING_PRICE_EXCLUDING_TAX', 'Price (ex)'); I actually remove the (ex)

define('TABLE_HEADING_PRICE_INCLUDING_TAX', 'Price (inc)'); I actually remove the (inc)

define('TABLE_HEADING_TOTAL_EXCLUDING_TAX', 'Total (ex)');

define('TABLE_HEADING_TOTAL_INCLUDING_TAX', 'Total (inc)');

define('TABLE_HEADING_TAX', 'Tax');

define('TABLE_HEADING_UNIT_PRICE', 'Unit Price');

define('TABLE_HEADING_TOTAL', 'Total');

 

// account_history

define('HEADING_PRODUCTS', 'Products');

 

// Order Total Details Info

define('ENTRY_SUB_TOTAL', 'Sub-Total:');

define('ENTRY_SHIPPING', 'Shipping:');

define('ENTRY_TAX', 'Tax:');

define('ENTRY_TOTAL', 'Total:');

 

//Order Comments

define('TABLE_HEADING_COMMENTS', 'ORDER COMMENTS:');

define('TABLE_HEADING_DATE_ADDED', 'Date Added');

define('TABLE_HEADING_COMMENT_LEFT', 'Comment Left');

define('INVOICE_TEXT_NO_COMMENT', 'No comments have been left for this order');

?>

Share this post


Link to post
Share on other sites

Hello,

I am trying to install Fancier Invoice, but having a little issue with getting the border images to show. I am sure it is because I do not have the path set correctly in configure.php. My complete path to catalog from root is:

 

/var/www/domain.com/htdocs/catalog (catalog)

/var/www/domain.com/htdocs/admin (admin)

 

Fancier Invoice asks for absolute, can someone tell me what the correct path may be.

 

// Folder Definitions

define('DIR_FS_ADMIN', '/htdocs/admin/'); // absolute path required

define('EMAIL_INVOICE_DIR', 'email_invoice/');

define('INVOICE_TEMPLATE_DIR', 'templates/');

 

// Email Invoice File Definitions

define('FILENAME_EMAIL_INVOICE', 'email_invoice.php');

define('FILENAME_EMAIL_CACHE_FILE', 'temp_cache.php');

define('FILENAME_ORDERS_INVOICE', 'invoice.php');

 

 

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

Below is what I get whn I click on the invoice button under order view.

 

webpage.jpg

 

I did add a directory catalog/admin and uploaded all corresponding files? When I click on one of the broken images as a view image, I get;

 

http://www.domain.com/images/borders/maingrey_02.gif

 

But should be;

 

http://www.domain.com/catalog/images/borders/maingrey_02.gif

 

Some reason it is not putting "catalog"??

 

Thanks JR

Share this post


Link to post
Share on other sites

Hi everybody

 

This is a very nice contribution and I would love to keep it in my store but I have a few problems:

 

1. I've installed twice but I cannot have my logo on invoice/packing slip.

 

2. When I log in as a customer and I want to see the details of my order I get the following message:

 

Fatal error: Cannot redeclare tep_show_category() (previously declared in /home/allurear/public_html/includes/header.php:178) in /home/allurear/public_html/includes/boxes/categories.php on line 13

 

3. When I look in "print preview" the borders of the boxes are completely broken. I read a lot of posts and didn't get a clue on how to fix.

 

Any ideas?

Share this post


Link to post
Share on other sites

This is a great contribution.

 

But did anyone get this to work with credit cards?

 

I keep getting the following error:

 

Fatal error: Using $this when not in object context in <Directory>\account_history_info.php on line 392

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

×