Product Import Export for WooCommerce - Version 1.0.3

Version Description

  • Bug Fix: Sorting priority Set to ID by default while exporting.
Download this release

Release Info

Developer hikeforce
Plugin Icon 128x128 Product Import Export for WooCommerce
Version 1.0.3
Comparing to
See all releases

Code changes from version 1.0.2 to 1.0.3

images/stars.png ADDED
Binary file
includes/class-wf-prodimpexpcsv-admin-screen.php CHANGED
@@ -43,7 +43,6 @@ class WF_ProdImpExpCsv_Admin_Screen {
43
  * Admin Screen output
44
  */
45
  public function output() {
46
- //$tab = ! empty( $_GET['tab'] ) && $_GET['tab'] == 'export' ? 'export' : 'import';
47
  $tab = 'import';
48
  if( ! empty( $_GET['tab'] ) ) {
49
  if( $_GET['tab'] == 'export' ) {
@@ -53,6 +52,9 @@ class WF_ProdImpExpCsv_Admin_Screen {
53
  $tab = 'settings';
54
  }
55
  }
 
 
 
56
  include( 'views/html-wf-admin-screen.php' );
57
  }
58
 
43
  * Admin Screen output
44
  */
45
  public function output() {
 
46
  $tab = 'import';
47
  if( ! empty( $_GET['tab'] ) ) {
48
  if( $_GET['tab'] == 'export' ) {
52
  $tab = 'settings';
53
  }
54
  }
55
+ if( ! empty( $_POST['dismiss'] ) ) {
56
+ update_option("dismiss_rateus", 1);
57
+ }
58
  include( 'views/html-wf-admin-screen.php' );
59
  }
60
 
includes/exporter/class-wf-prodimpexpcsv-exporter.php CHANGED
@@ -131,8 +131,6 @@ class WF_ProdImpExpCsv_Exporter {
131
  'offset' => $current_offset
132
  ) );
133
 
134
-
135
- $product_args['orderby'] = 'post_parent';
136
 
137
  if ( $product_limit ) {
138
  $parent_ids = array_map( 'intval', explode( ',', $product_limit ) );
131
  'offset' => $current_offset
132
  ) );
133
 
 
 
134
 
135
  if ( $product_limit ) {
136
  $parent_ids = array_map( 'intval', explode( ',', $product_limit ) );
includes/views/import/html-wf-import-products.php CHANGED
@@ -43,4 +43,9 @@
43
  jQuery("#mylink").attr("href", '<?php echo $import_url ?>');
44
  }
45
  });
 
 
 
 
 
46
  </script>
43
  jQuery("#mylink").attr("href", '<?php echo $import_url ?>');
44
  }
45
  });
46
+ jQuery(document).on( 'click', '.notice-dismiss', function() {
47
+ jQuery(this).parents('div.rate-us:first').slideUp();
48
+ jQuery.post('admin.php?page=wf_woocommerce_csv_im_ex', {dismiss: true}, function (data) {
49
+ }, 'json');
50
+ });
51
  </script>
product-csv-import-export.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://hikeforce.com/product/product-import-export-plugin-for-woocom
5
  Description: Import and Export Products including Variations, From and To your WooCommerce Store.
6
  Author: HikeForce
7
  Author URI: http://www.hikeforce.com/
8
- Version: 1.0.2
9
  Text Domain: wf_csv_import_export
10
  */
11
 
@@ -36,6 +36,7 @@ if (in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', ge
36
 
37
  if ( is_admin() ) {
38
  add_action('admin_notices', array( $this, 'wf_product_ie_admin_notice'), 15);
 
39
  }
40
 
41
  add_filter( 'woocommerce_screen_ids', array( $this, 'woocommerce_screen_ids' ) );
@@ -81,7 +82,22 @@ if (in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', ge
81
  break;
82
  }
83
  }
84
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  /**
86
  * Add screen ID
87
  */
5
  Description: Import and Export Products including Variations, From and To your WooCommerce Store.
6
  Author: HikeForce
7
  Author URI: http://www.hikeforce.com/
8
+ Version: 1.0.3
9
  Text Domain: wf_csv_import_export
10
  */
11
 
36
 
37
  if ( is_admin() ) {
38
  add_action('admin_notices', array( $this, 'wf_product_ie_admin_notice'), 15);
39
+ add_action( 'admin_notices', array( $this, 'wf_rate_admin_notice'), 16);
40
  }
41
 
42
  add_filter( 'woocommerce_screen_ids', array( $this, 'woocommerce_screen_ids' ) );
82
  break;
83
  }
84
  }
