You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/readme.txt
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -169,6 +169,17 @@ On settings page you can define a number. If location stock value will be less t
169
169
170
170
171
171
== Changelog ==
172
+
= 3.0.2 =
173
+
* Fixed: Only enabled/active stock locations will contribute in total stock value but it would still be editable. [Thanks to @josephkallinit][21/10/2025]
174
+
* Fixed: Prevented potential PHP error when `$slw_api_valid_keys` is null during API validation. [Thanks to Tushar Tajane][21/10/2025]
175
+
* New: Order notes can be turned off from the settings. [Thanks to Rob Wood][21/10/2025]
176
+
* Fixed: Incorrect price range display for variable products when location-based stock prices are higher than variation base prices. The location price now overrides confusing WooCommerce default range formatting.
177
+
* Improved: Sale price logic now fully respects location-based pricing — ensuring both range and sale indicators are hidden when local price is higher. [21/10/2025]
178
+
179
+
= 3.0.1 =
180
+
* Added: Conditional CSS injection for WooCommerce Blocks to hide sale and del elements when location price exceeds the base or sale price.
181
+
* Improved: Price hiding logic refactored for better compatibility across all product types (simple, variable, grouped). [20/10/2025]
182
+
172
183
= 3.0.0 =
173
184
* Improved: When a product is on sale and stock-location-based pricing is active, the base price is treated as the original (crossed) price, and the location price is shown as the current price. If the location price is higher than the base/sale price, the base/sale price will be hidden. [Thanks to Armando Moreira][19/10/2025]
sprintf( __('The stock in the location %1$s was restored in %2$d for the product %3$s', 'stock-locations-for-woocommerce'), $location->name, $slw_data[$location_id]['quantity_subtracted'], $product->get_name() )
177
-
);
176
+
177
+
178
+
179
+
if($slw_proceed_order_note){
180
+
$order->add_order_note(
181
+
sprintf( __('The stock in the location %1$s was restored in %2$d for the product %3$s', 'stock-locations-for-woocommerce'), $location->name, $slw_data[$location_id]['quantity_subtracted'], $product->get_name() )
182
+
);
183
+
}
178
184
}
179
185
}
180
186
@@ -638,6 +644,9 @@ public function include_location_data_in_formatted_item_meta( $formatted_meta, $
@@ -677,6 +689,16 @@ public function include_location_data_in_formatted_item_meta_callback()
677
689
<p><?phpecho__('This special meta can be used by third party plugins to show the location name and quantity subtracted.', 'stock-locations-for-woocommerce'); ?></p>
<p><?phpecho__('This plugin will not add any new order notes to WooCommerce orders if you turn this option ON by selecting Yes.', 'stock-locations-for-woocommerce'); ?></p>
echo'<div id="' . $this->tab_stock_locations . '_alert" style="display:none;">' . __('The total stock does not match the sum of the locations stock. Please update this product to fix it or use', 'stock-locations-for-woocommerce') .'<a href="'.admin_url('admin.php?page=slw-settings&tab=crons').'" target="_blank">'.__('cron jobs.', 'stock-locations-for-woocommerce').'</a>.</div>';
154
+
echo'<div id="' . $this->tab_stock_locations . '_alert" style="display:none;">' . sprintf(__('Total stock is calculated from active/enabled locations only. Use %s for interval-based updates in passive mode.', 'stock-locations-for-woocommerce'), '<a href="'.admin_url('admin.php?page=slw-settings&tab=crons').'" target="_blank">'.__('cron jobs.', 'stock-locations-for-woocommerce').'</a>').'</div>';
155
155
}
156
156
157
157
echo'</div>';
@@ -521,6 +521,8 @@ public function location_sidebar_meta_box( $post_type, $priority, $post )
sprintf(__('The stock in the location %1$s was updated in -%2$d for the product %3$s', 'stock-locations-for-woocommerce'), $term->name, $item_stock_location_subtract_input_qty, $mainProduct->get_name())
@@ -261,7 +262,7 @@ public function enqueue_admin()
261
262
'wc_slw_stock_reset_msg' => __('This action will restore the stock values to the product. Do you want to proceed?', 'stock-locations-for-woocommerce'),
'wc_slw_location_disabled_msg' => __('Enable this location from edit location page to save the stock value.', 'stock-locations-for-woocommerce'),
265
+
'wc_slw_location_disabled_msg' => __('Enable this location from edit location page to contribute in the total stock value.', 'stock-locations-for-woocommerce'),
0 commit comments