Example #1
0
 function woo_ce_manage_form()
 {
     global $woo_ce;
     $tab = false;
     if (isset($_GET['tab'])) {
         $tab = $_GET['tab'];
     }
     $url = add_query_arg('page', 'woo_ce');
     woo_ce_memory_prompt();
     woo_ce_fail_notices();
     include_once 'templates/admin/woo-admin_ce-export.php';
 }
Example #2
0
 function woo_ce_fail_notices()
 {
     woo_ce_memory_prompt();
     $troubleshooting_url = 'http://www.visser.com.au/documentation/store-exporter-deluxe/usage/';
     if (isset($_GET['failed'])) {
         $message = '';
         if (isset($_GET['message'])) {
             $message = urldecode($_GET['message']);
         }
         if ($message) {
             $message = __('A WordPress or server error caused the exporter to fail, the exporter was provided with a reason: ', 'woo_ce') . '<em>' . $message . '</em>' . ' (<a href="' . $troubleshooting_url . '" target="_blank">' . __('Need help?', 'woo_ce') . '</a>)';
         } else {
             $message = __('A WordPress or server error caused the exporter to fail, no reason was provided, please get in touch so we can reproduce and resolve this.', 'woo_ce') . ' (<a href="' . $troubleshooting_url . '" target="_blank">' . __('Need help?', 'woo_ce') . '</a>)';
         }
         woo_ce_admin_notice($message, 'error');
     }
     if (isset($_GET['empty'])) {
         $message = __('No export entries were found, please try again with different export filters.', 'woo_ce');
         woo_ce_admin_notice($message, 'error');
     }
     if (get_transient(WOO_CE_PREFIX . '_running')) {
         $message = __('A WordPress or server error caused the exporter to fail with a blank screen, this is either a memory or timeout issue, please get in touch so we can reproduce and resolve this.', 'woo_ce') . ' (<a href="' . $troubleshooting_url . '" target="_blank">' . __('Need help?', 'woo_ce') . '</a>)';
         woo_ce_admin_notice($message, 'error');
     }
 }