Skip to content

Commit

Permalink
v3.2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
pablo-sg-pacheco committed Feb 14, 2024
1 parent 5d6b601 commit 06124ed
Show file tree
Hide file tree
Showing 5 changed files with 13 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.2.7
Version: 3.2.8
Author: WPFactory
Author URI: https://wpfactory.com
Text Domain: cost-of-goods-for-woocommerce
Expand Down
7 changes: 5 additions & 2 deletions includes/class-alg-wc-cog-products.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Cost of Goods for WooCommerce - Products Class.
*
* @version 3.1.0
* @version 3.2.8
* @since 2.1.0
* @author WPFactory
*/
Expand Down Expand Up @@ -495,11 +495,14 @@ function get_product_price( $product, $args = null ) {
/**
* get_product_cost_html.
*
* @version 2.4.0
* @version 3.2.8
* @since 1.0.0
*/
function get_product_cost_html( $product_id ) {
$product = wc_get_product( $product_id );
if ( ! is_a( $product, 'WC_Product' ) ) {
return '';
}
if ( $product->is_type( 'variable' ) ) {
return $this->get_variable_product_html( $product_id, 'cost', '%cost%' );
} else {
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.2.7';
public $version = '3.2.8';

/**
* @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.2.7\n"
"Project-Id-Version: cost-of-goods-for-woocommerce 3.2.8\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-02-13T20:39:22+01:00\n"
"POT-Creation-Date: 2024-02-14T18:53:16+01: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, omardabbas, karzin, anbinder, algoritmika, kousikmu
Tags: woocommerce, cost, cost of goods, profit, profit calculator
Requires at least: 6.1
Tested up to: 6.4
Stable tag: 3.2.7
Stable tag: 3.2.8
License: GNU General Public License v3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html

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

== Changelog ==

= 3.2.8 - 14/02/2024 =
* Fix - Call to a member function is_type() on bool in class-alg-wc-cog-products.php:504.

= 3.2.7 - 13/02/2024 =
* Fix - Orders - Calculations - Shipping to profit percentage is going to fees and taxes to profit.
* Dev - Orders - Calculations - Create option to set taxes to profit percentage.
Expand Down

0 comments on commit 06124ed

Please sign in to comment.