Version Description
- Compatibility with WooCommerce 2.1
- updated price filter
Download this release
Release Info
Developer | soflyy |
Plugin | Import Products from any XML or CSV to WooCommerce |
Version | 1.1.2 |
Comparing to | |
See all releases |
Code changes from version 1.1.1 to 1.1.2
- models/import/record.php +9 -1
- plugin.php +2 -2
- readme.txt +10 -4
- static/css/admin.css +7 -0
models/import/record.php
CHANGED
@@ -1260,6 +1260,14 @@ class PMWI_Import_Record extends PMWI_Model_Record {
|
|
1260 |
}
|
1261 |
|
1262 |
function prepare_price( $price ){
|
1263 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1264 |
}
|
1265 |
}
|
1260 |
}
|
1261 |
|
1262 |
function prepare_price( $price ){
|
1263 |
+
$price = preg_replace("/[^0-9\.,]/","", $price);
|
1264 |
+
|
1265 |
+
if ( preg_match("%^[0-9,]+(\.[0-9]{2})?$%", $price)) {
|
1266 |
+
return str_replace(",", "", $price);
|
1267 |
+
}
|
1268 |
+
if ( preg_match("%^[0-9.]+(\,[0-9]{2})?$%", $price)) {
|
1269 |
+
return str_replace(",", ".", str_replace(".", "", $price));
|
1270 |
+
}
|
1271 |
+
return $price;
|
1272 |
}
|
1273 |
}
|
plugin.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP All Import - WooCommerce Add-On
|
4 |
Plugin URI: http://www.wpallimport.com/
|
5 |
Description: An extremely easy, drag & drop importer to import WooCommerce simple products. A paid upgrade is available for premium support and support for Variable, Grouped, and External/Affiliate products
|
6 |
-
Version: 1.1.
|
7 |
Author: Soflyy
|
8 |
*/
|
9 |
/**
|
@@ -24,7 +24,7 @@ define('PMWI_FREE_ROOT_URL', rtrim(plugin_dir_url(__FILE__), '/'));
|
|
24 |
*/
|
25 |
define('PMWI_PREFIX', 'pmwi_');
|
26 |
|
27 |
-
define('PMWI_FREE_VERSION', '1.1.
|
28 |
|
29 |
define('PMWI_EDITION', 'free');
|
30 |
|
3 |
Plugin Name: WP All Import - WooCommerce Add-On
|
4 |
Plugin URI: http://www.wpallimport.com/
|
5 |
Description: An extremely easy, drag & drop importer to import WooCommerce simple products. A paid upgrade is available for premium support and support for Variable, Grouped, and External/Affiliate products
|
6 |
+
Version: 1.1.2
|
7 |
Author: Soflyy
|
8 |
*/
|
9 |
/**
|
24 |
*/
|
25 |
define('PMWI_PREFIX', 'pmwi_');
|
26 |
|
27 |
+
define('PMWI_FREE_VERSION', '1.1.2');
|
28 |
|
29 |
define('PMWI_EDITION', 'free');
|
30 |
|
readme.txt
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
=== Import Products from any XML or CSV to WooCommerce ===
|
2 |
Contributors: soflyy
|
3 |
Requires at least: 3.5
|
4 |
-
Tested up to: 3.8
|
5 |
-
Stable tag: 1.1.
|
6 |
License: GPLv2 or later
|
7 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
8 |
Tags: woocommerce xml import, woocommerce csv import, woocommerce, import, xml, csv, wp all import
|
@@ -54,8 +54,6 @@ You need the WooCommerce add-on if you need to:
|
|
54 |
* Import CSV to WooCommerce
|
55 |
* Are frustrated with the limitations of the official WooThemes Product CSV Import Suite
|
56 |
|
57 |
-
Follow [@WPAllImport](http://www.twitter.com/WPAllImport) on Twitter.
|
58 |
-
|
59 |
== Installation ==
|
60 |
|
61 |
First, install [WP All Import](http://wordpress.org/plugins/wp-all-import "WordPress XML & CSV Import").
|
@@ -75,6 +73,14 @@ The WooCommerce add-on will appear in the Step 4 of WP All Import.
|
|
75 |
|
76 |
== Changelog ==
|
77 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
= 1.1.0 =
|
79 |
* Compatibility with WP 3.8
|
80 |
|
1 |
=== Import Products from any XML or CSV to WooCommerce ===
|
2 |
Contributors: soflyy
|
3 |
Requires at least: 3.5
|
4 |
+
Tested up to: 3.8.1
|
5 |
+
Stable tag: 1.1.2
|
6 |
License: GPLv2 or later
|
7 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
8 |
Tags: woocommerce xml import, woocommerce csv import, woocommerce, import, xml, csv, wp all import
|
54 |
* Import CSV to WooCommerce
|
55 |
* Are frustrated with the limitations of the official WooThemes Product CSV Import Suite
|
56 |
|
|
|
|
|
57 |
== Installation ==
|
58 |
|
59 |
First, install [WP All Import](http://wordpress.org/plugins/wp-all-import "WordPress XML & CSV Import").
|
73 |
|
74 |
== Changelog ==
|
75 |
|
76 |
+
= 1.1.2 =
|
77 |
+
* Compatibility with WooCommerce 2.1
|
78 |
+
* updated price filter
|
79 |
+
|
80 |
+
= 1.1.1 =
|
81 |
+
* Compatibility with WooCommerce 2.1
|
82 |
+
* CSS fixes
|
83 |
+
|
84 |
= 1.1.0 =
|
85 |
* Compatibility with WP 3.8
|
86 |
|
static/css/admin.css
CHANGED
@@ -25,6 +25,13 @@
|
|
25 |
position: relative;
|
26 |
top: -2px;
|
27 |
width: auto;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
}
|
29 |
.pmxi_plugin #woocommerce-product-data{
|
30 |
overflow: hidden;
|
25 |
position: relative;
|
26 |
top: -2px;
|
27 |
width: auto;
|
28 |
+
margin-left: 0;
|
29 |
+
}
|
30 |
+
.pmxi_plugin .woocommerce_options_panel label, .pmxi_plugin .woocommerce_options_panel legend{
|
31 |
+
margin: 0;
|
32 |
+
}
|
33 |
+
.pmxi_plugin .woocommerce_options_panel p.form-field{
|
34 |
+
padding-left: 20px !important;
|
35 |
}
|
36 |
.pmxi_plugin #woocommerce-product-data{
|
37 |
overflow: hidden;
|