Skip to content

Instantly share code, notes, and snippets.

@jonathandavis
Last active December 17, 2015 19:58
Show Gist options
  • Save jonathandavis/5663871 to your computer and use it in GitHub Desktop.
Save jonathandavis/5663871 to your computer and use it in GitHub Desktop.
<?php
ob_start();
?>
<h5><?php _e('Using Advanced Order Search','Shopp'); ?></h5>
<table border="0" class="advsearch">
<tr><td><strong><?php _e('Email','Shopp'); ?>:</strong></td><td>help.desk@shopplugin.net</td></tr>
<tr><td><strong><?php _e('Transaction ID','Shopp'); ?>:</strong></td><td>txn:95M27911DT480180V</td></tr>
<tr><td><strong><?php _e('Gateway','Shopp'); ?>:</strong></td><td>gateway:"paypal express"<br />gateway:firstdata</td></tr>
<tr><td><strong><?php _e('Credit Card Type','Shopp'); ?>:</strong></td><td>cardtype:visa</td></tr>
<tr><td><strong><?php _e('Company','Shopp'); ?>:</strong></td><td>company:"Ingenesis Limited"<br />company:automattic</td></tr>
<tr><td><strong><?php _e('Address (lines 1 or 2)','Shopp'); ?>:</strong></td><td>address:"1 main st"</td></tr>
<tr><td><strong><?php _e('City','Shopp'); ?>:</strong></td><td>city:"san jose"<br />city:columbus</td></tr>
<tr><td><strong><?php _e('State/Province','Shopp'); ?>:</strong></td><td>state:"new york"<br />province:ontario</td></tr>
<tr><td><strong><?php _e('Zip/Postal Codes','Shopp'); ?>:</strong></td><td>zip:95131<br />postcode:M1P1C0</td></tr>
<tr><td><strong><?php _e('Country','Shopp'); ?>:</strong></td><td>country:US</td></tr>
</table>
<?php
$advancedsearch = ob_get_contents();
ob_end_clean();
get_current_screen()->add_help_tab( array(
'id' => 'overview',
'title' => __('Overview'),
'content' =>
'<p>' . __( 'The order management system in Shopp gives you access to your store’s order history and allows you to move orders through a custom order processing workflow.', 'Shopp' ) . '</p>' .
'<p>' . __( 'As orders are placed by customers, they will appear in your Order Manager. You can view orders in different order processing states using the Order Status Menu. The total number of orders for a status are listed beside the label. You can also filter orders by date ranges and searching.', 'Shopp' ) . '</p>'
) );
get_current_screen()->add_help_tab( array(
'id' => 'filtering',
'title' => __('Filtering', 'Shopp'),
'content' => '<p>' . __( 'To filter orders by date, click the drop-down menu initially labelled Show All Orders. Selecting a date range option will reveal the start date and end date fields showing the exact date range for the chosen preset range. Click the Filter button to filter orders by the given date range.', 'Shopp' ) . '</p>'
) );
get_current_screen()->add_help_tab( array(
'id' => 'advanced-search',
'title' => __('Advanced Search'),
'content' => $advancedsearch
) );
get_current_screen()->set_help_sidebar(
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
'<p>' . __( '<a href="' . SHOPP_DOCS . '/orders-customers/managing-orders/" target="_blank">Shopp User Guide</a>' ) . '</p>' .
'<p>' . __( '<a href="' . SHOPP_COMMUNITY . '/support/" target="_blank">Community Forums</a>' ) . '</p>' .
'<p>' . __( '<a href="' . SHOPP_SUPPORT . '/support/" target="_blank">Shopp Support Help Desk</a>' ) . '</p>'
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment