Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Invoice Date


warrenerjm

Recommended Posts

Posted

Hi

 

I have searched & found out most of what I need! ;)

 

The date doesn't show though? :blink:

 

Can anyone see what i have done wrong please?

 

Part of admin/invoice.php

<?php
/*
 $Id: invoice.php,v 1.6 2003/06/20 00:37:30 hpdl 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');

 require(DIR_WS_CLASSES . 'currencies.php');
 $currencies = new currencies();

 $oID = tep_db_prepare_input($HTTP_GET_VARS['oID']);
 $orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where orders_id = '" . (int)$oID . "'");

 include(DIR_WS_CLASSES . 'order.php');
 $order = new order($oID);
 $date = date('d/m/y'); 
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">

<!-- body_text //-->
<table border="0" width="100%" cellspacing="0" cellpadding="2">
 <tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
	<td class="pageHeading"><?php echo nl2br(STORE_NAME_ADDRESS); ?></td>
	<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce', '204', '50'); ?></td>
  </tr>
</table></td>
 </tr>
 <tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="2">
  <tr>
	<td colspan="2"><?php echo tep_draw_separator(); ?></td>
  </tr>
  <tr>
	<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2">
	  <tr>
		<td class="main"><b><?php echo ENTRY_SOLD_TO; ?></b></td>
	  </tr>
	  <tr>
		<td class="main"><?php echo tep_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>'); ?></td>
	  </tr>
	  <tr>
		<td><?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td>
	  </tr>
	  <tr>
		<td class="main"><?php echo $order->customer['telephone']; ?></td>
	  </tr>
	  <tr>
		<td class="main"><?php echo '<a href="mailto:' . $order->customer['email_address'] . '"><u>' . $order->customer['email_address'] . '</u></a>'; ?></td>
	  </tr>
	</table></td>
	<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2">
	  <tr>
		<td class="main"><b><?php echo ENTRY_SHIP_TO; ?></b></td>
	  </tr>
	  <tr>
		<td class="main"><?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br>'); ?></td>
	  </tr>
	</table></td>
  </tr>
</table></td>
 </tr>
 <tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
 </tr>
 <tr>
<td><table border="0" cellspacing="0" cellpadding="2">
  <tr>
	<td class="main"><b><?php echo ENTRY_PAYMENT_METHOD; ?></b></td>
	<td class="main"><?php echo $order->info['payment_method']; ?></td>
  </tr>
  <tr>
	<td class="main"><b>Order #</b><?php echo $oID;?>  </td>
  </tr>
  <tr>
	<td class="main"><b><?php echo "Invoice Date: "; ?></b></td>
	<td class="main"><?php echo tep_date_short($order_query['date_purchased']); ?></td>
  </tr>

 

I have aslo changed the clour code for the .css but the invoice company address is still a grey colour? :(

 

TD.pageHeading, DIV.pageHeading {

font-family: Verdana, Arial, sans-serif;

font-size: 18px;

font-weight: bold;

color: #35459e;

}

 

Any help on this too would be great. :thumbsup:

 

I don't suppose I could have the name in one colour & the address in another? :-"

 

thanks

Julie

Posted

Hi

 

OK I have searched more & tried more variations but still no date appears.

 

Where does the email come from, because it has Order number: & Date ordered on? I may be able to pinch that code?????

 

Thanks

Julie

Posted

:(

 

Couldn't figure it out for tonights print run, but have collected a few more bits of info...if only O knew what to do with it!!!! >_<

 

admin/orders.php uses EMAIL_TEXT_DATE_ORDERED to get Sunday 06 April, 2008 but I don't think I can use that.

 

admin/includes/languages/english.php could change to

define('DATE_FORMAT_SHORT', '%d/%m/%Y'); // this is used for strftime()

 

but as I con't see the date I don't think that is the problem either!

 

This is the line that is not displaying the ordered date

 

		<td class="main"><?php echo tep_date_short($order_query['date_purchased']); ?></td>

 

Am I missing something please?

 

I have looked at the contributions too but couldn't find the simple solution.

 

thanks

Julie

Archived

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

×
×
  • Create New...