Skip to content

Commit

Permalink
v3.5.9
Browse files Browse the repository at this point in the history
  • Loading branch information
pablo-sg-pacheco committed Dec 6, 2024
1 parent f50f3c7 commit 4b747fb
Show file tree
Hide file tree
Showing 12 changed files with 3,332 additions and 19 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: Product Cost & Profit Calculator 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.8
Version: 3.5.9
Author: WPFactory
Author URI: https://wpfactory.com
Text Domain: cost-of-goods-for-woocommerce
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.5.8';
public $version = '3.5.9';

/**
* @since 1.0.0
Expand Down
6 changes: 3 additions & 3 deletions includes/settings/class-alg-wc-cog-settings-compatibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function __construct() {
/**
* get_settings.
*
* @version 3.3.3
* @version 3.5.9
* @since 2.4.6
*/
function get_settings() {
Expand All @@ -51,7 +51,7 @@ function get_settings() {
array(
'title' => __( 'Order export', 'cost-of-goods-for-woocommerce' ),
'desc' => __( 'Export order cost to sheet', 'cost-of-goods-for-woocommerce' ),
'desc_tip' => sprintf( __( 'It\'s necessary to enable the new "%s" column on <a href="%s">Order Settings</a>.' ), __( 'Cost', 'cost-of-goods-for-woocommerce' ), admin_url( 'admin.php?page=wpsyncsheets-for-woocommerce&tab=order-settings' ) ),
'desc_tip' => sprintf( __( 'It\'s necessary to enable the new "%s" column on <a href="%s">Order Settings</a>.', 'cost-of-goods-for-woocommerce' ), __( 'Cost', 'cost-of-goods-for-woocommerce' ), admin_url( 'admin.php?page=wpsyncsheets-for-woocommerce&tab=order-settings' ) ),
'type' => 'checkbox',
'id' => 'alg_wc_cog_comp_wpsyncsheets_export_order_cost',
'custom_attributes' => apply_filters( 'alg_wc_cog_settings', array( 'disabled' => 'disabled' ) ),
Expand All @@ -61,7 +61,7 @@ function get_settings() {
array(
//'title' => __( 'Order export', 'cost-of-goods-for-woocommerce' ),
'desc' => __( 'Export order profit to sheet', 'cost-of-goods-for-woocommerce' ),
'desc_tip' => sprintf( __( 'It\'s necessary to enable the new "%s" column on <a href="%s">Order Settings</a>.' ), __( 'Profit', 'cost-of-goods-for-woocommerce' ), admin_url( 'admin.php?page=wpsyncsheets-for-woocommerce&tab=order-settings' ) ),
'desc_tip' => sprintf( __( 'It\'s necessary to enable the new "%s" column on <a href="%s">Order Settings</a>.', 'cost-of-goods-for-woocommerce' ), __( 'Profit', 'cost-of-goods-for-woocommerce' ), admin_url( 'admin.php?page=wpsyncsheets-for-woocommerce&tab=order-settings' ) ),
'type' => 'checkbox',
'id' => 'alg_wc_cog_comp_wpsyncsheets_export_order_profit',
'custom_attributes' => apply_filters( 'alg_wc_cog_settings', array( 'disabled' => 'disabled' ) ),
Expand Down
18 changes: 9 additions & 9 deletions includes/settings/class-alg-wc-cog-settings-products.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Cost of Goods for WooCommerce - Products Section Settings.
*
* @version 3.3.3
* @version 3.5.9
* @since 1.7.0
* @author WPFactory
*/
Expand All @@ -28,7 +28,7 @@ function __construct() {
/**
* get_settings.
*
* @version 3.3.3
* @version 3.5.9
* @since 1.7.0
* @todo [later] Cost field label: use in quick and bulk edit
* @todo [later] `alg_wc_cog_products_add_stock`: better description
Expand Down Expand Up @@ -108,18 +108,18 @@ function get_settings() {
)
),
array(
'title' => __( 'Cost field position', 'ean-for-woocommerce' ),
'desc_tip' => __( 'Manages where the Cost field will be displayed on the product edit page.', 'ean-for-woocommerce' ),
'title' => __( 'Cost field position', 'cost-of-goods-for-woocommerce' ),
'desc_tip' => __( 'Manages where the Cost field will be displayed on the product edit page.', 'cost-of-goods-for-woocommerce' ),
'id' => 'alg_wc_cog_product_cost_field_position',
'default' => 'woocommerce_product_options_pricing',
'type' => 'select',
'class' => 'chosen_select',
'options' => array(
'woocommerce_product_options_pricing' => __( 'General > Pricing', 'ean-for-woocommerce' ),
'woocommerce_product_options_general_product_data' => __( 'General', 'ean-for-woocommerce' ),
'woocommerce_product_options_inventory_product_data' => __( 'Inventory', 'ean-for-woocommerce' ),
'woocommerce_product_options_sku' => __( 'Inventory > SKU', 'ean-for-woocommerce' ),
'woocommerce_product_options_advanced' => __( 'Advanced', 'ean-for-woocommerce' ),
'woocommerce_product_options_pricing' => __( 'General > Pricing', 'cost-of-goods-for-woocommerce' ),
'woocommerce_product_options_general_product_data' => __( 'General', 'cost-of-goods-for-woocommerce' ),
'woocommerce_product_options_inventory_product_data' => __( 'Inventory', 'cost-of-goods-for-woocommerce' ),
'woocommerce_product_options_sku' => __( 'Inventory > SKU', 'cost-of-goods-for-woocommerce' ),
'woocommerce_product_options_advanced' => __( 'Advanced', 'cost-of-goods-for-woocommerce' ),
),
),
array(
Expand Down
30 changes: 30 additions & 0 deletions langs/cost-of-goods-for-woocommerce-de_DE.po
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@ msgid "Average profit"
msgstr "Durchschnittlicher Gewinn"

#: includes/settings/class-alg-wc-cog-settings-advanced.php:24
#: includes/settings/class-alg-wc-cog-settings-products.php:122
msgid "Advanced"
msgstr "Fortschrittlich"

Expand Down Expand Up @@ -3159,3 +3160,32 @@ msgstr ""
#: includes/settings/class-alg-wc-cog-settings-gateways.php:94
msgid "Maximum absolute value returned for the percent calculation."
msgstr ""

#: includes/settings/class-alg-wc-cog-settings-compatibility.php:54
#: includes/settings/class-alg-wc-cog-settings-compatibility.php:64
msgid "It's necessary to enable the new \"%s\" column on <a href=\"%s\">Order Settings</a>."
msgstr ""

#: includes/settings/class-alg-wc-cog-settings-products.php:111
msgid "Cost field position"
msgstr ""

#: includes/settings/class-alg-wc-cog-settings-products.php:112
msgid "Manages where the Cost field will be displayed on the product edit page."
msgstr ""

#: includes/settings/class-alg-wc-cog-settings-products.php:118
msgid "General > Pricing"
msgstr ""

#: includes/settings/class-alg-wc-cog-settings-products.php:119
msgid "General"
msgstr ""

#: includes/settings/class-alg-wc-cog-settings-products.php:120
msgid "Inventory"
msgstr ""

#: includes/settings/class-alg-wc-cog-settings-products.php:121
msgid "Inventory > SKU"
msgstr ""
Binary file added langs/cost-of-goods-for-woocommerce-nl_NL.mo
Binary file not shown.
Loading

0 comments on commit 4b747fb

Please sign in to comment.