Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do you display shipping cost seperate in admin?


10incher

Recommended Posts

In the Admin section on the Orders page under Order Totals, is there a way to display the shipping cost seperately for each order? Maybe have two columns, one showing the actual cost of the items, the other showing just the shipping costs (for each order). I have been searching through the forums and contributions but can't seem to find anything.

Link to comment
Share on other sites

  • 2 weeks later...

you can do it by creating an extra column for the listing to accommodate the shipping cost. Then you implement a query to retrieve it and display it during orders listing.

 

		$shipping_method_query = tep_db_query("select concat(title, ' ', text) as shipment from " . TABLE_ORDERS_TOTAL . " where class = 'ot_shipping' and orders_id= '" . $orders['orders_id']. "'");
	if( $shipping_method = tep_db_fetch_array($shipping_method_query) ) {
		echo $shipping_method['shipment'];
	} else {
		echo 'N/A';
	}

haven't tested it or anything but you can get an idea.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...