From d9e87871989b82ccc29bb993b0a3d760691295eb Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Mon, 24 Aug 2015 12:54:09 +0100 Subject: [PATCH] WC Setup wizard: Fix manual setting of decimal/thousand separator. Closes #8930 --- includes/admin/class-wc-admin-setup-wizard.php | 8 ++++---- readme.txt | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/includes/admin/class-wc-admin-setup-wizard.php b/includes/admin/class-wc-admin-setup-wizard.php index cd0b3f4c5c2..2e5e521fc74 100644 --- a/includes/admin/class-wc-admin-setup-wizard.php +++ b/includes/admin/class-wc-admin-setup-wizard.php @@ -299,8 +299,8 @@ class WC_Admin_Setup_Wizard { // Defaults $currency = get_option( 'woocommerce_currency', 'GBP' ); $currency_pos = get_option( 'woocommerce_currency_pos', 'left' ); - $decimal_sep = get_option( 'woocommerce_decimal_sep', '.' ); - $thousand_sep = get_option( 'woocommerce_thousand_sep', ',' ); + $decimal_sep = get_option( 'woocommerce_price_decimal_sep', '.' ); + $thousand_sep = get_option( 'woocommerce_price_thousand_sep', ',' ); $dimension_unit = get_option( 'woocommerce_dimension_unit', 'cm' ); $weight_unit = get_option( 'woocommerce_weight_unit', 'kg' ); ?> @@ -402,8 +402,8 @@ class WC_Admin_Setup_Wizard { update_option( 'woocommerce_default_country', $store_location ); update_option( 'woocommerce_currency', $currency_code ); update_option( 'woocommerce_currency_pos', $currency_pos ); - update_option( 'woocommerce_decimal_sep', $decimal_sep ); - update_option( 'woocommerce_thousand_sep', $thousand_sep ); + update_option( 'woocommerce_price_decimal_sep', $decimal_sep ); + update_option( 'woocommerce_price_thousand_sep', $thousand_sep ); update_option( 'woocommerce_weight_unit', $weight_unit ); update_option( 'woocommerce_dimension_unit', $dimension_unit ); diff --git a/readme.txt b/readme.txt index 791c5380319..a66e7ec30c2 100644 --- a/readme.txt +++ b/readme.txt @@ -166,6 +166,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc * Fix - Bulk update variation: Set manage stock when _manage_stock meta data is missing. * Fix - Bulk update variation: Allow stock to be set to 0. * Fix - Ajax variation < 2.4 attribute name handling. +* Tweak - WC Setup wizard: Fix manual setting of decimal/thousand separator. * Tweak - Set ajax/nocache headers for ajax requests. * Tweak - Add tooltips for tax status and tax class options. * Tweak - WC Setup wizard: multi-line step styling.