85
+ function wf_rate_admin_notice() {
86
+ global $pagenow;
87
+ if(isset($_GET['page']) && $_GET['page'] === 'wf_woocommerce_csv_im_ex' && 'admin.php' === $pagenow){
88
+ if (!get_option('dismiss_rateus')){
89
+ ?>
90
+ <div id="dismiss_rateus" class="updated settings-error notice is-dismissible">
91
+ <p><a target="_blank" href="https://wordpress.org/support/view/plugin-reviews/product-import-export-for-woo#postform">
92
+ <?php _e('Did this plugin work for you?&nbsp; Please rate and contact us at <i>support@hikeforce.com</i> to get $10 off on your next purchase.', 'wf_csv_import_export'); ?></a>&nbsp;&nbsp;
93
+ <a target="_blank" class="button-primary" href="https://wordpress.org/support/view/plugin-reviews/product-import-export-for-woo#postform" ><?php _e('Review Now!' , 'wf_csv_import_export'); ?></a>
94
+ <a target="_blank" class="rate-star" href="https://wordpress.org/support/view/plugin-reviews/product-import-export-for-woo#postform"></a>&nbsp;&nbsp;
95
+ </p>
96
+ </div>
97
+ <?php
98
+ }
99
+ }
100
+ }
101
  /**
102
  * Add screen ID
103
  */
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: woocommerce import products, woocommerce export products, woocommerce export import products, export woocommerce products with images, woocommerce csv import variable products, woocommerce import products with attributes
5
  Requires at least: 3.0.1
6
  Tested up to: Latest
7
- Stable tag: 1.0.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -29,7 +29,7 @@ The WooCommerce Product Import Export Plugin takes CSV (Comma-Separated Values)
29
  You can create the CSV from scratch or you can export the product to get the format of CSV. You can use a spreadsheet program, such as Excel, or Google Spreadsheets for creating and modifying the CSV file. Save this file with extension .CSV. After entering all details about products in spreadsheet, you can import product to your online store. With this plugin, you can also export and download product details as a CSV file.
30
 
31
  = Premium version video demo =
32
- [youtube http://www.youtube.com/watch?v=UIXjwWUdqWc]
33
 
34
  <blockquote>
35
 
@@ -73,6 +73,8 @@ Yes. You can import or export product images along with other details
73
  2. Product Export Screen
74
 
75
  == Changelog ==
 
 
76
  = 1.0.2 =
77
  * Bug Fix: Improved parsing while importing product price with currency symbol and thousand separator.
78
  = 1.0.1 =
@@ -85,6 +87,8 @@ Yes. You can import or export product images along with other details
85
  * Import /Export Woocommerce Products.
86
 
87
  == Upgrade Notice ==
 
 
88
  = 1.0.2 =
89
  * Bug Fix: Improved parsing while importing product price with currency symbol and thousand separator.
90
  = 1.0.1 =
4
  Tags: woocommerce import products, woocommerce export products, woocommerce export import products, export woocommerce products with images, woocommerce csv import variable products, woocommerce import products with attributes
5
  Requires at least: 3.0.1
6
  Tested up to: Latest
7
+ Stable tag: 1.0.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
29
  You can create the CSV from scratch or you can export the product to get the format of CSV. You can use a spreadsheet program, such as Excel, or Google Spreadsheets for creating and modifying the CSV file. Save this file with extension .CSV. After entering all details about products in spreadsheet, you can import product to your online store. With this plugin, you can also export and download product details as a CSV file.
30
 
31
  = Premium version video demo =
32
+ [youtube http://www.youtube.com/watch?v=fBuf54rUakY&showinfo=0]
33
 
34
  <blockquote>
35
 
73
  2. Product Export Screen
74
 
75
  == Changelog ==
76
+ = 1.0.3 =
77
+ * Bug Fix: Sorting priority Set to ID by default while exporting.
78
  = 1.0.2 =
79
  * Bug Fix: Improved parsing while importing product price with currency symbol and thousand separator.
80
  = 1.0.1 =
87
  * Import /Export Woocommerce Products.
88
 
89
  == Upgrade Notice ==
90
+ = 1.0.3 =
91
+ * Bug Fix: Sorting priority Set to ID by default while exporting.
92
  = 1.0.2 =
93
  * Bug Fix: Improved parsing while importing product price with currency symbol and thousand separator.
94
  = 1.0.1 =
styles/wf-style.css CHANGED
@@ -93,4 +93,21 @@
93
  .woocommerce-message a.button-primary, .woocommerce-message button.button-primary{
94
  background: #0085ba none repeat scroll 0 0 !important;
95
  border-color: #0073aa #006799 #006799 !important;}
96
- .woocommerce-message{border-left-color:#46b450 !important;}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
  .woocommerce-message a.button-primary, .woocommerce-message button.button-primary{
94
  background: #0085ba none repeat scroll 0 0 !important;
95
  border-color: #0073aa #006799 #006799 !important;}
96
+ .woocommerce-message{border-left-color:#46b450 !important;}
97
+ .rate-star{
98
+ background: rgba(0, 0, 0, 0) url("../images/stars.png") no-repeat scroll 0 0;
99
+ display: inline-block;
100
+ height: 24px;
101
+ position: relative;
102
+ top: 10px;
103
+ width: 125px;
104
+ }
105
+ .rate-us{
106
+ background-color: #ffeeff;
107
+ border-color: #e6db55;
108
+ border-radius: 3px;
109
+ border-style: solid;
110
+ border-width: 1px;
111
+ margin: 15px 0;
112
+ padding: 0 0.6em;
113
+ }