Commit Graph

507 Commits

Author SHA1 Message Date
Christopher Allford 57734ca8ce Merge branch 'master' into refactor/add-jetpack-constants 2020-02-04 14:36:35 -08:00
Christopher Allford 4ae1e1f5fc Extracted the repetitive Constants::get_constant( 'WC_VERSION' ) calls where possible 2020-02-04 14:02:57 -08:00
Claudio Sanches f021a6559f
Merge pull request #25562 from woocommerce/fix/25560
Removed WC Admin from the Setup Wizard if it's already active.
2020-02-04 14:03:55 -03:00
Peter Fabian e5e5d5997e Better name for the new function. 2020-02-04 17:53:28 +01:00
Peter Fabian 4a506ebcf7
Merge pull request #25530 from woocommerce/fix/country-region-label
Fix/country region label
2020-02-04 13:54:22 +01:00
vedanshujain ee274be95a Modified "Country" to "country / Region" for more inclusiveness 2020-02-04 13:46:13 +05:30
Christopher Allford bf02776a3b Corrected inconsistent uses of the Constants library 2020-02-03 13:15:12 -08:00
Christopher Allford c5e1fc6c45 Merge remote-tracking branch 'origin/master' into refactor/add-jetpack-constants 2020-02-03 11:50:16 -08:00
Peter Fabian 04c4732e13 Unified the check for presence of WC Admin. 2020-02-03 18:04:18 +01:00
Peter Fabian aa8e8992cc Merge branch 'master' into fix/25560
# Conflicts:
#	includes/admin/class-wc-admin-setup-wizard.php
2020-02-03 17:59:24 +01:00
Peter Fabian 670dbbc5e7 Removed WC Admin from the OBW if it's already active.
Also, removed info about plugin installation if the plugin is active.
2020-02-03 17:41:50 +01:00
Peter Fabian 152a5cd52c
Merge pull request #25527 from woocommerce/fix/25526
Use enable onboarding path instead of manually setting onboarding option
2020-02-03 17:18:02 +01:00
Christopher Allford 1d1413b4ee Replaced direct access of many constants with the Constants library 2020-01-31 22:18:47 -08:00
Peter Fabian e87cea8688
Merge pull request #25501 from woocommerce/fix/25487
[4.0] Increase Onboarding A/B Test to 50%
2020-01-31 08:54:14 +01:00
Joshua Flowers 236bae9b6a Check for wc_admin_url function in onboarding redirect 2020-01-31 10:56:44 +08:00
Joshua Flowers 28af08a1cb Move exit 2020-01-31 10:52:49 +08:00
Joshua Flowers 74917a1548 Use enable onboarding path instead of manually setting onboarding option 2020-01-30 12:52:05 +08:00
Christopher Allford 6ad091a9b7 Changed all of the constant accesses into corresponding Automattic\Jetpack\Constants usages 2020-01-28 21:21:29 -08:00
TimBHowe f488f46b37 remove the pattern constraint on the flatrate input in the setup wiz 2020-01-28 11:01:13 -05:00
TimBHowe d377f002aa Added pattern attribute to the flat rate cost input field to only allow US and EU currency formating 2020-01-28 10:44:37 -05:00
TimBHowe 8b71dc0abb Updated the wc_setup_shipping_save() function to sanitize the flatrate cost input 2020-01-28 10:44:36 -05:00
Timmy Crawford 081afa256c Change a/b test size of new onboarding to 50 percent. 2020-01-27 09:01:27 -08:00
Rodrigo Primo 62d6b05b58 Fix Generic.Formatting.MultipleStatementAlignment violations
This commit fixes all violations of the Generic.Formatting.MultipleStatementAlignment sniff automatically using phpcbf.
2019-12-20 14:21:08 -03:00
Rodrigo Primo 94373f78ea Fix WordPress.Arrays.MultipleStatementAlignment errors automatically using phpcbf 2019-12-20 13:51:26 -03:00
Justin Shreve a5ee52a6c6 Add WP version check before recommending WooCommerce Admin 2019-12-18 09:29:21 -05:00
Peter Fabian 72925ef41c Centralize check for default themes.
This should make Storefront appear in the Setup Wizard again.
2019-12-11 18:35:04 +01:00
Peter Fabian d8f49787a4 Better reflect variable purpose with updated name. 2019-12-10 14:22:30 +01:00
Peter Fabian fd66112bb7 Add WP version number class to Setup Wizard/OBW body element. 2019-12-10 13:32:13 +01:00
Claudio Sanches 24c473f932
Merge pull request #24991 from woocommerce/add/new-onboarding-ab-test
Onboarding - Show the new experience to 10% of new users
2019-12-04 11:00:23 -03:00
Claudio Sanches 15ffaeee6b
Merge pull request #25101 from woocommerce/remove-call_user_func_array
Remove a few calls to func_get_args() and call_user_func_array()
2019-12-03 14:51:43 -03:00
Rodrigo Primo 00896ffb11
Merge pull request #25026 from woocommerce/fix/25022
Made usage tracking link in setup more transparent
2019-12-02 17:19:10 -03:00
Rodrigo Primo 193395ddf5 Simplify and modernize two methods
This commit replaces calls to call_user_func_array() with argument unpacking using the spread operator that was added in PHP 5.6 in the following methods:

