Version Description
WooCommerce 5.7.1, 5.8.0 compatible, Pagination not working on Stock log page, Stock Manager menu position, StoreApps Plugins page, POT file
Download this release
Release Info
Developer | storeapps |
Plugin | WooCommerce Stock Manager |
Version | 2.8.1 |
Comparing to | |
See all releases |
Code changes from version 2.8.0 to 2.8.1
admin/class-stock-manager-admin.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Main class for Stock Manager.
|
4 |
*
|
5 |
* @package woocommerce-stock-manager/admin/
|
6 |
-
* @version 2.8.
|
7 |
*/
|
8 |
|
9 |
if ( ! defined( 'ABSPATH' ) ) {
|
@@ -231,7 +231,7 @@ class Stock_Manager_Admin {
|
|
231 |
|
232 |
$manage = apply_filters( 'stock_manager_manage', $value );
|
233 |
|
234 |
-
$position = (string) $this->get_free_menu_position(
|
235 |
|
236 |
$hook = add_menu_page(
|
237 |
__( 'Stock Manager', 'woocommerce-stock-manager' ),
|
@@ -316,7 +316,7 @@ class Stock_Manager_Admin {
|
|
316 |
* Render the StoreApps Marketplace page.
|
317 |
*/
|
318 |
public function display_sa_marketplace_page() {
|
319 |
-
include_once '
|
320 |
WSM_StoreApps_Marketplace::init();
|
321 |
}
|
322 |
|
3 |
* Main class for Stock Manager.
|
4 |
*
|
5 |
* @package woocommerce-stock-manager/admin/
|
6 |
+
* @version 2.8.1
|
7 |
*/
|
8 |
|
9 |
if ( ! defined( 'ABSPATH' ) ) {
|
231 |
|
232 |
$manage = apply_filters( 'stock_manager_manage', $value );
|
233 |
|
234 |
+
$position = (string) $this->get_free_menu_position( 58.00001 );
|
235 |
|
236 |
$hook = add_menu_page(
|
237 |
__( 'Stock Manager', 'woocommerce-stock-manager' ),
|
316 |
* Render the StoreApps Marketplace page.
|
317 |
*/
|
318 |
public function display_sa_marketplace_page() {
|
319 |
+
include_once STOCKDIR . 'sa-includes/class-wsm-storeapps-marketplace.php';
|
320 |
WSM_StoreApps_Marketplace::init();
|
321 |
}
|
322 |
|
admin/includes/class-wsm-stock.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Stock Log Class
|
4 |
*
|
5 |
* @package woocommerce-stock-manager/admin/includes/
|
6 |
-
* @version 2.8.
|
7 |
*/
|
8 |
|
9 |
if ( ! defined( 'ABSPATH' ) ) {
|
@@ -23,9 +23,9 @@ class WSM_Stock {
|
|
23 |
protected static $instance = null;
|
24 |
|
25 |
/**
|
26 |
-
*
|
27 |
*
|
28 |
-
* @var
|
29 |
*/
|
30 |
public $limit = 100;
|
31 |
|
@@ -174,13 +174,13 @@ class WSM_Stock {
|
|
174 |
public function pagination( $query ) {
|
175 |
|
176 |
$get_sku = ( ! empty( $_GET['sku'] ) ) ? wc_clean( wp_unslash( $_GET['sku'] ) ) : ''; // phpcs:ignore
|
177 |
-
if ( empty( $get_sku ) ) {
|
178 |
return false;
|
179 |
}
|
180 |
|
181 |
$all = $query->found_posts;
|
182 |
|
183 |
-
$pages = ceil( $all / $this->limit );
|
184 |
$passed_offset = ( ! empty( $_GET['offset'] ) ) ? wc_clean( wp_unslash( $_GET['offset'] ) ) : 0; // phpcs:ignore
|
185 |
$current = ( ! empty( $passed_offset ) ) ? intval( $passed_offset ) : 1;
|
186 |
|
3 |
* Stock Log Class
|
4 |
*
|
5 |
* @package woocommerce-stock-manager/admin/includes/
|
6 |
+
* @version 2.8.1
|
7 |
*/
|
8 |
|
9 |
if ( ! defined( 'ABSPATH' ) ) {
|
23 |
protected static $instance = null;
|
24 |
|
25 |
/**
|
26 |
+
* Limit to display number of products on a page.
|
27 |
*
|
28 |
+
* @var int
|
29 |
*/
|
30 |
public $limit = 100;
|
31 |
|
174 |
public function pagination( $query ) {
|
175 |
|
176 |
$get_sku = ( ! empty( $_GET['sku'] ) ) ? wc_clean( wp_unslash( $_GET['sku'] ) ) : ''; // phpcs:ignore
|
177 |
+
if ( ! empty( $get_sku ) ) {
|
178 |
return false;
|
179 |
}
|
180 |
|
181 |
$all = $query->found_posts;
|
182 |
|
183 |
+
$pages = (int) ceil( $all / $this->limit );
|
184 |
$passed_offset = ( ! empty( $_GET['offset'] ) ) ? wc_clean( wp_unslash( $_GET['offset'] ) ) : 0; // phpcs:ignore
|
185 |
$current = ( ! empty( $passed_offset ) ) ? intval( $passed_offset ) : 1;
|
186 |
|
languages/woocommerce-stock-manager.pot
CHANGED
@@ -2,14 +2,14 @@
|
|
2 |
# This file is distributed under the same license as the Stock Manager for WooCommerce plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Stock Manager for WooCommerce 2.8.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-stock-manager\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"POT-Creation-Date: 2021-
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.1.0\n"
|
15 |
"X-Domain: woocommerce-stock-manager\n"
|
@@ -34,60 +34,6 @@ msgstr ""
|
|
34 |
msgid "https://www.storeapps.org/"
|
35 |
msgstr ""
|
36 |
|
37 |
-
#: admin/views/log-history.php:48
|
38 |
-
msgid "Date"
|
39 |
-
msgstr ""
|
40 |
-
|
41 |
-
#: admin/views/log-history.php:49
|
42 |
-
#: admin/views/log.php:33
|
43 |
-
#: admin/views/import-export.php:136
|
44 |
-
#: admin/views/import-export.php:158
|
45 |
-
#: admin/assets/src/components/Products.js:148
|
46 |
-
#: admin/assets/src/components/ScreenOptions.js:83
|
47 |
-
msgid "Stock"
|
48 |
-
msgstr ""
|
49 |
-
|
50 |
-
#: admin/views/log-history.php:69
|
51 |
-
msgid "No result"
|
52 |
-
msgstr ""
|
53 |
-
|
54 |
-
#: admin/views/log.php:28
|
55 |
-
msgid "Product ID"
|
56 |
-
msgstr ""
|
57 |
-
|
58 |
-
#: admin/views/log.php:29
|
59 |
-
#: admin/views/import-export.php:131
|
60 |
-
#: admin/views/import-export.php:154
|
61 |
-
#: admin/assets/src/components/ProductFilter.js:64
|
62 |
-
#: admin/assets/src/components/Products.js:99
|
63 |
-
#: admin/assets/src/components/ScreenOptions.js:38
|
64 |
-
msgid "SKU"
|
65 |
-
msgstr ""
|
66 |
-
|
67 |
-
#: admin/views/log.php:30
|
68 |
-
msgid "Name"
|
69 |
-
msgstr ""
|
70 |
-
|
71 |
-
#: admin/views/log.php:31
|
72 |
-
#: admin/views/import-export.php:137
|
73 |
-
#: admin/assets/src/components/Products.js:97
|
74 |
-
msgid "Product type"
|
75 |
-
msgstr ""
|
76 |
-
|
77 |
-
#: admin/views/log.php:32
|
78 |
-
#: admin/views/import-export.php:138
|
79 |
-
msgid "Parent ID"
|
80 |
-
msgstr ""
|
81 |
-
|
82 |
-
#: admin/views/log.php:60
|
83 |
-
#: admin/views/log.php:94
|
84 |
-
msgid "History"
|
85 |
-
msgstr ""
|
86 |
-
|
87 |
-
#: admin/views/setting.php:34
|
88 |
-
msgid "Active old styles"
|
89 |
-
msgstr ""
|
90 |
-
|
91 |
#: admin/views/import-export.php:121
|
92 |
msgid "Import"
|
93 |
msgstr ""
|
@@ -114,6 +60,15 @@ msgstr ""
|
|
114 |
msgid "ID"
|
115 |
msgstr ""
|
116 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
#: admin/views/import-export.php:132
|
118 |
#: admin/assets/src/components/Products.js:115
|
119 |
#: admin/assets/src/components/ScreenOptions.js:48
|
@@ -142,6 +97,26 @@ msgstr ""
|
|
142 |
msgid "Backorders"
|
143 |
msgstr ""
|
144 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
#: admin/views/import-export.php:141
|
146 |
msgid "123"
|
147 |
msgstr ""
|
@@ -230,6 +205,31 @@ msgstr ""
|
|
230 |
msgid "Create export file"
|
231 |
msgstr ""
|
232 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
#: admin/class-stock-manager-admin.php:153
|
234 |
msgid "No shipping class"
|
235 |
msgstr ""
|
2 |
# This file is distributed under the same license as the Stock Manager for WooCommerce plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Stock Manager for WooCommerce 2.8.1\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-stock-manager\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"POT-Creation-Date: 2021-10-15T13:22:08+05:30\n"
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.1.0\n"
|
15 |
"X-Domain: woocommerce-stock-manager\n"
|
34 |
msgid "https://www.storeapps.org/"
|
35 |
msgstr ""
|
36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
#: admin/views/import-export.php:121
|
38 |
msgid "Import"
|
39 |
msgstr ""
|
60 |
msgid "ID"
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: admin/views/import-export.php:131
|
64 |
+
#: admin/views/import-export.php:154
|
65 |
+
#: admin/views/log.php:29
|
66 |
+
#: admin/assets/src/components/ProductFilter.js:64
|
67 |
+
#: admin/assets/src/components/Products.js:99
|
68 |
+
#: admin/assets/src/components/ScreenOptions.js:38
|
69 |
+
msgid "SKU"
|
70 |
+
msgstr ""
|
71 |
+
|
72 |
#: admin/views/import-export.php:132
|
73 |
#: admin/assets/src/components/Products.js:115
|
74 |
#: admin/assets/src/components/ScreenOptions.js:48
|
97 |
msgid "Backorders"
|
98 |
msgstr ""
|
99 |
|
100 |
+
#: admin/views/import-export.php:136
|
101 |
+
#: admin/views/import-export.php:158
|
102 |
+
#: admin/views/log-history.php:49
|
103 |
+
#: admin/views/log.php:33
|
104 |
+
#: admin/assets/src/components/Products.js:148
|
105 |
+
#: admin/assets/src/components/ScreenOptions.js:83
|
106 |
+
msgid "Stock"
|
107 |
+
msgstr ""
|
108 |
+
|
109 |
+
#: admin/views/import-export.php:137
|
110 |
+
#: admin/views/log.php:31
|
111 |
+
#: admin/assets/src/components/Products.js:97
|
112 |
+
msgid "Product type"
|
113 |
+
msgstr ""
|
114 |
+
|
115 |
+
#: admin/views/import-export.php:138
|
116 |
+
#: admin/views/log.php:32
|
117 |
+
msgid "Parent ID"
|
118 |
+
msgstr ""
|
119 |
+
|
120 |
#: admin/views/import-export.php:141
|
121 |
msgid "123"
|
122 |
msgstr ""
|
205 |
msgid "Create export file"
|
206 |
msgstr ""
|
207 |
|
208 |
+
#: admin/views/log-history.php:48
|
209 |
+
msgid "Date"
|
210 |
+
msgstr ""
|
211 |
+
|
212 |
+
#: admin/views/log-history.php:69
|
213 |
+
msgid "No result"
|
214 |
+
msgstr ""
|
215 |
+
|
216 |
+
#: admin/views/log.php:28
|
217 |
+
msgid "Product ID"
|
218 |
+
msgstr ""
|
219 |
+
|
220 |
+
#: admin/views/log.php:30
|
221 |
+
msgid "Name"
|
222 |
+
msgstr ""
|
223 |
+
|
224 |
+
#: admin/views/log.php:60
|
225 |
+
#: admin/views/log.php:94
|
226 |
+
msgid "History"
|
227 |
+
msgstr ""
|
228 |
+
|
229 |
+
#: admin/views/setting.php:34
|
230 |
+
msgid "Active old styles"
|
231 |
+
msgstr ""
|
232 |
+
|
233 |
#: admin/class-stock-manager-admin.php:153
|
234 |
msgid "No shipping class"
|
235 |
msgstr ""
|
readme.txt
CHANGED
@@ -7,7 +7,7 @@ Tags: stock manager, woocommerce, stock management, inventory, products
|
|
7 |
Requires at least: 5.0.0
|
8 |
Tested up to: 5.8.1
|
9 |
Requires PHP: 5.6
|
10 |
-
Stable tag: 2.8.
|
11 |
License: GPLv3
|
12 |
|
13 |
== Description ==
|
@@ -152,6 +152,13 @@ Be sure, that you have active stock manager.
|
|
152 |
|
153 |
== Changelog ==
|
154 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
= 2.8.0 (17.09.2021) =
|
156 |
* New: WordPress Coding Standards
|
157 |
* Fix: Variation product link not opening parent variable product on Stock log page
|
@@ -266,6 +273,9 @@ For the changelog of earlier versions, please refer to the separate [changelog.t
|
|
266 |
|
267 |
== Upgrade Notice ==
|
268 |
|
|
|
|
|
|
|
269 |
= 2.8.0 =
|
270 |
WordPress Coding Standards, Variation product link not opening parent variable product on Stock log page, Incorrect plugin slug and text domain at few places, Plugin name broken in admin footer text on Stock Manager pages, Check product instance before calling product functions, Stock log page, Removed unused code, POT file
|
271 |
|
7 |
Requires at least: 5.0.0
|
8 |
Tested up to: 5.8.1
|
9 |
Requires PHP: 5.6
|
10 |
+
Stable tag: 2.8.1
|
11 |
License: GPLv3
|
12 |
|
13 |
== Description ==
|
152 |
|
153 |
== Changelog ==
|
154 |
|
155 |
+
= 2.8.1 (15.10.2021) =
|
156 |
+
* New: WooCommerce 5.7.1, 5.8.0 compatible
|
157 |
+
* Fix: Pagination not working on Stock log page
|
158 |
+
* Update: Stock Manager menu position
|
159 |
+
* Update: StoreApps Plugins page
|
160 |
+
* Update: POT file
|
161 |
+
|
162 |
= 2.8.0 (17.09.2021) =
|
163 |
* New: WordPress Coding Standards
|
164 |
* Fix: Variation product link not opening parent variable product on Stock log page
|
273 |
|
274 |
== Upgrade Notice ==
|
275 |
|
276 |
+
= 2.8.1 =
|
277 |
+
WooCommerce 5.7.1, 5.8.0 compatible, Pagination not working on Stock log page, Stock Manager menu position, StoreApps Plugins page, POT file
|
278 |
+
|
279 |
= 2.8.0 =
|
280 |
WordPress Coding Standards, Variation product link not opening parent variable product on Stock log page, Incorrect plugin slug and text domain at few places, Plugin name broken in admin footer text on Stock Manager pages, Check product instance before calling product functions, Stock log page, Removed unused code, POT file
|
281 |
|
{admin/views → sa-includes}/class-wsm-storeapps-marketplace.php
RENAMED
@@ -3,7 +3,7 @@
|
|
3 |
* StoreApps Marketplace.
|
4 |
*
|
5 |
* @package woocommerce-stock-manager/admin/views/
|
6 |
-
* @version 2.8.
|
7 |
*/
|
8 |
|
9 |
// Exit if accessed directly.
|
@@ -80,10 +80,6 @@ class WSM_StoreApps_Marketplace {
|
|
80 |
.wsm-marketplace .addons-banner-block-item-content h3 {
|
81 |
margin-top: 0
|
82 |
}
|
83 |
-
.wsm-marketplace .addons-banner-block-item-content h3 sup {
|
84 |
-
color: red;
|
85 |
-
opacity: 0.7;
|
86 |
-
}
|
87 |
.wsm-marketplace .addons-banner-block-item-content p {
|
88 |
margin: 0 0 auto;
|
89 |
min-height: 10em;
|
@@ -179,7 +175,7 @@ class WSM_StoreApps_Marketplace {
|
|
179 |
</div>
|
180 |
<div class="addons-banner-block-item">
|
181 |
<div class="addons-banner-block-item-content">
|
182 |
-
<h3>Offermative
|
183 |
<p>A plugin for dynamic discount pricing, related product recommendations, upsells and funnels for WooCommerce.</p>
|
184 |
<a class="addons-button addons-button-solid" href="https://wordpress.org/plugins/offermative-discount-pricing-related-products-upsell-funnels-for-woocommerce/" target="_blank" rel="noopener">Learn more</a>
|
185 |
</div>
|
3 |
* StoreApps Marketplace.
|
4 |
*
|
5 |
* @package woocommerce-stock-manager/admin/views/
|
6 |
+
* @version 2.8.1
|
7 |
*/
|
8 |
|
9 |
// Exit if accessed directly.
|
80 |
.wsm-marketplace .addons-banner-block-item-content h3 {
|
81 |
margin-top: 0
|
82 |
}
|
|
|
|
|
|
|
|
|
83 |
.wsm-marketplace .addons-banner-block-item-content p {
|
84 |
margin: 0 0 auto;
|
85 |
min-height: 10em;
|
175 |
</div>
|
176 |
<div class="addons-banner-block-item">
|
177 |
<div class="addons-banner-block-item-content">
|
178 |
+
<h3>Offermative</h3>
|
179 |
<p>A plugin for dynamic discount pricing, related product recommendations, upsells and funnels for WooCommerce.</p>
|
180 |
<a class="addons-button addons-button-solid" href="https://wordpress.org/plugins/offermative-discount-pricing-related-products-upsell-funnels-for-woocommerce/" target="_blank" rel="noopener">Learn more</a>
|
181 |
</div>
|
woocommerce-stock-manager.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Stock Manager for WooCommerce
|
4 |
* Plugin URI: https://www.storeapps.org/woocommerce-plugins/
|
5 |
* Description: Manage product's stock and price in your WooCommerce store. Export/Import inventory, track history, sort and more...
|
6 |
-
* Version: 2.8.
|
7 |
* Author: StoreApps
|
8 |
* Author URI: https://www.storeapps.org/
|
9 |
* Developer: StoreApps
|
@@ -12,7 +12,7 @@
|
|
12 |
* Tested up to: 5.8.1
|
13 |
* Requires PHP: 5.6+
|
14 |
* WC requires at least: 3.5.0
|
15 |
-
* WC tested up to: 5.
|
16 |
* Text Domain: woocommerce-stock-manager
|
17 |
* Domain Path: /languages/
|
18 |
* License: GNU General Public License v3.0
|
3 |
* Plugin Name: Stock Manager for WooCommerce
|
4 |
* Plugin URI: https://www.storeapps.org/woocommerce-plugins/
|
5 |
* Description: Manage product's stock and price in your WooCommerce store. Export/Import inventory, track history, sort and more...
|
6 |
+
* Version: 2.8.1
|
7 |
* Author: StoreApps
|
8 |
* Author URI: https://www.storeapps.org/
|
9 |
* Developer: StoreApps
|
12 |
* Tested up to: 5.8.1
|
13 |
* Requires PHP: 5.6+
|
14 |
* WC requires at least: 3.5.0
|
15 |
+
* WC tested up to: 5.8.0
|
16 |
* Text Domain: woocommerce-stock-manager
|
17 |
* Domain Path: /languages/
|
18 |
* License: GNU General Public License v3.0
|