Skip to content

Commit

Permalink
v3.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
pablo-sg-pacheco committed Sep 11, 2023
1 parent 3ceec1b commit 0cbb496
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cost-of-goods-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -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: 3.0.4
Version: 3.0.5
Author: WPFactory
Author URI: https://wpfactory.com
Text Domain: cost-of-goods-for-woocommerce
Expand Down
6 changes: 4 additions & 2 deletions includes/class-alg-wc-cog-orders-meta-boxes.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Cost of Goods for WooCommerce - Orders Meta Boxes Class.
*
* @version 3.0.2
* @version 3.0.5
* @since 2.2.0
* @author WPFactory
*/
Expand Down Expand Up @@ -243,11 +243,12 @@ function render_order_extra_cost_meta_box( $post ) {
/**
* save_order_extra_cost.
*
* @version 3.0.2
* @version 3.0.5
* @since 1.7.0
*/
function save_order_extra_cost( $order_id, $post ) {
if ( in_array( true, alg_wc_cog()->core->orders->is_order_extra_cost_per_order ) ) {
remove_action( 'save_post_shop_order', array( $this, 'save_order_extra_cost' ), 10 );
foreach ( alg_wc_cog()->core->orders->is_order_extra_cost_per_order as $fee_type => $is_enabled ) {
if ( $is_enabled ) {
$id = 'alg_wc_cog_order_' . $fee_type . '_fee';
Expand All @@ -259,6 +260,7 @@ function save_order_extra_cost( $order_id, $post ) {
}
}
}
add_action( 'save_post_shop_order', array( $this, 'save_order_extra_cost' ), 10, 2 );
}
}

Expand Down
2 changes: 1 addition & 1 deletion includes/class-alg-wc-cog.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ final class Alg_WC_Cost_of_Goods {
* @since 1.0.0
* @var string
*/
public $version = '3.0.4';
public $version = '3.0.5';

/**
* @since 1.0.0
Expand Down
4 changes: 2 additions & 2 deletions langs/cost-of-goods-for-woocommerce.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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 3.0.4\n"
"Project-Id-Version: cost-of-goods-for-woocommerce 3.0.5\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/cost-of-goods-for-woocommerce\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2023-08-19T15:37:00+02:00\n"
"POT-Creation-Date: 2023-09-11T18:17:18+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"
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.3
Stable tag: 3.0.4
Stable tag: 3.0.5
License: GNU General Public License v3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -98,6 +98,9 @@ And then you can follow these steps:

== Changelog ==

= 3.0.5 - 11/09/2023 =
* Fix - Orders - Extra costs:Per order - PHP memory error fixed.

= 3.0.4 - 19/08/2023 =
* Fix - Fix error where free and pro versions are enabled simultaneously and the free version is updated before pro version.

Expand Down

0 comments on commit 0cbb496

Please sign in to comment.