Skip to content

Commit

Permalink
v3.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
pablo-sg-pacheco committed Oct 8, 2024
1 parent 0594327 commit 21c6acc
Show file tree
Hide file tree
Showing 13 changed files with 113 additions and 47 deletions.
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.5.2
Version: 3.5.3
Author: WPFactory
Author URI: https://wpfactory.com
Text Domain: cost-of-goods-for-woocommerce
Expand Down
7 changes: 4 additions & 3 deletions includes/class-alg-wc-cog.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.5.1
* @version 3.5.3
* @since 3.0.3
* @author WPFactory
*/
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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' ),
) );
}

Expand Down
6 changes: 5 additions & 1 deletion langs/cost-of-goods-for-woocommerce-de_DE.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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 ""
6 changes: 5 additions & 1 deletion langs/cost-of-goods-for-woocommerce-tr_TR.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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 ""
6 changes: 5 additions & 1 deletion langs/cost-of-goods-for-woocommerce-zh_CN.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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 ""
10 changes: 7 additions & 3 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.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 <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-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"
Expand Down Expand Up @@ -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 ""

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.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

Expand Down Expand Up @@ -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.

Expand Down
14 changes: 7 additions & 7 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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"
Expand Down
10 changes: 5 additions & 5 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'name' => '__root__',
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => 'aaa25018e912d655d313f94f50899a5531386403',
'reference' => '28dd26f09034d83162512371524610b84aa60c47',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand All @@ -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(),
Expand Down
Original file line number Diff line number Diff line change
@@ -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 <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"
"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 ""
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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
Expand All @@ -150,17 +150,17 @@ function hide_plugin_settings_tab() {
<style>
<?php echo implode(', ', $css_selector_arr)?>
{
display: none
display: none;
}
</style>
<?php
}
}

/**
* hide_wc_settings_tabs.
* Hides WooCommerce settings tabs when accessing the plugin settings page.
*
* @version 1.0.1
* @version 1.0.2
* @since 1.0.1
*
* @return void
Expand All @@ -172,16 +172,32 @@ function hide_wc_settings_tabs() {
isset( $_GET['tab'] ) &&
! empty( $found_items = wp_list_filter( $this->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 . '"]';
}
}
?>
<style>
.wrap.woocommerce .nav-tab-wrapper a{
display:none;
<?php if($show_current_plugin_tab): ?>
.wrap.woocommerce .nav-tab-wrapper a {
display: none;
}

<?php else: ?>
.nav-tab-wrapper.woo-nav-tab-wrapper{
display: none;
}
.wrap.woocommerce .subsubsub{
border-top: 1px solid #c3c4c7;
margin: 7px 0 7px 0;
padding: 6px 0 0 0;
}

<?php endif; ?>
<?php echo implode(', ', $css_selector_arr)?>
{
display: block
Expand Down
Loading

0 comments on commit 21c6acc

Please sign in to comment.