Marketpress Tracking Number Shipping company options

Hi! I'm wondering how I can add more options to the drop down list of companies in the "Manage Orders" page? I'm assuming I should just be able to add a company name and a website to link to somewhere?

  • digitsoft
    • The Crimson Coder

    It took me a while to figure out that you were talking about the order details area...heh. can add it in /plugins/marketpress/marketpress.php above line 4422 like this:
    <option value="other"<?php selected($order->mp_shipping_info['method'], 'MyShipping'); ?>><?php _e('MyShipping', 'mp'); ?></option>

    Then the drop down code area would look like this:

    <select name="mp_shipping_method">
    						<option value="other"><?php _e('Choose Method:', 'mp'); ?></option>
    						<option value="UPS"<?php selected($order->mp_shipping_info['method'], 'UPS'); ?>>UPS</option>
    						<option value="FedEx"<?php selected($order->mp_shipping_info['method'], 'FedEx'); ?>>FedEx</option>
    						<option value="USPS"<?php selected($order->mp_shipping_info['method'], 'USPS'); ?>>USPS</option>
    						<option value="DHL"<?php selected($order->mp_shipping_info['method'], 'DHL'); ?>>DHL</option>
    						<option value="other"<?php selected($order->mp_shipping_info['method'], 'other'); ?>><?php _e('Other', 'mp'); ?></option>
    <option value="other"<?php selected($order->mp_shipping_info['method'], 'MyShipping'); ?>><?php _e('MyShipping', 'mp'); ?></option>

    Just replace "MyShipping" (2 places) with what you want...

    I'll take a look and see if there's a better way to do this since upgrading would lose this...


  • clothncraft
    • Site Builder, Child of Zeus

    Hi Joe & Rob!

    I'm talking about here... image attached.

    Now I tried inserting the code and it sort of broke it. reimploaded the file from the latest download and that returned it to normal. Am I able to change the order and put my one up the top?

  • digitsoft
    • The Crimson Coder

    I just implemented it again and it works fine (pic attached)'s the whole code area:

    <h3><?php _e('Shipping Method & Tracking Number:', 'mp'); ?></h3>
    					<select name=&quot;mp_shipping_method&quot;>
    						<option value=&quot;other&quot;><?php _e('Choose Method:', 'mp'); ?></option>
    						<option value=&quot;MyShipping&quot;<?php selected($order->mp_shipping_info['method'], 'MyShipping'); ?>><?php _e('MyShipping', 'mp'); ?></option>
    						<option value=&quot;UPS&quot;<?php selected($order->mp_shipping_info['method'], 'UPS'); ?>>UPS</option>
    						<option value=&quot;FedEx&quot;<?php selected($order->mp_shipping_info['method'], 'FedEx'); ?>>FedEx</option>
    						<option value=&quot;USPS&quot;<?php selected($order->mp_shipping_info['method'], 'USPS'); ?>>USPS</option>
    						<option value=&quot;DHL&quot;<?php selected($order->mp_shipping_info['method'], 'DHL'); ?>>DHL</option>
    						<option value=&quot;other&quot;<?php selected($order->mp_shipping_info['method'], 'other'); ?>><?php _e('Other', 'mp'); ?></option>
    					<input type=&quot;text&quot; name=&quot;mp_tracking_number&quot; value=&quot;<?php esc_attr_e($order->mp_shipping_info['tracking_num']); ?>&quot; size=&quot;25&quot; />
    					<input type=&quot;submit&quot; name=&quot;add-tracking&quot; value=&quot;<?php _e('Save &raquo;', 'mp'); ?>&quot; /><?php if ($order->post_status == 'order_received' ||$order->post_status == 'order_paid') { ?><input type=&quot;submit&quot; name=&quot;add-tracking-shipped&quot; value=&quot;<?php _e('Save & Mark as Shipped &raquo;', 'mp'); ?>&quot; /><?php } ?>

  • aecnu
    • WP Unicorn

    Greetings clothncraft,

    It appears this particular topic is now resolved/closed, if you need any further assistance please let us know.

    If it wasn't resolved, or you have any more questions related to this thread, please feel free to post them below including any new symptoms or errors and tick the 'Mark as Not Resolved (re-open)' box below the post area (or else we'll miss it!)

    Thank you for being a WPMU Dev member!

    Cheers, Joe :slight_smile:

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.