Ultimate CSV Importer - Version 5.3.6

Version Description

Download this release

Release Info

Developer smackcoders
Plugin Icon 128x128 Ultimate CSV Importer
Version 5.3.6
Comparing to
See all releases

Code changes from version 5.3.5 to 5.3.6

Readme.txt CHANGED
@@ -2,11 +2,11 @@
2
  Contributors: smackcoders, smacksupport
3
  Donate link: https://www.paypal.me/smackcoders
4
  Tags: csv, csv import, csv importer, import, import csv, import seo, import woocommerce, acf, excel, spreadsheet
5
- Requires at least: 4.1
6
- Tested up to: 4.9.6
7
  Requires PHP: 5.2.4 or above
8
- Stable tag: 5.3.5
9
- Version: 5.3.5
10
  Author: smackcoders
11
  Author URI: http://profiles.wordpress.org/smackcoders/
12
  License: GPLv2 or later
@@ -31,14 +31,15 @@ Please show your support for CSV Importer by giving it a [rating](https://wordpr
31
 
32
  = Highlighted Feature =
33
  * High performance rocket speed import.
34
- * Imports image from an external URLs.
35
- * Optimized database with enhanced duplicate handling.
36
  * Free add-on to [Import Users](https://wordpress.org/plugins/import-users/) to upload user info into WordPress
37
- * WordPress core custom fields can be dynamically registered on the flow of import.
38
  * Post type import with terms & taxonomies with any of depth of parent-child values.
39
- * Can be used in WordPress multisite.
40
- * Post Type import along with multi category & multi tag.
41
- * CSV with any delimiter in UTF-8 format can be imported.
 
42
 
43
  = Note =
44
  * Featured image from password protected image location can't be imported.
@@ -47,7 +48,9 @@ Please show your support for CSV Importer by giving it a [rating](https://wordpr
47
  [youtube https://www.youtube.com/watch?v=Uho22R0BCHQ&feature=youtu.be]
48
 
49
  = Ultimate CSV Importer PRO =
50
- CSV Importer PRO has all the features of WP Ultimate CSV Importer and it is extended with a lot of features that enables to import, schedule, update and export CSV files. The import details over a year is in dashboard chart to easily track the site updates in a fraction of a second. Any changes like modifying existing content or appending new content can be done in simple update flow. You can also update or import periodically with scheduler. The update or schedule is done with the templates which is created with mapped fields in the mapping section of the import. The export option enables to export the imported modules as CSV based on the filters.
 
 
51
 
52
  = Supported Modules To Import and Export =
53
  * Core Module - Post, Page, Custom Post, Comments, Category, Tags, Users, Customer Reviews.
@@ -60,16 +63,17 @@ CSV Importer PRO has all the features of WP Ultimate CSV Importer and it is exte
60
  * Custom Post - CustomPress, Types, Pods, CPT UI, CCTM & default WordPress Custom Post.
61
 
62
  = Highlighted Feature of PRO =
63
- * Import image from external URL along with the advanced SEO option.
64
- * Rename featured image loaded from external URL.
65
- * Import CSV from FTP and SFTP location.
66
- * WPML & qTranslate X add-on support.
67
- * Supports WooCommerce product import along with 6 WooCommerce add-on.
68
- * Imports products of MarketPress Lite & PRO version add-on.
 
 
69
  * Registers Custom Fields of ACF (FREE & Pro), Types, Pods and WordPress fields in the flow of import.
70
- * Imported modules can be managed in the File manager.
71
- * Detailed logs are maintained in the Log manager.
72
- * Duplicate handling with any of the WordPress field.
73
  * Import all the supported features of CSV Importer plugin with [Rest API](https://www.smackcoders.com/document/wp-ultimate-csv-importer-rest-api.html?utm_source=web&utm_campaign=readme&utm_medium=wp_org).
74
  * Extendable for your needs with [API](https://www.smackcoders.com/document/docs/api/classes/SmackUCI_API.html?utm_source=web&utm_campaign=readme&utm_medium=wp_org).
75
 
@@ -122,6 +126,11 @@ The importer supports [default WordPress Text and Text area fields](https://www.
122
  For more FAQ, you can refer [here](https://www.smackcoders.com/wordpress-products-faq.html?utm_source=wp_org&utm_campaign=readme&utm_medium=faq).
123
 
124
  == Changelog ==
 
 
 
 
 
125
  = 5.3.5 =
126
  * Added: Support for serialized data import.
127
  * Added: Compatibility for WordPress 4.9.6
@@ -487,6 +496,8 @@ For more FAQ, you can refer [here](https://www.smackcoders.com/wordpress-product
487
  * Initial release version. Tested and found works well without any issues.
488
 
489
  == Upgrade Notice ==
 
 
490
  = 5.3.5 =
491
  * Upgrade now to get support for serialized data import and compatibility for WordPress 4.9.6
492
  = 5.3.4 =
2
  Contributors: smackcoders, smacksupport
3
  Donate link: https://www.paypal.me/smackcoders
4
  Tags: csv, csv import, csv importer, import, import csv, import seo, import woocommerce, acf, excel, spreadsheet
5
+ Requires at least: 4.5
6
+ Tested up to: 4.9.8
7
  Requires PHP: 5.2.4 or above
8
+ Stable tag: 5.3.6
9
+ Version: 5.3.6
10
  Author: smackcoders
11
  Author URI: http://profiles.wordpress.org/smackcoders/
12
  License: GPLv2 or later
31
 
32
  = Highlighted Feature =
33
  * High performance rocket speed import.
34
+ * Imports images from an external URLs mentioned in CSV files.
35
+ * Import with enhanced duplicate handling to optimize your database.
36
  * Free add-on to [Import Users](https://wordpress.org/plugins/import-users/) to upload user info into WordPress
37
+ * WordPress core custom fields can be dynamically registered on the flow of CSV import.
38
  * Post type import with terms & taxonomies with any of depth of parent-child values.
39
+ * WP Ultimate CSV Importer can be used in WordPress multisite.
40
+ * Post Type CSV import along with multi category & multi tag.
41
+ * Import CSV with any delimiter in UTF-8 format can be imported.
42
+ * Free export add-on to [export](https://wordpress.org/plugins/wp-ultimate-exporter/) all your WP content in CSV file.
43
 
44
  = Note =
45
  * Featured image from password protected image location can't be imported.
48
  [youtube https://www.youtube.com/watch?v=Uho22R0BCHQ&feature=youtu.be]
49
 
50
  = Ultimate CSV Importer PRO =
51
+ CSV Importer PRO has all the features of WP Ultimate CSV Importer and it is extended with a lot of features that enables to import, schedule(recurring import), update and export CSV files. All import details over a year is in dashboard chart to easily track the WordPress site updates in a fraction of a second. Any changes like modifying existing WP content or appending new content can be done in simple update flow. WP Ultimate CSV Importer can also update or import the WP content from any CSV file periodically with scheduler. The update or Scheduled import (recurring import) is done with the templates which is created with mapped fields in the mapping section of WP Ultimate CSV importer. The export option enables to export the imported modules as CSV, XLS, XML and JSON based on the filters.
52
+
53
+ Import of CSV involves few simple steps. Choose your CSV file to import. Map your CSV fields with WP fields with two different mapping Advanced Mode (Automap fields, if your CSV header same as that of WP header) or Drag & Drop Mode (More intuitive drag & drop mapping). Media Handling to optimize your image import. Finally, import all your CSV content in just a click inside your WordPress.
54
 
55
  = Supported Modules To Import and Export =
56
  * Core Module - Post, Page, Custom Post, Comments, Category, Tags, Users, Customer Reviews.
63
  * Custom Post - CustomPress, Types, Pods, CPT UI, CCTM & default WordPress Custom Post.
64
 
65
  = Highlighted Feature of PRO =
66
+ * CSV Import - WP Ultimate CSV Importer support the import of any CSV or XML file content into WordPress
67
+ * Import from different location - WP Ultimate CSV Importer provides four different options (Desktop, FTP/ SFTP, URL and Server) to upload your CSV file.
68
+ * Import image - Use the images from external URL in your CSV file and import all images inside WordPress along with the advanced SEO option to add alt text with WP Ultimate CSV Importer. You can also rename the featured image loaded from external URL.
69
+ * More optimized import process - Advanced duplicate handling in WP Ultimate CSV Importer lets you to handle duplicates with any WP fields as primary field, and eliminate duplicate entries in WordPress.
70
+ * Scheduled / Recurring Import - WP Ultimate CSV Importer can check for updates and run import periodically without any manual interaction.
71
+ * Multilingual import - Easy to run multilingual website with WP Ultimate CSV Importer with the support for the import of WPML & qTranslate X add-on.
72
+ * WP Ultimate CSV Importer supports WooCommerce product import along with 6 WooCommerce add-on.
73
+ * Import products of MarketPress Lite & PRO version add-on.
74
  * Registers Custom Fields of ACF (FREE & Pro), Types, Pods and WordPress fields in the flow of import.
75
+ * All imported modules are managed in the Importer File manager.
76
+ * Complete import history i.e. detailed logs are maintained in the Log manager.
 
77
  * Import all the supported features of CSV Importer plugin with [Rest API](https://www.smackcoders.com/document/wp-ultimate-csv-importer-rest-api.html?utm_source=web&utm_campaign=readme&utm_medium=wp_org).
78
  * Extendable for your needs with [API](https://www.smackcoders.com/document/docs/api/classes/SmackUCI_API.html?utm_source=web&utm_campaign=readme&utm_medium=wp_org).
79
 
126
  For more FAQ, you can refer [here](https://www.smackcoders.com/wordpress-products-faq.html?utm_source=wp_org&utm_campaign=readme&utm_medium=faq).
127
 
128
  == Changelog ==
129
+ = 5.3.6 =
130
+ * Added: Compatibility for WordPress 4.9.8
131
+ * Added: Import Post parent import with Post Title
132
+ * Fixed: Post export redirection issue.
133
+ * Fixed: Post slug import in drag and drop method.
134
  = 5.3.5 =
135
  * Added: Support for serialized data import.
136
  * Added: Compatibility for WordPress 4.9.6
496
  * Initial release version. Tested and found works well without any issues.
497
 
498
  == Upgrade Notice ==
499
+ = 5.3.6 =
500
+ * Upgrade now to get Post parent import with Post title and compatibility for WordPress 4.9.8
501
  = 5.3.5 =
502
  * Upgrade now to get support for serialized data import and compatibility for WordPress 4.9.6
503
  = 5.3.4 =
assets/js/ultimate-importer.js CHANGED
@@ -1631,8 +1631,7 @@ function igniteExport() {
1631
  jQuery("a#download_file_link").css('display', '');
1632
  jQuery("#download_file").css('display', '');
1633
  jQuery('#download_file').prop('disabled', false);
1634
- //jQuery("a#download_file_link").attr("href", response.exported_file);
1635
- jQuery("a#download_file_link").attr("href", 'admin.php?page=sm-uci-export&exportType=export-with-filters&export_file='+response.exported_file);
1636
  jQuery('#offset').val(response.new_offset);
1637
  if (parseInt(response.total_row_count) < parseInt(response.new_offset)) {
1638
  jQuery('#wpwrap').waitMe('hide');
1631
  jQuery("a#download_file_link").css('display', '');
1632
  jQuery("#download_file").css('display', '');
1633
  jQuery('#download_file').prop('disabled', false);
1634
+ jQuery("a#download_file_link").attr("href", response.exported_file);
 
1635
  jQuery('#offset').val(response.new_offset);
1636
  if (parseInt(response.total_row_count) < parseInt(response.new_offset)) {
1637
  jQuery('#wpwrap').waitMe('hide');
includes/class-uci-helper.php CHANGED
@@ -1927,6 +1927,21 @@ $currentMapping = $this->generateDataArrayBasedOnGroups( $available_groups_type,
1927
  // Initiate the action to insert / update the record
1928
  if ($mode == 'Insert') {
1929
  unset($data_array['ID']);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1930
  $retID = wp_insert_post($data_array); // Insert the core fields for the specific post type.
1931
 
1932
  if(is_wp_error($retID) || $retID == '') {
1927
  // Initiate the action to insert / update the record
1928
  if ($mode == 'Insert') {
1929
  unset($data_array['ID']);
1930
+ foreach($data_array as $data)
1931
+ {
1932
+ if($data_array['post_slug']) {
1933
+ $data_array['post_name']=$data_array['post_slug'];
1934
+ unset($data_array['post_slug']);
1935
+ }
1936
+ }
1937
+ if(!intval($data_array['post_parent'])){
1938
+ $pquery = "select * from $wpdb->posts where post_title = '{$data_array['post_parent']}' and post_status != 'trash'";
1939
+
1940
+
1941
+ $post = $wpdb->get_results($pquery,ARRAY_A);
1942
+
1943
+ $data_array['post_parent']=$post[0]['ID'];
1944
+ }
1945
  $retID = wp_insert_post($data_array); // Insert the core fields for the specific post type.
1946
 
1947
  if(is_wp_error($retID) || $retID == '') {
index.php CHANGED
@@ -2,7 +2,7 @@
2
  /******************************
3
  * Plugin Name: WP Ultimate CSV Importer
4
  * Description: Seamlessly create posts, custom posts, pages, media, SEO and more from your CSV data with ease.
5
- * Version: 5.3.5
6
  * Author: smackcoders
7
  * Author URI: http://www.smackcoders.com/wp-ultimate-csv-importer-pro.html?utm_source=plugin&utm_campaign=csv_importer_pro&utm_medium=wordpress
8
  * Text Domain: wp-ultimate-csv-importer
@@ -56,7 +56,7 @@ if ( ! class_exists( 'SM_WPUltimateCSVImporter' ) ) :
56
  */
57
  class SM_WPUltimateCSVImporter {
58
 
59
- public $version = '5.3.5';
60
 
61
  /**
62
  * The single instance of the class.
2
  /******************************
3
  * Plugin Name: WP Ultimate CSV Importer
4
  * Description: Seamlessly create posts, custom posts, pages, media, SEO and more from your CSV data with ease.
5
+ * Version: 5.3.6
6
  * Author: smackcoders
7
  * Author URI: http://www.smackcoders.com/wp-ultimate-csv-importer-pro.html?utm_source=plugin&utm_campaign=csv_importer_pro&utm_medium=wordpress
8
  * Text Domain: wp-ultimate-csv-importer
56
  */
57
  class SM_WPUltimateCSVImporter {
58
 
59
+ public $version = '5.3.6';
60
 
61
  /**
62
  * The single instance of the class.