diff --git a/composer.lock b/composer.lock index 5406c32..05271fd 100644 --- a/composer.lock +++ b/composer.lock @@ -8,16 +8,16 @@ "packages": [ { "name": "wpfactory/wpfactory-admin-menu", - "version": "v1.0.1", + "version": "v1.0.2", "source": { "type": "git", "url": "https://github.com/wpcodefactory/wpfactory-admin-menu.git", - "reference": "5766f0d1337e1a94a5ed2057fe4fedd86e8562b6" + "reference": "89e0b637eb5af737dd4cba52a41797082cb0d7c9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wpcodefactory/wpfactory-admin-menu/zipball/5766f0d1337e1a94a5ed2057fe4fedd86e8562b6", - "reference": "5766f0d1337e1a94a5ed2057fe4fedd86e8562b6", + "url": "https://api.github.com/repos/wpcodefactory/wpfactory-admin-menu/zipball/89e0b637eb5af737dd4cba52a41797082cb0d7c9", + "reference": "89e0b637eb5af737dd4cba52a41797082cb0d7c9", "shasum": "" }, "require-dev": { @@ -49,10 +49,10 @@ ] }, "support": { - "source": "https://github.com/wpcodefactory/wpfactory-admin-menu/tree/v1.0.1", + "source": "https://github.com/wpcodefactory/wpfactory-admin-menu/tree/v1.0.2", "issues": "https://github.com/wpcodefactory/wpfactory-admin-menu/issues" }, - "time": "2024-09-27T20:07:15+00:00" + "time": "2024-10-08T22:38:02+00:00" }, { "name": "wpfactory/wpfactory-cross-selling", diff --git a/cost-of-goods-for-woocommerce.php b/cost-of-goods-for-woocommerce.php index 2d6c6c3..de784be 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: 3.5.2 +Version: 3.5.3 Author: WPFactory Author URI: https://wpfactory.com Text Domain: cost-of-goods-for-woocommerce diff --git a/includes/class-alg-wc-cog.php b/includes/class-alg-wc-cog.php index 848fa0c..d95dba2 100644 --- a/includes/class-alg-wc-cog.php +++ b/includes/class-alg-wc-cog.php @@ -2,7 +2,7 @@ /** * Cost of Goods for WooCommerce - Costs input. * - * @version 3.5.1 + * @version 3.5.3 * @since 3.0.3 * @author WPFactory */ @@ -35,7 +35,7 @@ final class Alg_WC_Cost_of_Goods { * @since 1.0.0 * @var string */ - public $version = '3.5.2'; + public $version = '3.5.3'; /** * @since 1.0.0 @@ -149,7 +149,7 @@ function add_cross_selling_library(){ /** * move_wc_settings_tab_to_wpfactory_submenu. * - * @version 3.5.1 + * @version 3.5.3 * @since 3.5.1 * * @return void @@ -163,6 +163,7 @@ function move_wc_settings_tab_to_wpfactory_menu() { $wpf_admin_menu->move_wc_settings_tab_to_wpfactory_menu( array( 'wc_settings_tab_id' => 'alg_wc_cost_of_goods', 'menu_title' => __( 'Cost of Goods', 'cost-of-goods-for-woocommerce' ), + 'page_title' => __( 'Cost of Goods Sold', 'cost-of-goods-for-woocommerce' ), ) ); } diff --git a/langs/cost-of-goods-for-woocommerce-de_DE.po b/langs/cost-of-goods-for-woocommerce-de_DE.po index f97f278..ed2121a 100644 --- a/langs/cost-of-goods-for-woocommerce-de_DE.po +++ b/langs/cost-of-goods-for-woocommerce-de_DE.po @@ -37,7 +37,7 @@ msgstr "WPFactory" msgid "https://wpfactory.com" msgstr "https://wpfactory.com" -#: includes/class-alg-wc-cog.php:264 +#: includes/class-alg-wc-cog.php:265 msgid "Go Pro" msgstr "Gehen Sie zum Profi" @@ -3132,3 +3132,7 @@ msgstr "" #: includes/settings/class-alg-wc-cog-settings-orders.php:256 msgid "Ignore quantity sold when calculating profit and costs" msgstr "" + +#: includes/class-alg-wc-cog.php:166 +msgid "Cost of Goods Sold" +msgstr "" diff --git a/langs/cost-of-goods-for-woocommerce-tr_TR.po b/langs/cost-of-goods-for-woocommerce-tr_TR.po index 4c89c55..41afd77 100644 --- a/langs/cost-of-goods-for-woocommerce-tr_TR.po +++ b/langs/cost-of-goods-for-woocommerce-tr_TR.po @@ -14,7 +14,7 @@ msgstr "" "X-Generator: Poedit 2.1.1\n" "X-Loco-Version: 2.4.3; wp-5.5.1\n" -#: includes/class-alg-wc-cog.php:264 +#: includes/class-alg-wc-cog.php:265 msgid "Go Pro" msgstr "Pro Sürüm Satın Al" @@ -3168,3 +3168,7 @@ msgstr "" #: includes/settings/class-alg-wc-cog-settings-orders.php:256 msgid "Ignore quantity sold when calculating profit and costs" msgstr "" + +#: includes/class-alg-wc-cog.php:166 +msgid "Cost of Goods Sold" +msgstr "" diff --git a/langs/cost-of-goods-for-woocommerce-zh_CN.po b/langs/cost-of-goods-for-woocommerce-zh_CN.po index 070c673..bf0f085 100644 --- a/langs/cost-of-goods-for-woocommerce-zh_CN.po +++ b/langs/cost-of-goods-for-woocommerce-zh_CN.po @@ -1027,7 +1027,7 @@ msgstr "保存设置之后,你需要重新计算订单成本和利润。" msgid "Here you can add extra costs for your orders, e.g. handling fees." msgstr "此部分可以增加订单额外成本,譬如:手续费。" -#: includes/class-alg-wc-cog.php:264 +#: includes/class-alg-wc-cog.php:265 msgid "Go Pro" msgstr "升级 Pro" @@ -3130,3 +3130,7 @@ msgstr "" #: includes/settings/class-alg-wc-cog-settings-orders.php:256 msgid "Ignore quantity sold when calculating profit and costs" msgstr "" + +#: includes/class-alg-wc-cog.php:166 +msgid "Cost of Goods Sold" +msgstr "" diff --git a/langs/cost-of-goods-for-woocommerce.pot b/langs/cost-of-goods-for-woocommerce.pot index d628049..7780a4e 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 3.5.2\n" +"Project-Id-Version: cost-of-goods-for-woocommerce 3.5.3\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: 2024-10-07T18:19:50+02:00\n" +"POT-Creation-Date: 2024-10-09T00:51:44+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" @@ -389,7 +389,11 @@ msgstr "" msgid "Variation archive" msgstr "" -#: includes/class-alg-wc-cog.php:264 +#: includes/class-alg-wc-cog.php:166 +msgid "Cost of Goods Sold" +msgstr "" + +#: includes/class-alg-wc-cog.php:265 msgid "Go Pro" msgstr "" diff --git a/readme.txt b/readme.txt index bd05d3a..af7c37e 100644 --- a/readme.txt +++ b/readme.txt @@ -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.6 -Stable tag: 3.5.2 +Stable tag: 3.5.3 License: GNU General Public License v3.0 License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -344,6 +344,9 @@ Once activated, access the plugin's settings by navigating to “WooCommerce > S == Changelog == += 3.5.3 - 08/10/2024 = +* Dev - Tabs removed from WPFactory submenu plugin pages. + = 3.5.2 - 07/10/2024 = * Fix - Fixed Key Manager library. diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 60f3f9e..03344cd 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -2,23 +2,23 @@ "packages": [ { "name": "wpfactory/wpfactory-admin-menu", - "version": "v1.0.1", - "version_normalized": "1.0.1.0", + "version": "v1.0.2", + "version_normalized": "1.0.2.0", "source": { "type": "git", "url": "https://github.com/wpcodefactory/wpfactory-admin-menu.git", - "reference": "5766f0d1337e1a94a5ed2057fe4fedd86e8562b6" + "reference": "89e0b637eb5af737dd4cba52a41797082cb0d7c9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wpcodefactory/wpfactory-admin-menu/zipball/5766f0d1337e1a94a5ed2057fe4fedd86e8562b6", - "reference": "5766f0d1337e1a94a5ed2057fe4fedd86e8562b6", + "url": "https://api.github.com/repos/wpcodefactory/wpfactory-admin-menu/zipball/89e0b637eb5af737dd4cba52a41797082cb0d7c9", + "reference": "89e0b637eb5af737dd4cba52a41797082cb0d7c9", "shasum": "" }, "require-dev": { "wp-cli/wp-cli-bundle": "*" }, - "time": "2024-09-27T20:07:15+00:00", + "time": "2024-10-08T22:38:02+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -46,7 +46,7 @@ ] }, "support": { - "source": "https://github.com/wpcodefactory/wpfactory-admin-menu/tree/v1.0.1", + "source": "https://github.com/wpcodefactory/wpfactory-admin-menu/tree/v1.0.2", "issues": "https://github.com/wpcodefactory/wpfactory-admin-menu/issues" }, "install-path": "../wpfactory/wpfactory-admin-menu" diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index ce44d5c..ba17545 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -3,7 +3,7 @@ 'name' => '__root__', 'pretty_version' => 'dev-master', 'version' => 'dev-master', - 'reference' => 'aaa25018e912d655d313f94f50899a5531386403', + 'reference' => '28dd26f09034d83162512371524610b84aa60c47', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -13,16 +13,16 @@ '__root__' => array( 'pretty_version' => 'dev-master', 'version' => 'dev-master', - 'reference' => 'aaa25018e912d655d313f94f50899a5531386403', + 'reference' => '28dd26f09034d83162512371524610b84aa60c47', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev_requirement' => false, ), 'wpfactory/wpfactory-admin-menu' => array( - 'pretty_version' => 'v1.0.1', - 'version' => '1.0.1.0', - 'reference' => '5766f0d1337e1a94a5ed2057fe4fedd86e8562b6', + 'pretty_version' => 'v1.0.2', + 'version' => '1.0.2.0', + 'reference' => '89e0b637eb5af737dd4cba52a41797082cb0d7c9', 'type' => 'library', 'install_path' => __DIR__ . '/../wpfactory/wpfactory-admin-menu', 'aliases' => array(), diff --git a/vendor/wpfactory/wpfactory-admin-menu/langs/wpfactory-admin-menu.pot b/vendor/wpfactory/wpfactory-admin-menu/langs/wpfactory-admin-menu.pot index 24ddab5..5a740cd 100644 --- a/vendor/wpfactory/wpfactory-admin-menu/langs/wpfactory-admin-menu.pot +++ b/vendor/wpfactory/wpfactory-admin-menu/langs/wpfactory-admin-menu.pot @@ -1,22 +1,22 @@ -#, fuzzy msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-09-26 20:14-0300\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\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" -"X-Generator: Poedit 3.2.2\n" +"POT-Creation-Date: 2024-10-08T23:53:07+02:00\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"X-Generator: WP-CLI 2.11.0\n" "X-Domain: wpfactory-admin-menu\n" -#: class-wpfactory-admin-menu.php:107 class-wpfactory-admin-menu.php:108 +#: class-wpfactory-admin-menu.php:108 +#: class-wpfactory-admin-menu.php:109 msgid "WPFactory" msgstr "" -#: class-wpfactory-admin-menu.php:131 +#: class-wpfactory-admin-menu.php:132 msgid "WPFactory plugins settings" msgstr "" diff --git a/vendor/wpfactory/wpfactory-admin-menu/src/php/class-wc-settings-menu-item-swapper.php b/vendor/wpfactory/wpfactory-admin-menu/src/php/class-wc-settings-menu-item-swapper.php index 00d1a68..4f7f171 100644 --- a/vendor/wpfactory/wpfactory-admin-menu/src/php/class-wc-settings-menu-item-swapper.php +++ b/vendor/wpfactory/wpfactory-admin-menu/src/php/class-wc-settings-menu-item-swapper.php @@ -2,7 +2,7 @@ /** * WPFactory Admin Menu - WooCommerce Settings Menu Item Swapper. * - * @version 1.0.1 + * @version 1.0.2 * @since 1.0.1 * @author WPFactory */ @@ -124,7 +124,7 @@ function replace_wc_settings_menu_item( $file ) { } /** - * hide_plugin_settings_tab. + * Hides plugin settings tab from WooCommerce settings page. * * @version 1.0.1 * @since 1.0.1 @@ -150,7 +150,7 @@ function hide_plugin_settings_tab() { args, array( 'wc_settings_tab_id' => $_GET['tab'] ) ) ) ) { + $show_current_plugin_tab = false; $tab_ids = array_column( $this->args, 'wc_settings_tab_id' ); $css_selector_arr = array(); - foreach ( $tab_ids as $tab ) { - $css_selector_arr[] = '.wrap.woocommerce .nav-tab-wrapper a[href*="tab=' . $tab . '"]'; + if ( $show_current_plugin_tab ) { + foreach ( $tab_ids as $tab ) { + $css_selector_arr[] = '.wrap.woocommerce .nav-tab-wrapper a[href*="tab=' . $tab . '"]'; + } } ?>