Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Urgent Please Help. Order Number and Order Date Inside of Invoice?


RC Heli Pilot

Recommended Posts

Posted

Hi.

 

How do I add the Order Number and Order Date to the Invoice & Packing Slip without using a Contribution?

Theres got to be an easier way of doing this then adding a new contribution.

 

I've already added the Contribution named "Order Editor 5.0.62" and the searches that i have found always come up with the Contribution Fancier Invoice & Packingslip v1.0 , Invoice date , Random Order Number and Many other search results having nothing to do with my search. I can't get the Fancier Invoice & Packingslip to work and it seems to screw up the Invoice Editor that i have installed already or i can't get the page to load.

 

 

Is there a way to add the Date and the Order Number to the Invoice without a Contribution?

 

Thanks

John

Posted

If all you want are the order number and date then try this.

In admin/invoice.php find

 

	  <tr>
	<td class="main"><b><?php echo ENTRY_PAYMENT_METHOD; ?></b></td>
	<td class="main"><?php echo $order->info['payment_method']; ?></td>
  </tr>

 

Right after that add

 

	  <tr>
	<td class="main"><b><?php echo ENTRY_PAYMENT_DATE; ?></b></td>
	<td class="main"><?php echo tep_date_short($order->info['date_purchased']); ?></td>
  </tr>
  <tr>
	<td class="main"><b><?php echo ENTRY_PAYMENT_ORDER_NUMBER; ?></b></td>
	<td class="main"><?php echo $oID; ?></td>
  </tr>

 

In admin/includes/languages/english/invoice.php add

 

define('ENTRY_PAYMENT_DATE', 'Invoice Date:');
define('ENTRY_PAYMENT_ORDER_NUMBER', 'Order #:');

 

Do the same for the packingslip page.

Posted
If all you want are the order number and date then try this.

In admin/invoice.php find

 

	  <tr>
	<td class="main"><b><?php echo ENTRY_PAYMENT_METHOD; ?></b></td>
	<td class="main"><?php echo $order->info['payment_method']; ?></td>
  </tr>

 

Right after that add

 

	  <tr>
	<td class="main"><b><?php echo ENTRY_PAYMENT_DATE; ?></b></td>
	<td class="main"><?php echo tep_date_short($order->info['date_purchased']); ?></td>
  </tr>
  <tr>
	<td class="main"><b><?php echo ENTRY_PAYMENT_ORDER_NUMBER; ?></b></td>
	<td class="main"><?php echo $oID; ?></td>
  </tr>

 

In admin/includes/languages/english/invoice.php add

 

define('ENTRY_PAYMENT_DATE', 'Invoice Date:');
define('ENTRY_PAYMENT_ORDER_NUMBER', 'Order #:');

 

Do the same for the packingslip page.

 

 

bktrain,... :thumbsup:

Dude,... You So Totally Rock!

That is Exactly What I Wanted

 

Thank You So Much For Your Help.

I Have No Idea Why Those Little Things Wouldnt Be There Already But Now I Have Them.

 

Thank You So Much And +K (Positive Karma) To You For Your Help.

 

John.

  • 2 months later...
Posted

I found this very useful as well, works great on orders.php too

 

Thanks for the help!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...