Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding Info to admin/orders.php


bobg7

Recommended Posts

Posted

I would like to add the shipping method to display when I'm viewing admin/orders.php so I can see what shipping method select. I have already edited it so I can see the title but need help extracting the data do display. Here is a quick shot of what I have already:

 

status.gif

 

What is the code I need to add to admin/orders.php so it will pull the details from TABLE_SHIPPING_DETAILS shipping_method.

 

Thanks in advance.

 

Bob G.

Installed Contributions: CCGV, Close Popup, Dynamic Meta Tags, Easy Populate, Froogle Data Feeder, Google Position, Infobox Header Entire Row, Live Support for OSC, PayPal Seal with CC images, Report_m Sales, Shop by Price Revised, SQL Updater, Who's Online Enhancement, Footer, GNA EP Assistant and still going.

Posted

in the admin\orders.php right below this:

 

$contents[] = array('text' => '<br>' . TEXT_INFO_PAYMENT_METHOD . ' ' . $oInfo->payment_method);

 

you add:

		$shipping_method_query = tep_db_query("select title from " . TABLE_ORDERS_TOTAL . " where class = 'ot_shipping' and orders_id= '" . $oInfo->orders_id . "'");
	if( $shipping_method = tep_db_fetch_array($shipping_method_query) ) {
	  $contents[] = array('text' => '<br>' . TEXT_INFO_SHIPPING_METHOD . ' '  . $shipping_method['title']);
	}

 

Just set the header string in the language file.

Posted

Perfect, just what I was looking for, thanks for your help. :thumbsup:

Installed Contributions: CCGV, Close Popup, Dynamic Meta Tags, Easy Populate, Froogle Data Feeder, Google Position, Infobox Header Entire Row, Live Support for OSC, PayPal Seal with CC images, Report_m Sales, Shop by Price Revised, SQL Updater, Who's Online Enhancement, Footer, GNA EP Assistant and still going.

Archived

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

×
×
  • Create New...