← Back
Editing: index.php
<?php if ( ! defined( 'ABSPATH' ) ) exit; // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals ?> <!-- Preload Images --> <img src="<?php echo esc_url(PMXI_Plugin::ROOT_URL . '/static/img/soflyy-logo.svg'); ?>" class="wpallimport-preload-image"/> <script type="text/javascript"> var plugin_url = '<?php echo esc_url(WP_ALL_IMPORT_ROOT_URL); ?>'; </script> <!-- Fullscreen drag overlay --> <div id="wpallimport-fullscreen-drag-overlay" class="wpallimport-fullscreen-drag-overlay" style="display: none;"> <div class="wpallimport-drag-message"> <span class="wpallimport-drag-icon"></span> <span class="wpallimport-drag-text"><?php esc_html_e('Drop your file anywhere to upload', 'wp-all-import'); ?></span> </div> </div> <table class="wpallimport-layout wpallimport-step-1"> <tr> <td class="left"> <div class="wpallimport-wrapper"> <h2 class="wpallimport-wp-notices"></h2> <div class="wpallimport-header"> <div class="wpallimport-logo"></div> <div class="wpallimport-title"> <h2><?php esc_html_e('New Import', 'wp-all-import'); ?></h2> </div> <?php echo wp_kses_post(apply_filters('wpallimport_links_block', ''));?> </div> <div class="clear"></div> <?php if ($this->errors->get_error_codes()): ?> <?php $this->error() ?> <?php endif ?> <?php //do_action('pmxi_choose_file_header'); ?> <form method="post" class="wpallimport-choose-file" enctype="multipart/form-data" autocomplete="off"> <div class="wpallimport-upload-resource-step-one"> <input type="hidden" name="is_submitted" value="1" /> <div class="clear"></div> <?php do_action('pmxi_import_options_before'); ?> <div class="wpallimport-import-types"> <?php // phpcs:ignore WordPress.Security.NonceVerification.Recommended ?> <?php if (empty($_GET['deligate'] ?? '')): ?> <h2><?php esc_html_e('First, specify how you want to import your data', 'wp-all-import'); ?></h2> <?php else: ?> <h2 style="margin-bottom: 10px;"><?php esc_html_e('First, specify previously exported file', 'wp-all-import'); ?></h2> <h2 class="wp_all_import_subheadline"><?php esc_html_e('The data in this import file can be modified, but the structure of the file (column/element names) should not change.', 'wp-all-import'); ?></h2> <?php endif; ?> <div id="wpallimport-drag-drop-area" class="wpallimport-drag-drop-area"> <a class="wpallimport-import-from wpallimport-upload-type <?php echo ('upload' == $post['type']) ? 'selected' : '' ?>" rel="upload_type" id="file_upload_type" href="javascript:void(0);"> <span class="wpallimport-icon"></span> <div class="wpallimport-text-content"> <span class="wpallimport-icon-label"><?php esc_html_e('Upload a file', 'wp-all-import'); ?></span> <span class="wpallimport-helper-text"><?php esc_html_e('Or simply drag and drop', 'wp-all-import'); ?></span> </div> </a> </div> <a class="wpallimport-import-from wpallimport-url-type <?php echo ('url' == $post['type'] || 'ftp' == $post['type']) ? 'selected' : '' ?>" rel="url_type" href="javascript:void(0);"> <span class="wpallimport-icon"></span> <div class="wpallimport-text-content"> <span class="wpallimport-icon-label"><?php esc_html_e('Download a file', 'wp-all-import'); ?></span> <span class="wpallimport-helper-text"><?php esc_html_e('From FTP or any URL', 'wp-all-import'); ?></span> </div> </a> <a class="wpallimport-import-from wpallimport-file-type <?php echo 'file' == $post['type'] ? 'selected' : '' ?>" rel="file_type" href="javascript:void(0);"> <span class="wpallimport-icon"></span> <div class="wpallimport-text-content"> <span class="wpallimport-icon-label"><?php esc_html_e('Use existing file', 'wp-all-import'); ?></span> <span class="wpallimport-helper-text"><?php esc_html_e('Previously uploaded data', 'wp-all-import'); ?></span> </div> </a> </div> <input type="hidden" value="<?php echo esc_attr($post['type']); ?>" name="type"/> <div class="wpallimport-upload-type-container" rel="upload_type"> <div id="plupload-ui" class="wpallimport-file-type-options"> <div> <input type="hidden" name="filepath" value="<?php echo esc_attr($post['filepath']); ?>" id="filepath"/> <a id="select-files" href="javascript:void(0);" <?php if (empty($post['filepath'])):?>style="display:none;"<?php endif; ?> /><?php esc_html_e('Click here to select file from your computer...', 'wp-all-import'); ?></a> <div id="progressbar" class="wpallimport-progressbar"> <?php if (!empty($post['filepath'])):?> <span><?php esc_html_e('Upload Complete', 'wp-all-import');?></span> - <?php echo esc_html(basename($post['filepath'])); ?> <?php endif; ?> </div> <div id="progress" class="wpallimport-progress" <?php if (!empty($post['filepath'])):?>style="visibility: visible; display: block;"<?php endif; ?>> <?php if (!empty($post['filepath'])):?> <div class="wpallimport-upload-process ui-progressbar ui-widget ui-widget-content ui-corner-all" id="upload_process" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="100"><div class="ui-progressbar-value ui-widget-header ui-corner-left ui-corner-right" style="width: 100%;"></div></div> <?php else: ?> <div id="upload_process" class="wpallimport-upload-process"></div> <?php endif; ?> </div> </div> </div> <div class="wpallimport-note" style="margin: 0 auto; font-size: 13px;"><span></span></div> </div> <div class="wpallimport-upload-type-container" rel="url_type"> <div class="wpallimport-choose-data-type"> <a class="wpallimport-download-from rad4 wpallimport-download-file-from-url <?php if ($post['type'] == 'url') echo 'wpallimport-download-from-checked'; ?>" rel="url" href="javascript:void(0);"> <span class="wpallimport-download-from-title"><?php esc_html_e('From URL', 'wp-all-import'); ?></span> <span class="wpallimport-download-from-arrow"></span> </a> <a class="wpallimport-download-from rad4 wpallimport-download-file-from-ftp <?php if ($post['type'] == 'ftp') echo 'wpallimport-download-from-checked'; ?>" rel="ftp" href="javascript:void(0);"> <span class="wpallimport-download-from-title"><?php esc_html_e('From FTP/SFTP', 'wp-all-import'); ?></span> <span class="wpallimport-download-from-arrow"></span> </a> </div> </div> <div class="wpallimport-upload-type-container" rel="file_type"> <?php $upload_dir = wp_upload_dir(); ?> <div class="wpallimport-file-type-options"> <?php // Free version - don't scan for files, just show empty selector with upgrade notice $files_directory = DIRECTORY_SEPARATOR . PMXI_Plugin::FILES_DIRECTORY . DIRECTORY_SEPARATOR; $local_files = array(); // Empty array for free version $sizes = array(); // Empty array for free version ?> <script type="text/javascript"> var existing_file_sizes = []; </script> <h2 class="wpallimport-file-selector-label"> <?php esc_html_e('Select Import File', 'wp-all-import'); ?> <?php /* translators: see placeholders in the string below */ $tooltip_text = sprintf(__('Upload files to <strong>%s</strong> and they will appear in this list', 'wp-all-import'), $upload_dir['basedir'] . $files_directory); ?> <a href="#" class="wpallimport-help" title="<?php echo esc_attr($tooltip_text); ?>" style="position: relative; top: -2px;">?</a> </h2> <select id="file_selector"> <option value=""><?php esc_html_e('Select a previously uploaded file', 'wp-all-import'); ?></option> <!-- Free version - no files listed, upgrade required --> </select> <input type="hidden" name="file" value="<?php echo esc_attr($post['file']); ?>"/> <div class="wpallimport-note" style="margin: 20px auto 0; font-size: 13px;"> <?php echo wp_kses( /* translators: %s: directory path where files are uploaded */ sprintf(__('Files uploaded to <strong>%s</strong> will appear in this list.', 'wp-all-import'), esc_html($upload_dir['basedir'] . $files_directory)), array('strong' => array()) ); ?> <div class="wpallimport-free-edition-notice"> <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839966&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-99&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=use-existing-file" target="_blank" class="upgrade_link"><?php esc_html_e('Upgrade to the Pro edition of WP All Import to Use Existing Files', 'wp-all-import');?></a> <p><?php esc_html_e('If you already own it, remove the free edition and install the Pro edition.', 'wp-all-import'); ?></p> </div> </div> </div> </div> <div id="wpallimport-url-upload-status"></div> <?php // phpcs:ignore WordPress.Security.NonceVerification.Recommended ?> <?php if (empty($_GET['deligate'] ?? '')): ?> <div class="wpallimport-download-resource-step-two"> <div class="wpallimport-download-resource wpallimport-download-resource-step-two-url"> <div class="wpallimport-file-type-options"> <span class="wpallimport-input-icon wpallimport-url-icon"></span> <input type="text" class="regular-text" name="url" value="<?php echo ( ! empty($post['url'])) ? esc_attr($post['url']) : ''; ?>" placeholder="<?php esc_attr_e('Enter a web address to download the file from...', 'wp-all-import'); ?>"/> <a class="wpallimport-download-from-url rad4" href="javascript:void(0);"><?php esc_html_e('Download', 'wp-all-import'); ?></a> <span class="img_preloader" style="top:0; left: 5px; visibility: hidden; display: inline;"></span> </div> <div class="wpallimport-note" style="font-size: 13px; margin: 20px auto 40px;"> <?php echo wp_kses(__('<strong>Hint:</strong> After you create this import, you can schedule it to run automatically, on a pre-defined schedule, with cron jobs.', 'wp-all-import'), array('strong' => array())); ?> <!-- Free restriction notice for URL download --> <div class="wpallimport-free-edition-notice" style="display:none;"> <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839966&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-99&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=download-from-url" target="_blank" class="upgrade_link"><?php esc_html_e('Upgrade to the Pro edition of WP All Import to Download from URL', 'wp-all-import');?></a> <p><?php esc_html_e('If you already own it, remove the free edition and install the Pro edition.', 'wp-all-import'); ?></p> </div> <span></span> </div> <input type="hidden" name="downloaded" value="<?php echo esc_attr($post['downloaded']); ?>"/> <input type="hidden" name="template" value="<?php echo esc_attr($post['template']); ?>"/> <input type="hidden" name="bundle_xpath" value="<?php echo esc_attr($post['bundle_xpath'] ?? ''); ?>"/> </div> <div class="wpallimport-download-resource wpallimport-download-resource-step-two-ftp"> <div class="wpallimport-file-type-options"> <span class="wpallimport-input-icon wpallimport-ftp-host-icon"></span> <input type="text" class="regular-text" name="ftp_host" value="<?php echo ( ! empty($post['ftp_host'])) ? esc_attr($post['ftp_host']) : ''; ?>" placeholder="<?php esc_attr_e('FTP server address', 'wp-all-import'); ?>"/> <a class="wpallimport-help" href="#help" style="position: relative; top: -2px;" title="<?php esc_attr_e('The server address of your FTP/SFTP server. This can be an IP address or domain name. You do not need to include the connection protocol. For example, files.example.com or 127.0.0.1', 'wp-all-import'); ?>">?</a> </div> <div class="wpallimport-file-type-options"> <span class="wpallimport-input-icon wpallimport-ftp-port-icon"></span> <input type="text" class="regular-text" name="ftp_port" value="<?php echo ( ! empty($post['ftp_port'])) ? esc_attr($post['ftp_port']) : ''; ?>" placeholder="<?php esc_attr_e('FTP port', 'wp-all-import'); ?>"/> <a class="wpallimport-help" href="#help" style="position: relative; top: -2px;" title="<?php esc_attr_e('The port that your server uses. FTP usually uses port 21, SFTP usually uses port 22', 'wp-all-import'); ?>">?</a> </div> <div class="wpallimport-file-type-options"> <span class="wpallimport-input-icon wpallimport-ftp-username-icon"></span> <input type="text" class="regular-text" name="ftp_username" value="<?php echo ( ! empty($post['ftp_username'])) ? esc_attr($post['ftp_username']) : ''; ?>" placeholder="<?php esc_attr_e('FTP username', 'wp-all-import'); ?>"/> <a class="wpallimport-help" href="#help" style="position: relative; top: -2px;" title="<?php esc_attr_e('If you don\'t know your FTP/SFTP username, contact the host of the server.', 'wp-all-import'); ?>">?</a> </div> <div class="wpallimport-file-type-options"> <span class="wpallimport-input-icon wpallimport-ftp-password-icon"></span> <input type="text" class="regular-text" name="ftp_password" value="<?php echo ( ! empty($post['ftp_password'])) ? esc_attr($post['ftp_password']) : ''; ?>" placeholder="<?php esc_attr_e('FTP password', 'wp-all-import'); ?>"/> <a class="wpallimport-help" href="#help" style="position: relative; top: -2px;" title="<?php esc_attr_e('These passwords are stored in plaintext in your WordPress database. Ideally, the user account should only have read access to the files that you are importing. <br/><br/>Even if the password is correct, sometimes your host will require SFTP connections to use an SSH key and will deny connection attempts using passwords. If you\'re unable to login and you are sure the password is correct, contact the host of the server.', 'wp-all-import'); ?>">?</a> </div> <div class="wpallimport-file-type-options"> <span class="wpallimport-input-icon wpallimport-ftp-private-key-icon"></span> <textarea class="wpai-ftp-text-area" name="ftp_private_key" value="<?php echo ( ! empty($post['ftp_private_key'])) ? esc_attr($post['ftp_private_key']) : ''; ?>" placeholder="<?php esc_attr_e('SFTP Private Key', 'wp-all-import'); ?>"></textarea> <a class="wpallimport-help" id="wpai-ftp-text-area-help" href="#help" style="position: relative; top: -2px;" title="<?php esc_attr_e('If you don\'t know if you need an SFTP Private Key, contact the host of the server.', 'wp-all-import'); ?>">?</a> </div> <div style="display:none;"> <input type="hidden" name="ftp_root" value="<?php echo ( ! empty( $post['ftp_root'] ) ) ? esc_attr( $post['ftp_root'] ) : ''; ?>"/> </div> <div class="wpallimport-file-type-options ftp_path"> <input type="text" class="regular-text" name="ftp_path" value="<?php echo ( ! empty( $post['ftp_path'] ) ) ? esc_attr( $post['ftp_path'] ) : ''; ?>" placeholder="<?php esc_attr_e('FTP file path', 'wp-all-import'); ?>"/> <a class="wpallimport-ftp-builder rad4 button wpallimport-large-button wpai-ftp-select-file-button" href="javascript:void(0);"> <div class="easing-spinner" style="display: none; left: 36px !important; top: 2px;"> <div class="double-bounce1"></div> <div class="double-bounce2"></div> </div> <?php esc_html_e( 'Select File', 'wp-all-import' ); ?> </a> </div> <div style="display:block;position:relative;width:75%;margin:auto;"> <span class="wpallimport-input-icon wpallimport-ftp-path-icon"></span> <a class="wpallimport-help" href="#help" style="position: absolute;top: -32px;right: -30px;" title="<?php esc_attr_e( 'The path to the file you want to import. In case multiple files are found, only the first will be downloaded. Examples: /home/ftpuser/import.csv or import-files/{newest.csv}', 'wp-all-import' ); ?>">?</a> </div> <span class="wpallimport-ftp-builder-wrap"> <div class="wpallimport-ftp-connection-builder" id="wpallimport-ftp-connection-builder"> </div> <input type="hidden" id="wpai-ftp-browser-nonce" value="<?php echo esc_attr(wp_create_nonce( 'wpai-ftp-browser' )); ?>"/> </span> <div class="rad4 first-step-errors wpai-ftp-connection-error"> <div class="wpallimport-notify-wrapper"> <div class="error-headers exclamation"> <h3><?php esc_html_e('Unable to Connect', 'wp-all-import');?></h3> <br/> <span id="wpai-ftp-connection-error-message"></span> </div> </div> </div> <br/> <div class="wpallimport-note" style="margin: 20px auto 0; font-size: 13px;"> <div class="wpallimport-free-edition-notice" style="display:none;"> <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839966&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-99&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=download-from-url" target="_blank" class="upgrade_link"><?php esc_html_e('Upgrade to the Pro edition of WP All Import to Download from FTP/SFTP', 'wp-all-import');?></a> <p><?php esc_html_e('If you already own it, remove the free edition and install the Pro edition.', 'wp-all-import'); ?></p> </div> </div> <div class="input" style="display:none;"> <a class="wpallimport-download-from-url rad4" href="javascript:void(0);"><?php esc_html_e('Download', 'wp-all-import'); ?></a> <span class="img_preloader" style="top:0; left: 5px; visibility: hidden; display: inline;"></span> </div> </div> </div> <div class="wpallimport-upload-resource-step-two"> <div class="wpallimport-choose-post-type"> <input type="hidden" name="wizard_type" value="new"/> <h2><?php esc_html_e('Create or modify...', 'wp-all-import'); ?></h2> <?php $all_types = array(); $sort_order = array(); $hiddenPosts = array( 'attachment', 'revision', 'nav_menu_item', 'shop_webhook', 'import_users', 'wp-types-group', 'wp-types-user-group', 'wp-types-term-group', 'acf-field', 'acf-field-group', 'custom_css', 'customize_changeset', 'oembed_cache', 'wp_block', 'user_request', 'scheduled-action', 'wp_navigation' ); $custom_types = get_post_types(array('_builtin' => true), 'objects') + get_post_types(array('_builtin' => false, 'show_ui' => true), 'objects'); foreach ($custom_types as $key => $ct) { if (in_array($key, $hiddenPosts)) unset($custom_types[$key]); } $custom_types = apply_filters( 'pmxi_custom_types', $custom_types, 'custom_types' ); $sorted_cpt = array(); foreach ($custom_types as $key => $cpt){ $sorted_cpt[$key] = $cpt; // Put users & comments & taxonomies after Pages if ( ! empty($custom_types['page']) && $key == 'page' || empty($custom_types['page']) && $key == 'post' ){ $sorted_cpt['taxonomies'] = new stdClass(); $sorted_cpt['taxonomies']->labels = new stdClass(); $sorted_cpt['taxonomies']->labels->name = __('Taxonomies','wp-all-import'); $sorted_cpt['import_users'] = new stdClass(); $sorted_cpt['import_users']->labels = new stdClass(); $sorted_cpt['import_users']->labels->name = __('Users','wp-all-import'); $sorted_cpt['comments'] = new stdClass(); $sorted_cpt['comments']->labels = new stdClass(); $sorted_cpt['comments']->labels->name = __('Comments','wp-all-import'); break; } } if ( class_exists('WooCommerce') && ! post_type_exists('shop_customer') ) { $custom_types['shop_customer'] = new stdClass(); $custom_types['shop_customer']->labels = new stdClass(); $custom_types['shop_customer']->labels->name = __('WooCommerce Customers', 'wp-all-import'); } $order = array('shop_order', 'shop_coupon', 'shop_customer', 'product'); foreach ($order as $cpt){ if (!empty($custom_types[$cpt])) $sorted_cpt[$cpt] = $custom_types[$cpt]; } uasort($custom_types, "wp_all_import_cmp_custom_types"); foreach ($custom_types as $key => $cpt) { if (empty($sorted_cpt[$key])){ $sorted_cpt[$key] = $cpt; } } $hidden_post_types = get_post_types(array('_builtin' => false, 'show_ui' => false), 'objects'); foreach ($hidden_post_types as $key => $ct) { if (in_array($key, $hiddenPosts)) unset($hidden_post_types[$key]); } $hidden_post_types = apply_filters( 'pmxi_custom_types', $hidden_post_types, 'hidden_post_types' ); ?> <div class="wpallimport-choose-import-direction"> <select name="custom_type_selector" id="custom_type_selector" class="wpallimport-post-types"> <?php // ***************************************************** // **************** START CPT LOOP ********************* // ***************************************************** ?> <?php $known_imgs = array( 'post', 'page', 'import_users', 'users', 'comments', 'taxonomies' ); // The WooCommerce icons come from WooCommerce's icon font, which is not loaded without WooCommerce. if ( class_exists( 'WooCommerce' ) ) { $known_imgs = array_merge( $known_imgs, array( 'product', 'shop_order', 'shop_coupon', 'shop_customer', 'woo_reviews' ) ); } $all_posts = array_merge( $sorted_cpt, $hidden_post_types ); $all_posts = apply_filters( 'pmxi_custom_types', $all_posts, 'all_types' ); $ordered_posts = array( 'post', 'page', 'product', 'shop_order', 'shop_coupon', 'woo_reviews', 'shop_customer', 'import_users', 'taxonomies', 'comments', 'gf_entries'); foreach ( $all_posts as $key => $post_obj ) { if ( ! in_array( $key, $ordered_posts ) ) { array_push( $ordered_posts, $key ); } } $order_arr = apply_filters( 'pmxi_post_list_order', $ordered_posts ); $image_data = apply_filters( 'wp_all_import_post_type_image', array() ); foreach ( $order_arr as $key => $post_name ) { if ( array_key_exists( $post_name, $all_posts ) ) { $post_obj = $all_posts[ $post_name ]; if ( in_array( $post_name, $known_imgs ) ) { $image_src = 'dashicon-' . $post_name; } else { $image_src = 'dashicon-cpt'; } if ( ! empty( $image_data ) && array_key_exists( $post_name, $image_data ) ) { $custom_img_defined = true; } else { $custom_img_defined = false; } $original_image_src = $image_src; $cpt = $post_name; $cpt_label = $post_obj->labels->name; $custom_selected_post = apply_filters( 'wpai_custom_selected_post', false, $post, $cpt, 'step1' ); $img_to_echo = 'dashicon '; if ( $custom_img_defined === true ) { $img_to_echo .= $image_data[ $cpt ]['image']; } else { $img_to_echo .= $image_src; } ?> <option value="<?php echo esc_attr($cpt); ?>" data-imagesrc="<?php echo esc_attr($img_to_echo); ?>" <?php if ( $custom_selected_post === true ):?>selected="selected"<?php else: if ( $cpt == $post['custom_type'] ):?>selected="selected"<?php endif; endif; ?>><?php echo esc_html($cpt_label); ?></option> <?php } } ?> </select> <?php // ***************************************************** // **************** FINISH CPT LOOP ******************** // ***************************************************** ?> <?php if ( ! class_exists('PMUI_Plugin') ): ?> <div class="wpallimport-upgrade-notice" rel="import_users"> <p><?php esc_html_e('The User Add-On is Required to Import Users', 'wp-all-import'); ?></p> <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839963&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-169&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-users" target="_blank" class="upgrade_link"><?php esc_html_e('Purchase the User Add-On', 'wp-all-import');?></a> </div> <?php endif; ?> <?php if ( class_exists('WooCommerce') && ! class_exists('PMWI_Plugin') ): ?> <?php if ( '' !== wp_all_import_missing_woocommerce_companion_message('product') ): ?> <?php echo wp_all_import_missing_woocommerce_companion_notice('product'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- escaped in the helper ?> <?php else: ?> <div class="wpallimport-upgrade-notice" rel="product"> <p><?php esc_html_e('The WooCommerce Add-On is Required to Import Products', 'wp-all-import'); ?></p> <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839961&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-169&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-wooco-products" target="_blank" class="upgrade_link"><?php esc_html_e('Purchase the WooCommerce Add-On', 'wp-all-import');?></a> </div> <?php endif; ?> <?php endif; ?> <?php echo wp_all_import_missing_woocommerce_companion_notice('shop_order'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- escaped in the helper ?> <?php if ( class_exists('WooCommerce') && ! wp_all_import_is_woocommerce_addon_pro_active() ): ?> <?php if ( ! class_exists('PMWOI_Plugin') ): ?> <div class="wpallimport-upgrade-notice" rel="shop_order"> <?php if (class_exists('PMWI_Plugin') && PMWI_EDITION == 'free'): ?> <p><?php esc_html_e('The Pro version of the WooCommerce Add-On is required to Import Orders, but you have the free version installed.', 'wp-all-import'); ?></p> <?php else: ?> <p><?php esc_html_e('The WooCommerce Add-On Pro is Required to Import Orders', 'wp-all-import'); ?></p> <?php endif; ?> <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839961&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-169&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-wooco-orders" target="_blank" class="upgrade_link"><?php esc_html_e('Purchase the WooCommerce Add-On', 'wp-all-import');?></a> </div> <?php endif; ?> <div class="wpallimport-upgrade-notice" rel="shop_coupon"> <?php if (class_exists('PMWI_Plugin') && PMWI_EDITION == 'free'): ?> <p><?php esc_html_e('The Pro version of the WooCommerce Add-On is required to Import Coupons, but you have the free version installed.', 'wp-all-import'); ?></p> <?php else: ?> <p><?php esc_html_e('The WooCommerce Add-On Pro is Required to Import Coupons', 'wp-all-import'); ?></p> <?php endif; ?> <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839961&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-169&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-wooco-coupons" target="_blank" class="upgrade_link"><?php esc_html_e('Purchase the WooCommerce Add-On', 'wp-all-import');?></a> </div> <?php endif; ?> <div class="wpallimport-upgrade-notice" rel="taxonomies"> <p><?php esc_html_e('WP All Import Pro is Required to Import Taxonomies', 'wp-all-import'); ?></p> <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839966&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-99&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-taxonomies" target="_blank" class="upgrade_link"><?php esc_html_e('Purchase WP All Import Pro', 'wp-all-import');?></a> </div> <div class="wpallimport-upgrade-notice" rel="comments"> <p><?php esc_html_e('WP All Import Pro is Required to Import Comments', 'wp-all-import'); ?></p> <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839966&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-99&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-comments" target="_blank" class="upgrade_link"><?php esc_html_e('Purchase WP All Import Pro', 'wp-all-import');?></a> </div> <div class="wpallimport-upgrade-notice" rel="woo_reviews"> <p><?php esc_html_e('The WooCommerce Import Package is Required to Import Reviews', 'wp-all-import'); ?></p> <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839961&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-169&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-reviews" target="_blank" class="upgrade_link"><?php esc_html_e('Purchase the WooCommerce Import Package', 'wp-all-import');?></a> </div> <?php if ( class_exists('WooCommerce') && ! post_type_exists('shop_customer') ): ?> <div class="wpallimport-upgrade-notice" rel="shop_customer"> <p><?php esc_html_e('User Import Add-On Pro is required to import WooCommerce Customers.', 'wp-all-import'); ?></p> <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839963&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-169&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-customers" target="_blank" class="upgrade_link"><?php esc_html_e('Purchase User Import Add-On Pro', 'wp-all-import');?></a> </div> <?php endif; ?> <?php do_action('wp_all_import_entity_type_bundle', $post, false); ?> </div> </div> </div> <?php endif; ?> </div> <div class="rad4 first-step-errors error-upload-rejected"> <div class="wpallimport-notify-wrapper"> <div class="error-headers exclamation"> <h3><?php esc_html_e('File upload rejected by server', 'wp-all-import');?></h3> <h4><?php esc_html_e("Contact your host and have them check your server's error log.", "wp-all-import"); ?></h4> </div> </div> <a class="button wpallimport-large-button wpallimport-notify-read-more" href="https://www.wpallimport.com/documentation/troubleshooting/problems-with-import-files/?utm_source=import-plugin-free&utm_medium=error&utm_campaign=docs" target="_blank"><?php esc_html_e('Read More', 'wp-all-import');?></a> </div> <div class="rad4 first-step-errors error-file-validation" <?php if ( ! empty($upload_validation) ): ?> style="display:block;" <?php endif; ?>> <div class="wpallimport-notify-wrapper"> <div class="error-headers exclamation"> <h3><?php esc_html_e('There\'s a problem with your import file', 'wp-all-import');?></h3> <h4> <?php if ( ! empty($upload_validation) ): $file_type = strtoupper(pmxi_getExtension($post['file'])); /* translators: %s: file type extension */ printf(esc_html__('Please verify that the file you using is a valid %s file.', 'wp-all-import'), esc_html($file_type)); endif; ?> </h4> </div> </div> <a class="button wpallimport-large-button wpallimport-notify-read-more" href="https://www.wpallimport.com/documentation/troubleshooting/problems-with-import-files/#invalid?utm_source=import-plugin-free&utm_medium=error&utm_campaign=docs" target="_blank"><?php esc_html_e('Read More', 'wp-all-import');?></a> </div> <div class="wpallimport-submit-buttons"> <div class="wpallimport-submit-button-container" style="display:flex; justify-content: center; padding:20px; gap:10px;"> <input type="hidden" name="custom_type" value="<?php echo esc_attr($post['custom_type']);?>"> <input type="hidden" name="is_submitted" value="1" /> <input type="hidden" name="auto_generate" value="0" /> <input type="hidden" name="go_to_create_filters" value="0" /> <?php wp_nonce_field('choose-file', '_wpnonce_choose-file'); ?> <a href="javascript:void(0);" class="back rad3 auto-generate-template" style="float:none; background: #e4e6e6; padding: 0 50px;"><?php esc_html_e('Skip to Import Settings', 'wp-all-import'); ?></a> <div style="display: flex; flex-direction: column; align-items: center;"> <a href="javascript:void(0);" class="back rad3 create-filters-step" style="float:none; background: #e4e6e6; padding: 0 50px;"><?php esc_html_e('Create Filters', 'wp-all-import'); ?></a> <span style="display: block; text-align: center; margin-top: 5px; font-size: 10px; font-weight:500; color:#777;"><?php esc_html_e('Limit What\'s Imported', 'wp-all-import'); ?></span> </div> <div style="display: flex; flex-direction: column; align-items: center;"> <input type="submit" class="button wpallimport-large-button" value="<?php esc_attr_e('Set Up Import', 'wp-all-import') ?>" id="advanced_upload"/> <span style="display: block; text-align: center; margin-top: 5px; font-size: 10px; font-weight:500; color:#777;"><?php esc_html_e('Import Everything', 'wp-all-import'); ?></span> </div> </div> </div> <table><tr><td class="wpallimport-note"></td></tr></table> </form> <div class="wpallimport-display-columns wpallimport-margin-top-forty"> <?php echo wp_kses_post(apply_filters('wpallimport_footer', '')); ?> </div> </div> </td> </tr> </table>
Save File
Cancel