Version Description
- Fixed price conversation
Download this release
Release Info
Developer | soflyy |
Plugin | Import Products from any XML or CSV to WooCommerce |
Version | 1.1.3 |
Comparing to | |
See all releases |
Code changes from version 1.1.2 to 1.1.3
- models/import/record.php +15 -10
- plugin.php +2 -2
- readme.txt +4 -1
models/import/record.php
CHANGED
@@ -1259,15 +1259,20 @@ class PMWI_Import_Record extends PMWI_Model_Record {
|
|
1259 |
|
1260 |
}
|
1261 |
|
1262 |
-
function prepare_price( $price ){
|
1263 |
-
|
1264 |
-
|
1265 |
-
|
1266 |
-
|
1267 |
-
|
1268 |
-
|
1269 |
-
|
1270 |
-
|
1271 |
-
|
|
|
|
|
|
|
|
|
|
|
1272 |
}
|
1273 |
}
|
1259 |
|
1260 |
}
|
1261 |
|
1262 |
+
function prepare_price( $price ){
|
1263 |
+
|
1264 |
+
$price = preg_replace("/[^0-9\.,]/","", $price);
|
1265 |
+
|
1266 |
+
if ( preg_match("%^[0-9,]+(\.[0-9]{1,}){1}$%", $price)) {
|
1267 |
+
$price = str_replace(",", "", $price);
|
1268 |
+
}
|
1269 |
+
elseif ( preg_match("%^[0-9\.]+(\,[0-9]{1,}){1}$%", $price)) {
|
1270 |
+
$price = str_replace(",", ".", str_replace(".", "", $price));
|
1271 |
+
}
|
1272 |
+
else{
|
1273 |
+
$price = str_replace(",", ".", $price);
|
1274 |
+
}
|
1275 |
+
|
1276 |
+
return number_format($price, 2, '.', '');
|
1277 |
}
|
1278 |
}
|
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.3
|
7 |
Author: Soflyy
|
8 |
*/
|
9 |
/**
|
24 |
*/
|
25 |
define('PMWI_PREFIX', 'pmwi_');
|
26 |
|
27 |
+
define('PMWI_FREE_VERSION', '1.1.3');
|
28 |
|
29 |
define('PMWI_EDITION', 'free');
|
30 |
|
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Contributors: soflyy
|
3 |
Requires at least: 3.5
|
4 |
Tested up to: 3.8.1
|
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
|
@@ -73,6 +73,9 @@ The WooCommerce add-on will appear in the Step 4 of WP All Import.
|
|
73 |
|
74 |
== Changelog ==
|
75 |
|
|
|
|
|
|
|
76 |
= 1.1.2 =
|
77 |
* Compatibility with WooCommerce 2.1
|
78 |
* updated price filter
|
2 |
Contributors: soflyy
|
3 |
Requires at least: 3.5
|
4 |
Tested up to: 3.8.1
|
5 |
+
Stable tag: 1.1.3
|
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
|
73 |
|
74 |
== Changelog ==
|
75 |
|
76 |
+
= 1.1.3 =
|
77 |
+
* Fixed price conversation
|
78 |
+
|
79 |
= 1.1.2 =
|
80 |
* Compatibility with WooCommerce 2.1
|
81 |
* updated price filter
|