- WC_Admin_Setup_Wizard::run_deferred_actions()
- WC_Mail::send()
2019-11-22 15:25:08 -03:00
Justin Shreve 1fabf2f145 Handle PR feedback 2019-11-21 12:23:05 -05:00
Justin Shreve ff68f30c2c Update opt-in value to 'yes' 2019-11-21 12:00:05 -05:00
Justin Shreve 18925f2218 Adds an a/b test for the new onboarding experience 2019-11-21 12:00:04 -05:00
Christopher Allford 8fd99a74b9 Added descriptive text to the usage tracking documentation link in the setup wizard 2019-11-20 12:47:56 -08:00
khokan-cn 55e2a0e199 Fixed issue #25056 2019-11-18 18:03:59 +05:30
Christopher Allford 357cd28b77 Made the usage tracking information link in the setup wizard more transparent 2019-11-12 13:27:31 -08:00
Gerhard 6d09d0efcf Fix OWB sell in person vertical alignment 2019-09-30 19:31:50 +05:30
Justin Shreve 9dfdfbf532 Check the box if the user goes back to setup and previously checked it 2019-09-26 11:31:46 -04:00
Justin Shreve 0c3fc315c5 Update tracking opt-in UI. 2019-09-24 14:26:21 -04:00
Yash Kapoor 6443515064
Update class-wc-admin-setup-wizard.php
Fixed escaping function for attribute values.
2019-08-28 19:16:24 +05:30
Yash Kapoor c3791673ef
Update class-wc-admin-setup-wizard.php 2019-08-22 17:14:34 +05:30
Yash Kapoor 365a701d34
Update class-wc-admin-setup-wizard.php
Added translation.
2019-08-22 16:40:57 +05:30
Claudio Sanches c63cd802aa
Merge pull request #23957 from woocommerce/feature/feature-plugin-packages
Include external feature plugins as packages
2019-07-10 15:47:48 -03:00
Claudio Sanches 5b8694e92a
Merge pull request #23915 from woocommerce/fix/23544
[Setup] Make PostCode optional as few countries don't use them
2019-07-10 15:45:32 -03:00
Mike Jolley c928188831 Update from master 2019-07-10 12:57:02 +01:00
Rodrigo Primo 53df16b2b5
Merge pull request #23781 from woocommerce/try/obw-changes
OBW: Switch shipping labels and shipping zones placement
2019-07-09 16:06:38 -03:00
vedanshujain dd783615cc Use helper method instead of `wp_list_pluck` to avoid notices
In country locales, many times configuration for postcodes may not be defined. In these cases, using `wp_list_pluck` will throw notices.

We now use a small helper method to extract post code configuration from country locales.
2019-07-09 18:13:27 +05:30
vedanshujain e2577b3a06 [Setup] Make PostCode optional as few countries don't use them
Some countries like Hong Kong, UAE etc don't use post codes, in which case this commit will make the field optional.
If its not known whether a country uses postcode or not, it will be required.
2019-07-09 14:37:03 +05:30