WooCommerce Stock Manager - Version 2.5.3

Version Description

(21.11.2020) = * New: WooCommerce 4.7.0 compatible

Download this release

Release Info

Developer storeapps
Plugin Icon 128x128 WooCommerce Stock Manager
Version 2.5.3
Comparing to
See all releases

Code changes from version 2.5.2 to 2.5.3

admin/class-stock-manager-admin.php CHANGED
@@ -423,7 +423,7 @@ class Stock_Manager_Admin {
423
 
424
  /**
425
  * Function to show SA in app offers in WSM if any.
426
- * Added @since: 2.5.2. Start Date: 30.10.2020
427
  */
428
  public function may_be_show_sa_in_app_offer() {
429
  if ( ! class_exists( 'SA_In_App_Offers' ) ) {
@@ -432,10 +432,10 @@ class Stock_Manager_Admin {
432
  $args = array(
433
  'file' => WSM_PLUGIN_FILE,
434
  'prefix' => 'wsm',
435
- 'option_name' => 'sa_offer_halloween_2020_wsm',
436
- 'campaign' => 'sa_halloween_2020',
437
- 'start' => '2020-10-30',
438
- 'end' => '2020-11-02',
439
  'is_plugin_page' => true,
440
  );
441
 
423
 
424
  /**
425
  * Function to show SA in app offers in WSM if any.
426
+ * Added @since: 2.5.2.
427
  */
428
  public function may_be_show_sa_in_app_offer() {
429
  if ( ! class_exists( 'SA_In_App_Offers' ) ) {
432
  $args = array(
433
  'file' => WSM_PLUGIN_FILE,
434
  'prefix' => 'wsm',
435
+ 'option_name' => 'sa_offer_bfcm_2020_wsm',
436
+ 'campaign' => 'sa_bfcm_2020',
437
+ 'start' => '2020-11-24 06:00:00',
438
+ 'end' => '2020-12-03 06:00:00',
439
  'is_plugin_page' => true,
440
  );
441
 
public/class-stock-manager.php CHANGED
@@ -20,7 +20,7 @@ class Stock_Manager {
20
  *
21
  * @var string
22
  */
23
- const VERSION = '2.5.2';
24
 
25
  /**
26
  * Plugin slug
20
  *
21
  * @var string
22
  */
23
+ const VERSION = '2.5.3';
24
 
25
  /**
26
  * Plugin slug
readme.txt CHANGED
@@ -5,9 +5,9 @@ Author URI: https://www.storeapps.org/
5
  Plugin URI: https://www.storeapps.org/woocommerce-plugins/?utm_source=wprepo&utm_medium=web&utm_campaign=wsm_readme
6
  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.2
11
  License: GPLv3
12
 
13
  == Description ==
@@ -123,6 +123,9 @@ Be sure, that you have WooCommerce 3.5+ and WordPress 5.+
123
 
124
  == Changelog ==
125
 
 
 
 
126
  = 2.5.2 (28.10.2020) =
127
  * New: WooCommerce 4.6.1 compatible
128
  * Fix: variation_data was called incorrectly error when exporting CSV
5
  Plugin URI: https://www.storeapps.org/woocommerce-plugins/?utm_source=wprepo&utm_medium=web&utm_campaign=wsm_readme
6
  Tags: woocommerce, stock manager, stock management, inventory
7
  Requires at least: 5.0.0
8
+ Tested up to: 5.5.3
9
  Requires PHP: 5.6+
10
+ Stable tag: 2.5.3
11
  License: GPLv3
12
 
13
  == Description ==
123
 
124
  == Changelog ==
125
 
126
+ = 2.5.3 (21.11.2020) =
127
+ * New: WooCommerce 4.7.0 compatible
128
+
129
  = 2.5.2 (28.10.2020) =
130
  * New: WooCommerce 4.6.1 compatible
131
  * Fix: variation_data was called incorrectly error when exporting CSV
sa-includes/class-sa-in-app-offers.php CHANGED
@@ -152,8 +152,8 @@ class SA_In_App_Offers {
152
  * The offer content
153
  */
154
  public function show_offer_content() {
155
- $sa_halloween_2020 = get_option( $this->option_name, '' );
156
- if ( 'no' === $sa_halloween_2020 ) {
157
  return;
158
  }
159
 
@@ -172,7 +172,7 @@ class SA_In_App_Offers {
172
  padding: 1em;
173
  }
174
  .sa_offer_content img {
175
- width: 55%;
176
  }
177
  .sa_dismiss {
178
  font-size: 0.5em;
@@ -185,10 +185,10 @@ class SA_In_App_Offers {
185
  <div class="sa_offer">
186
  <div class="sa_offer_content">
187
  <a href="https://www.storeapps.org/woocommerce-plugins/?utm_source=in_app&utm_medium=<?php echo esc_attr( $this->prefix ); ?>_banner&utm_campaign=<?php echo esc_attr( $this->campaign ); ?>" target="_blank">
188
- <img src="<?php echo esc_url( plugins_url( 'sa-includes/images/halloween-2020.png', $this->plugin_file ) ); ?>" />
189
  </a>
190
  <div class="sa_dismiss"> <!-- Do not change this class -->
191
- <a href="?wsm_dismiss_admin_notice=1&option_name=sa_offer_halloween_2020" style="color: black; text-decoration: none;"><?php echo esc_html__( 'Hide this' ); ?></a>
192
  </div>
193
  </div>
194
  </div>
152
  * The offer content
153
  */
154
  public function show_offer_content() {
155
+ $sa_offer_2020 = get_option( $this->option_name, '' );
156
+ if ( 'no' === $sa_offer_2020 ) {
157
  return;
158
  }
159
 
172
  padding: 1em;
173
  }
174
  .sa_offer_content img {
175
+ width: 50%;
176
  }
177
  .sa_dismiss {
178
  font-size: 0.5em;
185
  <div class="sa_offer">
186
  <div class="sa_offer_content">
187
  <a href="https://www.storeapps.org/woocommerce-plugins/?utm_source=in_app&utm_medium=<?php echo esc_attr( $this->prefix ); ?>_banner&utm_campaign=<?php echo esc_attr( $this->campaign ); ?>" target="_blank">
188
+ <img src="<?php echo esc_url( plugins_url( 'sa-includes/images/bfcm-2020.jpg', $this->plugin_file ) ); ?>" />
189
  </a>
190
  <div class="sa_dismiss"> <!-- Do not change this class -->
191
+ <a href="?wsm_dismiss_admin_notice=1&option_name=sa_offer_bfcm_2020" style="color: black; text-decoration: none;"><?php echo esc_html__( 'Hide this' ); ?></a>
192
  </div>
193
  </div>
194
  </div>
sa-includes/images/bfcm-2020.jpg ADDED
Binary file
sa-includes/images/halloween-2020.png DELETED
Binary file
woocommerce-stock-manager.php CHANGED
@@ -3,13 +3,13 @@
3
  * Plugin Name: WooCommerce Stock Manager
4
  * Plugin URI: https://www.storeapps.org/woocommerce-plugins/
5
  * Description: Manage product's stock and price in your WooCommerce store.
6
- * Version: 2.5.2
7
  * Author: StoreApps
8
  * Author URI: https://www.storeapps.org/
9
  * Requires at least: 5.0.0
10
- * Tested up to: 5.5.1
11
  * WC requires at least: 3.0.0
12
- * WC tested up to: 4.6.1
13
  * Text Domain: woocommerce-stock-manager
14
  * Domain Path: /languages/
15
  * Copyright (c) 2020 StoreApps. All rights reserved.
@@ -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.2' );
28
  if( !defined( 'WSM_PLUGIN_FILE' ) ) {
29
  define( 'WSM_PLUGIN_FILE', __FILE__ );
30
  }
3
  * Plugin Name: WooCommerce Stock Manager
4
  * Plugin URI: https://www.storeapps.org/woocommerce-plugins/
5
  * Description: Manage product's stock and price in your WooCommerce store.
6
+ * Version: 2.5.3
7
  * Author: StoreApps
8
  * Author URI: https://www.storeapps.org/
9
  * Requires at least: 5.0.0
10
+ * Tested up to: 5.5.3
11
  * WC requires at least: 3.0.0
12
+ * WC tested up to: 4.7.0
13
  * Text Domain: woocommerce-stock-manager
14
  * Domain Path: /languages/
15
  * Copyright (c) 2020 StoreApps. All rights reserved.
24
 
25
  define( 'STOCKDIR', plugin_dir_path( __FILE__ ) );
26
  define( 'STOCKURL', plugin_dir_url( __FILE__ ) );
27
+ define( 'STOCKVERSION', '2.5.3' );
28
  if( !defined( 'WSM_PLUGIN_FILE' ) ) {
29
  define( 'WSM_PLUGIN_FILE', __FILE__ );
30
  }