Results 1 to 2 of 2

display shipping total in Admin/orders

This is a discussion on display shipping total in Admin/orders within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Hi All, I'm trying to display the shipping total for each order along with the other information in the Admin ...

      
  1. #1
    osCMax Development Team
    Join Date
    Nov 2002
    Location
    Orlando
    Posts
    433
    Rep Power
    14


    Default display shipping total in Admin/orders

    Hi All,

    I'm trying to display the shipping total for each order along with the other information in the Admin panel/customers/orders. However, I'm not succeeding and the best I can get is a "S" being displayed on each line for shipping. I've tried a number of different things but I'm not getting it, so I'm hoping for a little help from someone that understands coding better.

    Here's what I have at this time in orders.php
    Code:
    <?php  
    $shipping_total = 'SELECT `value` FROM `orders_total` WHERE `class` LIKE \'ot_shipping\' ORDER BY `orders_id` DESC';
    ?>	
    
                    <td class="dataTableContent" align="center"><?php echo strip_tags ($shipping_total['value']) ?></td>
    That query will work to display in PhPmyAdmin, but it's not working here.

    Any guidance is appreciated.
    John

  2. #2
    osCMax Development Team
    Join Date
    Nov 2002
    Location
    Orlando
    Posts
    433
    Rep Power
    14


    Default RE: display shipping total in Admin/orders

    I don't know if anyone else wants to display this but this is how I got it to work

    Code:
    <?php  
    $shipping_total = "SELECT text".
                      "  FROM orders_total".
    				  " WHERE class = 'ot_shipping' ".
    				  "   AND orders_id = ". $orders['orders_id'].
    				  " ORDER BY orders_id DESC";
    	$shipping_query_01 = tep_db_query($shipping_total);
        $shipping_query_02 = tep_db_fetch_array($shipping_query_01);
    ?>	
    
                    <td class="dataTableContent" align="center"><?php echo $shipping_query_02['text']; ?></td>
    John

Similar Threads

  1. Admin orders - Display more characters in Model# field??
    By JonCloud420 in forum osCMax v2 Features Discussion
    Replies: 1
    Last Post: 10-19-2006, 09:06 PM
  2. How do I display the Final Order Total?
    By mikestollov in forum osCommerce 2.2 Discussion
    Replies: 2
    Last Post: 03-21-2006, 03:55 PM
  3. Help! Lost Shipping and Order Total modules..
    By Picman in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 05-22-2004, 07:34 PM
  4. shipping total help
    By Raysworld in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 03-02-2004, 08:10 AM
  5. Displaying ONLY item total but not currency in cart display
    By humbags in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 07-12-2003, 03:41 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •