Skip to content

Commit

Permalink
v3.4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
pablo-sg-pacheco committed Jun 24, 2024
1 parent c5ac9ee commit 41410b3
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
4 changes: 2 additions & 2 deletions cost-of-goods-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
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.4.6
Version: 3.4.7
Author: WPFactory
Author URI: https://wpfactory.com
Text Domain: cost-of-goods-for-woocommerce
Domain Path: /langs
Copyright: © 2024 WPFactory
WC tested up to: 8.9
WC tested up to: 9.0
License: GNU General Public License v3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
Expand Down
6 changes: 3 additions & 3 deletions includes/class-alg-wc-cog-cost-inputs.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Cost of Goods for WooCommerce - Costs input.
*
* @version 3.3.3
* @version 3.4.7
* @since 2.6.4
* @author WPFactory
*/
Expand Down Expand Up @@ -50,13 +50,13 @@ function get_options() {
/**
* add_hooks.
*
* @version 3.3.0
* @version 3.4.7
* @since 2.6.4
*/
function add_hooks(){
// Cost input on admin product page (simple product)
add_action( get_option( 'alg_wc_cog_product_cost_field_position', 'woocommerce_product_options_pricing' ), array( $this, 'add_cost_input' ) );
add_action( 'woocommerce_bookings_after_display_cost', array( $this, 'add_cost_input' ) );
//add_action( 'woocommerce_bookings_after_display_cost', array( $this, 'add_cost_input' ) );
add_action( 'save_post_product', array( $this, 'save_cost_input' ), PHP_INT_MAX - 2, 2 );
// Cost input on admin product page (variable product)
add_action( 'woocommerce_variation_options_pricing', array( $this, 'add_cost_input_variation' ), 9, 3 );
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.4.6';
public $version = '3.4.7';

/**
* @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.4.6\n"
"Project-Id-Version: cost-of-goods-for-woocommerce 3.4.7\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: 2024-06-18T17:04:27+02:00\n"
"POT-Creation-Date: 2024-06-24T21:19:40+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
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: wpcodefactory, omardabbas, karzin, anbinder, algoritmika, kousikmu
Tags: woocommerce, cost, cost of goods, profit, profit calculator
Requires at least: 6.1
Tested up to: 6.5
Stable tag: 3.4.5
Stable tag: 3.4.7
License: GNU General Public License v3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -344,6 +344,10 @@ Once activated, access the plugin's settings by navigating to “WooCommerce > S

== Changelog ==

= 3.4.7 - 24/06/2024 =
* Fix - Removed 'woocommerce_bookings_after_display_cost' so it does not conflict with the WooCommerce Bookings.
* Dev - WC tested up to: 9.0.

= 3.4.6 - 18/06/2024 =
* Change - Report options removed, since the old WooCommerce reports doesn't work anymore.
* Change - Analytics settings moved to its own section.
Expand Down

0 comments on commit 41410b3

Please sign in to comment.