Order Status Page

Where can I customize the info shown in the Order Status page?

  • Timothy Bowers

    karlalopez

    Where can I customize the info shown in the Order Status page?

    What are you trying to customise? The CSS?

    If so then you can do that through the themes CSS.

    If you mean the shipping status then thats done through Manage Orders:

    /wp-admin/edit.php?post_type=product&page=marketpress-orders

    Admin --> Products --> Manage Orders.

    If you mean something else then please elaborate further.

    Take care.

  • Timothy Bowers

    Out of interest why would you not want people to see how they paid for that item?

    Or where you shipped it to?

    Open file:

    /marketpress/marketpress-includes/template-functions.php

    Around line 858 just remove this:

    ?>
          </ul>
    
          <h3><?php _e('Payment Information:', 'mp'); ?></h3>
          <ul>
            <li>
              <?php _e('Payment Method:', 'mp'); ?>
              <strong><?php echo $order->mp_payment_info['gateway_public_name']; ?></strong>
            </li>
            <li>
              <?php _e('Payment Type:', 'mp'); ?>
              <strong><?php echo $order->mp_payment_info['method']; ?></strong>
            </li>
            <li>
              <?php _e('Transaction ID:', 'mp'); ?>
              <strong><?php echo $order->mp_payment_info['transaction_id']; ?></strong>
            </li>
            <li>
              <?php _e('Payment Total:', 'mp'); ?>
              <strong><?php echo $mp->format_currency($order->mp_payment_info['currency'], $order->mp_payment_info['total']) . ' ' . $order->mp_payment_info['currency']; ?></strong>
            </li>
          </ul>

    That will rid you of the Payment Info.

    An then the same file, around line 954:

    <?php if (!defined('MP_HIDE_ORDERSTATUS_SHIPPING')) { ?>
          <h3><?php _e('Shipping Information:', 'mp'); ?></h3>
          <table>
            <tr>
          	<td align="right"><?php _e('Full Name:', 'mp'); ?></td><td>
            <?php echo esc_attr($order->mp_shipping_info['name']); ?></td>
          	</tr>
    
          	<tr>
          	<td align="right"><?php _e('Address:', 'mp'); ?></td>
            <td><?php echo esc_attr($order->mp_shipping_info['address1']); ?></td>
          	</tr>
    
            <?php if ($order->mp_shipping_info['address2']) { ?>
          	<tr>
          	<td align="right"><?php _e('Address 2:', 'mp'); ?></td>
            <td><?php echo esc_attr($order->mp_shipping_info['address2']); ?></td>
          	</tr>
            <?php } ?>
    
          	<tr>
          	<td align="right"><?php _e('City:', 'mp'); ?></td>
            <td><?php echo esc_attr($order->mp_shipping_info['city']); ?></td>
          	</tr>
    
          	<?php if ($order->mp_shipping_info['state']) { ?>
          	<tr>
          	<td align="right"><?php _e('State/Province/Region:', 'mp'); ?></td>
            <td><?php echo esc_attr($order->mp_shipping_info['state']); ?></td>
          	</tr>
            <?php } ?>
    
          	<tr>
          	<td align="right"><?php _e('Postal/Zip Code:', 'mp'); ?></td>
            <td><?php echo esc_attr($order->mp_shipping_info['zip']); ?></td>
          	</tr>
    
          	<tr>
          	<td align="right"><?php _e('Country:', 'mp'); ?></td>
            <td><?php echo $mp->countries[$order->mp_shipping_info['country']]; ?></td>
          	</tr>
    
            <?php if ($order->mp_shipping_info['phone']) { ?>
          	<tr>
          	<td align="right"><?php _e('Phone Number:', 'mp'); ?></td>
            <td><?php echo esc_attr($order->mp_shipping_info['phone']); ?></td>
          	</tr>
            <?php } ?>
    
            <?php if (isset($order->mp_shipping_info['tracking_num'])) { ?>
          	<tr>
          	<td align="right"><?php _e('Tracking Number:', 'mp'); ?></td>
            <td><?php echo mp_tracking_link($order->mp_shipping_info['tracking_num'], $order->mp_shipping_info['method']); ?></td>
          	</tr>
            <?php } ?>
          </table>
          <?php } ?>

    And that will remove the Shipping info.

    You will need to make this edit everytime you update MarketPress to a new version.

    Take care.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.