diff --git a/cost-of-goods-for-woocommerce.php b/cost-of-goods-for-woocommerce.php index 8fb20d0..1f97153 100644 --- a/cost-of-goods-for-woocommerce.php +++ b/cost-of-goods-for-woocommerce.php @@ -3,7 +3,7 @@ Plugin Name: Cost of Goods for WooCommerce Plugin URI: https://wpfactory.com/item/cost-of-goods-for-woocommerce/ Description: Save product purchase costs (cost of goods) in WooCommerce. Beautifully. -Version: 2.9.6 +Version: 2.9.7 Author: WPFactory Author URI: https://wpfactory.com Text Domain: cost-of-goods-for-woocommerce @@ -72,7 +72,7 @@ final class Alg_WC_Cost_of_Goods { * @var string * @since 1.0.0 */ - public $version = '2.9.6'; + public $version = '2.9.7'; /** * @var Alg_WC_Cost_of_Goods The single instance of the class diff --git a/includes/tools/class-alg-wc-cog-bulk-edit-tool.php b/includes/tools/class-alg-wc-cog-bulk-edit-tool.php index 5b360ee..d873a39 100644 --- a/includes/tools/class-alg-wc-cog-bulk-edit-tool.php +++ b/includes/tools/class-alg-wc-cog-bulk-edit-tool.php @@ -2,7 +2,7 @@ /** * Cost of Goods for WooCommerce - Bulk Edit Tool Class. * - * @version 2.9.5 + * @version 2.9.7 * @since 1.2.0 * @author WPFactory */ @@ -152,7 +152,7 @@ function init_bkg_process() { /** * Update costs on Ajax for bulk edit tools. * - * @version 2.9.5 + * @version 2.9.7 * @since 2.5.1 */ function ajax_update_product_data() { @@ -285,7 +285,7 @@ function ajax_update_product_data() { 'bkg_process_obj' => $this->update_price_bkg_process, 'success_msg' => __( 'Successfully updated product prices.', 'cost-of-goods-for-woocommerce' ), 'bkg_process_progress_msg' => $bkg_process_progress_msg, - 'no_bkg_process_function' => 'update_product_cost_by_percentage', + 'no_bkg_process_function' => 'update_product_price_by_profit', ) ) ); } } diff --git a/langs/cost-of-goods-for-woocommerce.pot b/langs/cost-of-goods-for-woocommerce.pot index 6e3f8aa..8f65cde 100644 --- a/langs/cost-of-goods-for-woocommerce.pot +++ b/langs/cost-of-goods-for-woocommerce.pot @@ -2,14 +2,14 @@ # This file is distributed under the GNU General Public License v3.0. msgid "" msgstr "" -"Project-Id-Version: cost-of-goods-for-woocommerce 2.9.6\n" +"Project-Id-Version: cost-of-goods-for-woocommerce 2.9.7\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/cost-of-goods-for-woocommerce\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2023-04-18T05:33:59+02:00\n" +"POT-Creation-Date: 2023-04-25T22:31:02+02:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.7.1\n" "X-Domain: cost-of-goods-for-woocommerce\n" diff --git a/readme.txt b/readme.txt index 8976d3a..5689674 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: wpcodefactory, karzin, kerbhavik, jaedm97, algoritmika, anbinder Tags: woocommerce, cost, cost of goods, cog, cost of goods sold, cogs, woo commerce Requires at least: 4.4 Tested up to: 6.2 -Stable tag: 2.9.6 +Stable tag: 2.9.7 License: GNU General Public License v3.0 License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -98,6 +98,9 @@ And then you can follow these steps: == Changelog == += 2.9.7 - 25/04/2023 = +* Fix - Bulk edit prices - Calculation is incorrect. + = 2.9.6 - 18/04/2023 = * Fix - `class-alg-wc-cog-products.php:456` - Call to a member function is_type() on bool. * WC tested up to: 7.6.