Version Description
(07.10.2020) = * Fix: Price, Sale Price & Weight getting set to blank when importing CSV * Fix: Minor fixes
Download this release
Release Info
Developer | storeapps |
Plugin | WooCommerce Stock Manager |
Version | 2.5.1 |
Comparing to | |
See all releases |
Code changes from version 2.5.0 to 2.5.1
- admin/includes/wcm-class-save.php +17 -13
- admin/views/import-export.php +2 -2
- public/class-stock-manager.php +1 -1
- readme.txt +5 -1
- woocommerce-stock-manager.php +2 -2
admin/includes/wcm-class-save.php
CHANGED
@@ -167,8 +167,6 @@ class WCM_Save {
|
|
167 |
|
168 |
if( isset( $data['weight'] ) ){
|
169 |
$_product->set_weight( $data['weight'] );
|
170 |
-
}else{
|
171 |
-
$_product->set_weight( '' );
|
172 |
}
|
173 |
|
174 |
/* if( !empty( $data['regular_price'] ) ){
|
@@ -181,18 +179,24 @@ class WCM_Save {
|
|
181 |
}
|
182 |
}
|
183 |
*/
|
184 |
-
if(
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
|
|
|
|
|
|
191 |
|
192 |
-
if(
|
193 |
-
|
194 |
-
|
195 |
-
|
|
|
|
|
|
|
196 |
}
|
197 |
|
198 |
$_product->save();
|
167 |
|
168 |
if( isset( $data['weight'] ) ){
|
169 |
$_product->set_weight( $data['weight'] );
|
|
|
|
|
170 |
}
|
171 |
|
172 |
/* if( !empty( $data['regular_price'] ) ){
|
179 |
}
|
180 |
}
|
181 |
*/
|
182 |
+
if( isset( $data['regular_price'] ) ) {
|
183 |
+
if( !empty( $data['regular_price'] ) ){
|
184 |
+
$_product->set_price( $data['regular_price'] );
|
185 |
+
$_product->set_regular_price( $data['regular_price'] );
|
186 |
+
}
|
187 |
+
else{
|
188 |
+
$_product->set_price( '' );
|
189 |
+
$_product->set_regular_price( '' );
|
190 |
+
}
|
191 |
+
}
|
192 |
|
193 |
+
if( isset( $data['sales_price'] ) ) {
|
194 |
+
if( !empty( $data['sales_price'] ) ){
|
195 |
+
$_product->set_sale_price( $data['sales_price'] );
|
196 |
+
}
|
197 |
+
else{
|
198 |
+
$_product->set_sale_price( '' );
|
199 |
+
}
|
200 |
}
|
201 |
|
202 |
$_product->save();
|
admin/views/import-export.php
CHANGED
@@ -227,8 +227,8 @@ jQuery( document ).ready(function() {
|
|
227 |
$manage_stock = stockautoUTF($data[3]);
|
228 |
$stock_status = stockautoUTF($data[4]);
|
229 |
$backorders = stockautoUTF($data[5]);
|
230 |
-
$stock = stockautoUTF($data[6]);
|
231 |
-
|
232 |
if($row != 1){
|
233 |
|
234 |
if( !empty( $product_id ) ){
|
227 |
$manage_stock = stockautoUTF($data[3]);
|
228 |
$stock_status = stockautoUTF($data[4]);
|
229 |
$backorders = stockautoUTF($data[5]);
|
230 |
+
$stock = stockautoUTF($data[6]);
|
231 |
+
|
232 |
if($row != 1){
|
233 |
|
234 |
if( !empty( $product_id ) ){
|
public/class-stock-manager.php
CHANGED
@@ -20,7 +20,7 @@ class Stock_Manager {
|
|
20 |
*
|
21 |
* @var string
|
22 |
*/
|
23 |
-
const VERSION = '2.5.
|
24 |
|
25 |
/**
|
26 |
* Plugin slug
|
20 |
*
|
21 |
* @var string
|
22 |
*/
|
23 |
+
const VERSION = '2.5.1';
|
24 |
|
25 |
/**
|
26 |
* Plugin slug
|
readme.txt
CHANGED
@@ -7,7 +7,7 @@ Tags: woocommerce, stock manager, stock management, inventory
|
|
7 |
Requires at least: 5.0.0
|
8 |
Tested up to: 5.5.1
|
9 |
Requires PHP: 5.6+
|
10 |
-
Stable tag: 2.5.
|
11 |
License: GPLv3
|
12 |
|
13 |
== Description ==
|
@@ -126,6 +126,10 @@ Be sure, that you have WooCommerce 3.5+ and WordPress 5.+
|
|
126 |
|
127 |
== Changelog ==
|
128 |
|
|
|
|
|
|
|
|
|
129 |
= 2.5.0 (03.10.2020) =
|
130 |
* Update: Compatibility with latest version of WordPress & WooCommerce
|
131 |
* Fix: Clicking on 'Variable product' in case of variable products breaking the Stock Manager page
|
7 |
Requires at least: 5.0.0
|
8 |
Tested up to: 5.5.1
|
9 |
Requires PHP: 5.6+
|
10 |
+
Stable tag: 2.5.1
|
11 |
License: GPLv3
|
12 |
|
13 |
== Description ==
|
126 |
|
127 |
== Changelog ==
|
128 |
|
129 |
+
= 2.5.1 (07.10.2020) =
|
130 |
+
* Fix: Price, Sale Price & Weight getting set to blank when importing CSV
|
131 |
+
* Fix: Minor fixes
|
132 |
+
|
133 |
= 2.5.0 (03.10.2020) =
|
134 |
* Update: Compatibility with latest version of WordPress & WooCommerce
|
135 |
* Fix: Clicking on 'Variable product' in case of variable products breaking the Stock Manager page
|
woocommerce-stock-manager.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: WooCommerce Stock Manager
|
4 |
* Plugin URI: https://www.storeapps.org/woocommerce-plugins/
|
5 |
* Description: Manage product's stocka and price in your WooCommerce store.
|
6 |
-
* Version: 2.5.
|
7 |
* Author: StoreApps
|
8 |
* Author URI: https://www.storeapps.org/
|
9 |
* Requires at least: 5.0.0
|
@@ -24,7 +24,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
24 |
|
25 |
define( 'STOCKDIR', plugin_dir_path( __FILE__ ) );
|
26 |
define( 'STOCKURL', plugin_dir_url( __FILE__ ) );
|
27 |
-
define( 'STOCKVERSION', '2.5.
|
28 |
|
29 |
require STOCKDIR . '/vendor/autoload.php';
|
30 |
|
3 |
* Plugin Name: WooCommerce Stock Manager
|
4 |
* Plugin URI: https://www.storeapps.org/woocommerce-plugins/
|
5 |
* Description: Manage product's stocka and price in your WooCommerce store.
|
6 |
+
* Version: 2.5.1
|
7 |
* Author: StoreApps
|
8 |
* Author URI: https://www.storeapps.org/
|
9 |
* Requires at least: 5.0.0
|
24 |
|
25 |
define( 'STOCKDIR', plugin_dir_path( __FILE__ ) );
|
26 |
define( 'STOCKURL', plugin_dir_url( __FILE__ ) );
|
27 |
+
define( 'STOCKVERSION', '2.5.1' );
|
28 |
|
29 |
require STOCKDIR . '/vendor/autoload.php';
|
30 |
|