Commit Graph

522 Commits

Author SHA1 Message Date
Mike Jolley e3b61f6203
Merge pull request #18151 from woocommerce/fix/18149
Save offline gateways in wizard
2017-12-14 16:45:20 +00:00
Mike Jolley 1555507756
Merge pull request #18123 from woocommerce/update/setup-wizard-omit-paypal-standard
Setup wizard: Omit PayPal Standard unless plugins cannot be installed
2017-12-14 16:42:03 +00:00
claudiulodro cf86647de3 Save offline gateways in wizard 2017-12-13 13:38:33 -08:00
Paul Dechov 8f3de46637
Merge branch 'master' into update/setup-wizard-omit-paypal-standard 2017-12-13 09:41:25 -05:00
Paul Dechov d7ae29fe51 Fix UK country code in Square support check 2017-12-13 09:37:15 -05:00
Paul Dechov f4c557a9be Add test verifying that the correct list of payment gateways is returned per country 2017-12-13 09:35:43 -05:00
Mike Jolley 71c9025709 Updates CSS for chevron to work across browsers - input::before is not supported in Firefox. 2017-12-13 14:30:00 +00:00
Paul Dechov b1b604b401 Fix stripe being shown in Klarna and Square cases regardless of Stripe support
No difference in practice, since I believe all Klarna and Square countries are supported by Stripe, but for robustness this should be explicitly checked.
2017-12-12 20:39:04 -05:00
Paul Dechov b26a3ca1a2 Fix 'Klarna Payments' name 2017-12-12 20:22:01 -05:00
Paul Dechov 4511c5ae12 Make PPEC opt-out in every case 2017-12-12 20:21:21 -05:00
Paul Dechov 1706c3e152 Refactor 'get_wizard_in_cart_payment_gateways' function
Extract function that returns all possible in-cart gateways, and tighten the logic overall.
2017-12-12 20:20:26 -05:00
Paul Dechov 080c5b50e7 Omit PayPal Standard unless plugins cannot be installed 2017-12-12 14:04:36 -05:00
Paul Dechov 200c6780e9 Setup wizard: omit unnecessary sentence from PPEC settings description 2017-12-12 13:57:46 -05:00
Mike Jolley a89b8cd707 Update the logo in the wizard 2017-12-12 17:38:10 +00:00
claudiulodro 4af3f9f12f Add class back to paypal in wizard 2017-12-12 08:24:35 -08:00
claudiulodro ba363b6353 Bring up-to-date with master and resolve conflicts 2017-12-11 11:36:00 -08:00
claudiulodro 3b94d0c52b Bring up-to-date with master and resolve conflict 2017-12-11 10:27:05 -08:00
Paul Dechov 0f84a5eb4b Revise checkbox label 2017-12-11 09:50:27 -05:00
Marcin Bot d0756a4a36 Fixed the undefined index notice 2017-12-07 11:20:04 +00:00
Paul Dechov 1433347eda Remove unused description string for Braintree 2017-12-06 15:36:46 -05:00
Paul Dechov f2cc10922a Add full stops to code comments 2017-12-06 14:53:31 -05:00
Paul Dechov c75f5f54af Show PPEC instead of Braintree in US, and remove Braintree altogether 2017-12-06 10:02:32 -05:00
Paul Dechov 94da7ffbed Default PPEC to enabled 2017-12-06 10:01:55 -05:00
Paul Dechov 28c4dc0fbe Install WCS if PPEC settings set 2017-12-06 09:19:39 -05:00
Paul Dechov eecd0db0f0 Tweak checkbox label 2017-12-06 09:19:08 -05:00
Paul Dechov 4155f02ec8 Make sure PPEC settings are opened if enabled on load 2017-12-06 09:18:06 -05:00
Marcin Bot 0d12b31a13 Updated the Klarna logo 2017-12-06 14:04:28 +00:00
Paul Dechov 6500b11db8 Adjust logo widths to match design and approximately equalize prominence 2017-12-05 19:55:43 -05:00
Paul Dechov 9a3b63036f Address 'Undefined index' notice by checking for set param 2017-12-05 14:56:15 -05:00
Paul Dechov 570a2e9512 Add PPEC settings to wizard, to facilitate rerouting via WCS 2017-12-05 14:53:44 -05:00
Marcin Bot 399e2893e1 Updated the Klarna logo 2017-12-05 17:06:35 +00:00
Marcin Bot 10f912a0a9 Split Klarna into two plugins and updated their display logic 2017-12-05 16:38:19 +00:00
Marcin Bot d1e4d0fe3c Fixed a <label>'s id 2017-12-05 16:21:36 +00:00
Marcin Bot fbc630114c Fixed the payment gateways link 2017-12-05 16:21:36 +00:00
Marcin Bot 628906a5bc Added Klarna and Square CSS classes 2017-12-05 16:20:15 +00:00
Marcin Bot 6dae7f3451 Fixed an i18n domain 2017-12-05 16:20:15 +00:00
Marcin Bot 8b0e0e3df4 Fixed the copies 2017-12-05 16:20:15 +00:00
Valerie 8c6d069377 Add Square to wizard payment step 2017-12-05 16:20:15 +00:00
Valerie e28341a9a3 Wizard: Ask user if selling in person 2017-12-05 16:20:15 +00:00
Valerie 6d2ca0fd15 Add Klarna to wizard payment step 2017-12-05 16:20:15 +00:00
Claudio Sanches f395fcd2e8 Fixed missing text domain in setup wizard 2017-11-20 22:08:23 -02:00
Valerie e9985146d5 Wizard: Fix escaping in payment description 2017-11-16 11:29:21 -05:00
claudiulodro 3c5ede6e14 Dont need placeholder any more 2017-11-07 11:41:12 -08:00
claudiulodro 862060cba9 Add default to "What type of product do you plan to sell" 2017-11-07 11:39:37 -08:00
Gerhard Potgieter 8add04b92e Change input to button for submit in class-wc-admin-setup-wizard.php 2017-11-06 14:31:22 +02:00
Gerhard Potgieter 99f38e72c1 PHPCS changes for class-wc-admin-setup-wizard.php 2017-11-06 14:26:17 +02:00
Mike Jolley cb998799c6
Merge pull request #17298 from dechov/update/ignore-existing-unit-option-values-in-wizard
Ignore existing unit option values in wizard in favor of national unit conventions
2017-10-30 12:55:06 +00:00
Mike Jolley 5824cb9358 Update stripe wording
Closes #16385
2017-10-27 13:48:48 +01:00
Paul Dechov d048e4d355 Use measurement unit defaults in locale-info instead of hard coding 2017-10-26 09:28:18 -04:00
Paul Dechov fee6f954dc Ignore existing unit option values in wizard, in favor of national conventions 2017-10-26 09:21:35 -04:00
Marcin Bot 234d9e05a5 Fixed the jetpack redirect url for sites in subdirectories (#17312)
* Fixed the jetpack redirect url for sites in subdirectories

* Using admin_url instead of get_admin_url for consistency

* Wrapped the generated url in esc_url_raw
2017-10-26 13:40:54 +01:00
Paul Dechov 9c2df6486c Default currency responds to country selection in setup wizard (#17318)
* Default currency responds to country selection in wizard

* Refactor to use wp_list_pluck

* Use <script> tag to define global instead of using hidden <input>

* Revert ignoring currency option value on page load
2017-10-26 13:39:54 +01:00
Mike Jolley b0c9efbdc2 Merge pull request #17267 from Umangvaghela/fix-17264
fix 17264 issue
2017-10-18 08:25:50 -07:00
Paul Dechov 85af075566 Check for proper currency when getting WCS live rates carrier in setup wizard (#17240) 2017-10-18 11:09:33 -04:00
Umangvaghela 1b7b3f214e fix issue 2017-10-18 15:11:59 +05:30
Mike Jolley 8fa3ddde86 Tweaked intro text further about live rates 2017-10-12 18:29:23 +01:00
Mike Jolley a447221213 wc_setup_wcs_tout is not used. 2017-10-12 17:19:47 +01:00
Mike Jolley a1f4cc0464 Show what powers taxes and link, just like storefront 2017-10-12 17:19:17 +01:00
Mike Jolley 9198d636c5 This installs jetpack/services - be clear 2017-10-12 17:18:37 +01:00
Mike Jolley 806f80c8d2 Be explicit about what powers live rates 2017-10-12 17:18:15 +01:00
Mike Jolley 12d93803ee Merge pull request #17121 from woocommerce/update/wizard-payments-copy
Update payment step copy for Stripe, and fixes margins/spacing
2017-10-11 10:17:57 +01:00
Marcin Bot 17e4f2a609 Merge pull request #17127 from woocommerce/fix/17122-setup-required-shipping-fields
Setup wizard - made the shipping cost fields required
2017-10-10 18:50:20 +02:00
Marcin Bot 01578d55c9 Wrapped the class name in esc_attr 2017-10-10 17:49:04 +01:00
Marcin Bot eaf8a09e82 Setup wizard - made the shipping cost fields required 2017-10-10 16:59:08 +01:00
Jeff Stieler 24599524ba Setup wizard: add “powered by” to automated taxes description. 2017-10-10 09:24:13 -06:00
Mike Jolley 6b357bcfdc Updates the payment step copy and fixes margins 2017-10-10 15:40:03 +01:00
Jeff Stieler 974f402017 Fix duplicate plugin install from wizard. (#17114)
* Setup wizard: avoid duplicate plugin installs.
* Setup wizard: use background flag to determine if Jetpack is being installed.
* Setup wizard: use wc_set_time_limit() instead of set_time_limit() to avoid potential warnings/errors.
2017-10-09 16:45:33 -06:00
Jeff Stieler c5f097f319 Setup wizard: check for activate-step-specific GET parameters before hiding the step.
This was a bit overzealous, and broke successful connection flows from the wizard. (Introduced in 97faa49fc4)
2017-10-09 08:55:30 -06:00
Mike Jolley 74fb3821e2 Merge pull request #17096 from woocommerce/add/17092-jetpack-tos-accept-flag
Setup wizard: set a flag when Jetpack is opted into.
2017-10-09 11:39:32 +01:00
Jeff Stieler 000295c0bf Setup wizard: remove the “activate” step if Jetpack is already connected. (#17099)
* Setup wizard: remove the “activate” step if Jetpack is already connected.

* phpcs
2017-10-09 11:35:17 +01:00
Jeff Stieler 4c66520989 Setup wizard: set a flag when Jetpack is opted into.
This is to be picked up by the WooCommerce Services extension.
2017-10-06 20:40:25 -06:00
Valerie K b4088c5d91 Wizard: Handle Jetpack install, activate, and connection errors (#16983)
* Wizard: Remove extra query arg in next step URL

Remove the activate_error query arg from
the URL for the next step.

* Wizard: Remove temp queued Jetpack install option

This is done so that the option does not remain
when going through the wizard again, or when going
back to previous pages.

It prevents an infinite loop from happening when
waiting for the Jetpack install and activation
to finish on the activate step.

* Wizard: Install and activate Jetpack if needed

Add function to install & activate Jetpack as needed.
Props to @jeffstieler for the idea, and the implementation/code:
https://github.com/Automattic/woocommerce-services/pull/1031#discussion_r122505316
https://github.com/Automattic/jetpack/blob/master/3rd-party/woocommerce-services.php#L101

Add a list of errors and a function to get the correct error message.

After clicking the connect Jetpack button, make sure that
Jetpack is installed and activated.

On error, redirect to the activate page with a query arg.

* Wizard: Show Jetpack error message if it exists

Always check for an error message when displaying
the activate step. If the error
message exists, display it at the top of the page.

* Remove redundant "if" so the $title in the Activate step is always a valid string

* Tweaked the "Server is on a private network" Jetpack activation error message.
2017-10-05 12:51:49 +01:00
Valerie K 61caed9cb8 Wizard: Add Stripe Email (#17029)
* Wizard: Add Stripe email input, show previously entered payment settings, only save settings for enabled gateways
2017-10-04 13:37:59 -06:00
Jeff Stieler b72ad3f2cc Setup wizard: fix logic error when detecting existing shipping zones. (#16995)
* Setup wizard: fix logic error when detecting existing shipping zones.
* Hide the shipping zones sections on the Shipping step if there are already shipping zones configured in the store.
2017-10-04 11:48:06 -06:00
Valerie 60e9258913 Wizard: Update option for types of product sold 2017-10-03 17:38:08 +02:00
Valerie 3ca5ded150 Wizard: Reset live rates options on save 2017-10-03 17:30:00 +02:00
Valerie 450236c8d9 Wizard: Update store setup text 2017-10-03 17:30:00 +02:00
Valerie 9da7925288 Wizard: Fix paragraph bottom margin
Avoid too little bottom margin when the paragraph
is the last paragraph on the page, but not the last element.

Avoid too much bottom margin when there were nonce fields
after the last paragraph on the page.
2017-10-03 17:29:22 +02:00
Valerie 9a2ab72cd6 Wizard: Style tracking option 2017-10-03 17:26:32 +02:00
Jeff Stieler f6c0054aa1 Setup wizard: use a setup wizard specific ID for the Jetpack connection URL. 2017-09-27 14:04:40 -06:00
Valerie 5e33fc0b58 Wizard: Fix bad email check for Stripe status
We are no longer asking for the user's email or
saving it, so it shouldn't be checked against.
2017-09-27 23:03:01 +03:00
Valerie 72f9ce08ac Wizard: Move Jetpack TOS above button 2017-09-27 22:48:33 +03:00
Jeff Stieler 6793afed50 Setup wizard: for non-Services merchants, mention that Jetpack is for “extra” features on the activate step. 2017-09-27 13:27:52 -06:00
Valerie b772b002a9 Wizard: Save payments enabled status
- toggle payment option on if its setting was previously saved,
  or if it's listed as to be toggled on be default
- check if setting is saved as enabled in options
2017-09-27 22:26:13 +03:00
Jeff Stieler 3f7c3af3e5 Setup wizard: default Stripe gateway on, swap email input for opt-in account creation. 2017-09-27 13:14:13 -06:00
Jeff Stieler 7b9b09e9ad Setup wizard: consolidate translations for Jetpack enabled features list as much as possible. 2017-09-27 12:46:01 -06:00
Valerie 8c2a2860e3 Wizard: Correctly save taxes opt-in status
- Make sure to save the option every time, even if not selected
- Show the corresponding state in the toggle
2017-09-27 20:05:41 +03:00
Valerie 0b2bad8122 Wizard: Update 'WP Admin' to 'dashboard' 2017-09-27 17:30:09 +03:00
Valerie bd98a7098d Wizard: Remove superfluous description in last step 2017-09-27 17:29:40 +03:00
Valerie d6c94e4837 Wizard: Remove superfluous Extras description 2017-09-27 17:26:43 +03:00
Valerie a09b7f1670 Wizard: Update shipping info text 2017-09-27 17:24:50 +03:00
Jeff Stieler 3a3ae914a3 Setup wizard: add TOS blurb to the “activate” step. 2017-09-26 15:10:30 -06:00
Valerie f183344a9c Wizard: Style footnote on last page 2017-09-26 15:10:30 -06:00
Valerie 83d7b03883 Wizard: Style next actions section 2017-09-26 15:10:29 -06:00
Valerie 2348faf9e5 Wizard: style newsletter form 2017-09-26 15:10:29 -06:00
Valerie f4bc596664 Wizard: Make payment service email required 2017-09-26 15:10:29 -06:00
Valerie 5a7db686c5 Wizard: Add placeholder to flat rate cost input 2017-09-26 15:10:29 -06:00
Valerie aee55f4b68 Wizard: Style shipping method selection 2017-09-26 15:10:29 -06:00
Valerie 17a97ca3f7 Wizard: Remove inline CSS for unit dropdowns 2017-09-26 15:10:28 -06:00
Valerie 4be979f322 Setup wizard: Style email input for payment service 2017-09-26 15:10:28 -06:00
Valerie 1dadabaa56 Setup wizard: Style store info form 2017-09-26 15:10:28 -06:00
Valerie 244296b814 Setup wizard: Update button style 2017-09-26 15:10:27 -06:00
Valerie 426c0c2743 Setup wizard: Style Jetpack logo 2017-09-26 15:10:27 -06:00
Valerie 24e3db78ec Setup wizard: Style Jetpack feature sections 2017-09-26 15:10:27 -06:00
Valerie 0f04645bea Setup wizard: Show correct shipping text on select 2017-09-26 15:10:27 -06:00
Valerie 1960b6bcd1 Setup wizard: Fix thick border in toggle list 2017-09-26 15:10:27 -06:00
Valerie 18deb4dc2e Setup wizard: Style shipping unit selection 2017-09-26 15:10:26 -06:00
Valerie 43949c2b74 Setup wizard: Add shipping units descriptions 2017-09-26 15:10:26 -06:00
Valerie fc5aa77259 Setup wizard: Style shipping method description 2017-09-26 15:10:26 -06:00
Daniel Rey Lopez a5d8c371b4 Added logic to install the plugins and themes asynchronously but without using wp-cron 2017-09-26 15:10:25 -06:00
Daniel Rey Lopez 28964433fb Added wrapper function for installing a theme 2017-09-26 15:10:25 -06:00
Daniel Rey Lopez 73183634d2 Removed unused "background" argument, since it's always true 2017-09-26 15:10:25 -06:00
Daniel Rey Lopez 5c867094cc Remove unused install_jetpack() function parameter. 2017-09-26 15:10:25 -06:00
Jeff Stieler 3ba7617594 Setup wizard: change copy to “recommended” extras. 2017-09-26 15:10:24 -06:00
Jeff Stieler 09bbb1c3de Setup wizard: update the copy in several places. 2017-09-26 15:10:24 -06:00
Jeff Stieler 5ced91d56f Setup wizard: update comments to have ending punctuation and fix a few typos. 2017-09-26 15:10:24 -06:00
Jeff Stieler 47085db0b2 Setup wizard: refactor featured service check to be more efficient.
Use `empty()` instead of `isset()` and a comparison.
2017-09-26 15:10:24 -06:00
Jeff Stieler e220926b65 Setup wizard: remove markup (where possible) from the translated Stripe service description. 2017-09-26 15:10:24 -06:00
Jeff Stieler e4614b39e3 Setup wizard: make Stripe an opt-in gateway, rename “manual payments” to “offline” payments to align with the header text. 2017-09-26 15:10:24 -06:00
Jeff Stieler e6dc95432a Setup wizard: hide settings until a service is enabled. 2017-09-26 15:10:23 -06:00
Jeff Stieler 3a09d74ed4 Setup wizard: use email address of the current user (not the admin) on payments and “ready!” steps. 2017-09-26 15:09:44 -06:00
Jeff Stieler 27c6a3a141 Setup wizard: clean up unused array keys when determining Stripe country support. 2017-09-26 15:09:44 -06:00
Jeff Stieler 202808fdb8 Setup wizard: fix missing translations on payments step. 2017-09-26 15:09:43 -06:00
Jeff Stieler 3fda0f00a0 Setup wizard: remove contraction and add oxford comma to tailored “activate” step messaging. 2017-09-26 15:09:43 -06:00
Jeff Stieler a3ce6b8e81 Setup wizard: fix coding standard issues with “activate” step tailored messaging. 2017-09-26 15:09:43 -06:00
Marcin Bot 5c3e505539 Fixed the way the Jetpack string is translated 2017-09-26 15:09:43 -06:00
Marcin Bot d2116c576c Tailored the Jetpack step message to the services selected 2017-09-26 15:09:42 -06:00
Jeff Stieler 592508fc49 Setup wizard: ensure that the current user can install plugins for any setup feature that requires it. 2017-09-26 15:09:42 -06:00
Jeff Stieler e19db10be8 Setup wizard: short circuit the shipping zone setup earlier. 2017-09-26 15:09:42 -06:00
Jeff Stieler 4bf21b9724 Setup wizard: remove now unused locale and tax interactions from client side script. 2017-09-26 15:09:41 -06:00
Jeff Stieler b5fba545f6 Setup wizard: set currency formatting options based on store location. 2017-09-26 15:09:41 -06:00
Jeff Stieler 6c08b9644b Setup wizard: wait for in-progress Jetpack installation to complete before submitting form.
We need to know that Jetpack is active before moving to the next step. The previously logic fired off a synchronous installation that caused a race condition.
2017-09-26 15:09:41 -06:00
Jeff Stieler c4c19623c0 Setup wizard: set flag for queued Jetpack installs.
This sets up the ability to avoid installation race conditions.
2017-09-26 15:09:41 -06:00
Jeff Stieler 337e3c02e4 Setup wizard: queue Jetpack installation ahead of payment gateways. 2017-09-26 15:09:41 -06:00
Jeff Stieler c0bc74154d Setup wizard: fix PHP warnings when saving shipping method settings. 2017-09-26 15:09:40 -06:00
Jeff Stieler 325cea86c6 Setup wizard: keep user in setup wizard in case of Jetpack connection error. 2017-09-26 15:09:40 -06:00
Jeff Stieler b85d311dff Setup wizard: save shipping method settings chosen on shipping step. 2017-09-26 15:09:40 -06:00
Jeff Stieler 081bcb2fc2 Setup wizard: refactor shipping method form rendering to group inputs into an array. 2017-09-26 15:09:39 -06:00
Jeff Stieler 96b0fcaacf Setup wizard: simplify automated tax eligibility check.
Use the WC_Countries class to gather EU countries.
2017-09-26 15:09:39 -06:00
Jeff Stieler e8ee3fd35a Setup wizard: enable tax calculation if automated taxes are enabled. 2017-09-26 15:09:39 -06:00
Jeff Stieler 5642868436 Setup wizard: add method-specific settings and descriptions to shipping step. 2017-09-26 15:09:39 -06:00
Jeff Stieler 59ca25aba7 Setup wizard: fix UI block when HTML5 form validation fails. 2017-09-26 15:09:38 -06:00
Jeff Stieler 2e85ff1c0e Setup wizard: revert to combined country/state selection in initial step. 2017-09-26 15:09:38 -06:00
Jeff Stieler 5f5a4da48d Setup wizard: update “ready” step overall structure.
Removed tweet, updated text. Note: completely unstyled.
2017-09-26 15:09:38 -06:00
Jeff Stieler 1a8cb7a6a4 Setup wizard: update “activate” step overall structure.
Change the Jetpack feature descriptions, graphic, placement of CTA button. Note: completely unstyled.
2017-09-26 15:09:38 -06:00
Jeff Stieler 189fbd571b Setup wizard: remove now unused “theme” step. 2017-09-26 15:09:37 -06:00
Jeff Stieler 1034dc597b Setup wizard: “extras” step save handler. 2017-09-26 15:09:37 -06:00
Jeff Stieler 4daef097fd Setup wizard: replace “theme” step with “extras” step.
Presentation only. Determine need for a WooCommerce theme and support for automated taxes, showing options to enable each. If the store isn’t eligible for either, hide the step entirely.
2017-09-26 15:09:37 -06:00
Jeff Stieler 90acbe97b4 Setup wizard: update shipping step save method.
The shipping step now detects if live rates can be configured and allows the user to add shipping methods to a domestic and international zone. Note: flat rate shipping still needs an input for rate.
2017-09-26 15:09:37 -06:00
Jeff Stieler d1c5b8239b Setup wizard: basic layout changes for shipping step.
Still needs finer touches in styling and dynamic descriptions for shipping method options.
2017-09-26 15:09:37 -06:00
Jeff Stieler 32dcfaa080 Setup wizard: fix PHP warning ‘undefined index’ in service item display method. 2017-09-26 15:09:36 -06:00
Valerie 666983bfaa Setup wizard: Fix spacing 2017-09-26 15:09:36 -06:00
Valerie afd9646c8f Setup wizard: Add country-based intro to Shipping 2017-09-26 15:09:36 -06:00
Valerie 89f34c4996 Setup wizard: Fix typo 2017-09-26 15:09:10 -06:00
Valerie e23aefef13 Setup wizard: Add toggle for manual payment list 2017-09-26 15:09:10 -06:00
Valerie 04574700a5 Setup wizard: Update Stripe featured style
- filter in-cart payment gateways by featured
- display featured and others in separate lists
2017-09-26 15:08:31 -06:00
Valerie 1eda1a026d Setup wizard: Add function to display service rows
- Update style
- Use new reusable class 'wc-wizard-services' instead of
'wc-wizard-payment-gateways'
- Update JS script for toggling checkboxes
- Update payment gateways: in-cart and manual
- Update POST variable names in save function
2017-09-26 15:08:31 -06:00
Valerie 39028f082a Setup wizard: Remove extra variable assignment 2017-09-26 15:07:14 -06:00
Valerie 32df816077 Setup wizard: Fix typo in PayPal Braintree description 2017-09-26 15:07:14 -06:00
Valerie 231f5190a2 Setup wizard: Fix Stripe description markup 2017-09-26 15:07:13 -06:00
Valerie c79320d9e4 Setup wizard: Move tracking checkbox to end of page 2017-09-26 15:07:13 -06:00
Valerie daabafbe24 Setup wizard: Add label for second address field 2017-09-26 15:07:13 -06:00
Jeff Stieler 65110cebea Setup wizard: show previously selected product type and remove shipping step when selling digital products only. 2017-09-26 15:07:13 -06:00
Jeff Stieler a196fdfc94 Setup wizard: install Jetpack and initiate connection flow when “saving” the activate step. 2017-09-26 15:07:12 -06:00
Jeff Stieler 99beab7070 Setup wizard: allow plugin install to happen immediately. 2017-09-26 15:07:12 -06:00
Jeff Stieler a83bcd7c39 Setup wizard: install WooCommerce Services if Stripe gateway is enabled. 2017-09-26 15:07:12 -06:00
Jeff Stieler 11d145fbc8 Setup wizard: refactor plugin installation logic and use it in payment gateway save method. 2017-09-26 15:07:12 -06:00
Jeff Stieler 94936ccda0 Setup wizard: refactor WooCommerce Services installer logic to be reusable. 2017-09-26 15:07:11 -06:00
Jeff Stieler 14066f33ec Setup wizard: add “skip” link to activate step. 2017-09-26 15:07:11 -06:00
Jeff Stieler 7e2ffa2043 Setup wizard: add “activate” step, modeled after theme step.
Initial commit - needs styling love and Jetpack connection hookup.
2017-09-26 15:07:11 -06:00
Jeff Stieler a423098193 Setup wizard: remove “location” step. 2017-09-26 15:07:11 -06:00
Jeff Stieler 91dfc4875e Setup wizard: remove “skip” link from payments step. 2017-09-26 15:07:10 -06:00
Jeff Stieler c9dd317b2e Setup wizard: differentiate between “in cart” and “manual” payment gateways.
This is in preparation to display the manual gateways behind a collapsable control.
2017-09-26 15:07:10 -06:00
Jeff Stieler 49443388d7 Setup wizard: check country for Stripe support before defaulting to it. 2017-09-26 15:07:10 -06:00
Jeff Stieler 70588a4a99 Setup wizard: update Stripe gateway description, default it to enabled. 2017-09-26 15:07:10 -06:00
Jeff Stieler 81773cc253 Setup wizard: replace “pages” step with “payments”. 2017-09-26 15:07:09 -06:00
Jeff Stieler 72c744e2d2 Setup wizard: remove (now) unused introduction step. 2017-09-26 15:07:09 -06:00
Jeff Stieler 9c45bd07c7 Setup wizard: save settings from initial “store setup” step. 2017-09-26 15:07:09 -06:00
Jeff Stieler 30fd62cfb8 Setup wizard: add “not right now” dashboard link on the initial wizard step. 2017-09-26 15:07:09 -06:00
Jeff Stieler b159347cfb Setup wizard: highlight first step in progress indicator. 2017-09-26 15:07:09 -06:00
Jeff Stieler 15d1edb180 Setup wizard: replaced “introduction” step with “store setup”.
New store setup step contains location, currency, page setup, and tracking opt-in. Form is display only.
2017-09-26 15:07:08 -06:00
Dharmesh Patel ce764eb6ba fixed issue #16610 2017-08-26 00:36:06 +05:30
Mike Jolley fcef2c7f71 Copy update 2017-08-18 18:21:23 +01:00
Mike Jolley 86a225a8d9 Newsletter signup 2017-08-08 18:00:47 +01:00
Mike Jolley 5443f44fcc Improve location step 2017-08-08 17:32:21 +01:00
Jaydeep Rami 3522857d23 Fix typo in WooCommerce plugin (#16135)
* Fixed typo

* Fixed more typo

* Fixed more typo

* Fix tyop

* Fix more typo

* Fix more typo

* Fix typo

* Fix typo

* Fix typo

* Fix typo datatime object

* Fix short name of compat

* Fix typo: update short name

* Fix typo "deactive" to "deactivate" and short BW - Compat

* Fix typo "Backwards compat"

* Fix typo 'parameters'

* Fix more typo 'pararmeters'

* Fix typo 'compund'

* FIx typo order

* Fix typo

* Fix typo 'incorrecly'

* Fix typo 'genarate'

* Fix typo 'reletive'

* Fix typo 'Handly'

* Fix typo 'rotatated'

* Fix typo

* Fix typo 'additonal'

* Fix typos
2017-07-17 11:10:52 +01:00
Akeda Bagus 53807185a8
Fixed typos.
These typos are catched by `misspell` program.

```
find . -type f | grep -v assets | grep -v dummy-data | grep -v i18n | grep -v node_modules | grep -v .git | grep -v apigen |  xargs misspell -w
```

Some results were excluded because of 3rd party ownership and non-english
sentences.
2017-07-10 12:56:28 +07:00
claudiulodro 8a8daabf26 Update with master and recompile assets 2017-07-06 09:06:30 -07:00
claudiulodro a2867fae6a Set up select2 and selectWoo 2017-07-06 08:43:10 -07:00
Mike Jolley 77c938202f Merge branch 'add/15602-store-street-level-address'
# Conflicts:
#	assets/css/admin-rtl.css
#	assets/css/admin.css
2017-06-30 15:00:51 +01:00
Claudio Sanches b9c76c568b Prefer "live rates form" 2017-06-27 17:00:48 -03:00
Allen Snook 0f311f0cba Add address, address 2, city and postcode to setup wizard 2017-06-19 12:22:05 -07:00
Valerie K 66259ebff1 Update WooCommerce Services copy (#15598)
* Remove excess explanation from wizard shipping step

* Remove distracting link from shipping wizard page

* Update copy on extensions WCS banner

* Update copy on WCS extensions banner for Canada

* Fix extensions WCS banner when read from json

* Add Canada copy on wizard shipping step

* Use strict array comparison in WCS shipping tout

* Add service logos to WCS extension banner

* Use strict array comparison in WCS banner

* Remove related extensions when showing WCS banner

- when store is based in Canada remove Canada Post
extension from shipping page
- when store is based in US remove USPS
extension from shipping page

* Add image alt for logos on WCS banners

* Update WCS banner and wizard content
2017-06-14 11:24:45 +01:00
Nabeel Sulieman 5f0c84ee13 payment_gateways should be payment-gateways 2017-05-31 11:44:52 -07:00
Nabeel Sulieman 62d7937a52 Only queue woocommerce services install if it's not active 2017-05-31 09:36:33 -07:00
Nabeel Sulieman 27a3e83642 - WooCommerce services enabled by default
- Clicking "skip" on shipping page should disable shipping
2017-05-31 09:36:32 -07:00
Mike Jolley fc5b4f0482 Only show no_shipping_methods notice if services is not being installed 2017-05-31 09:36:32 -07:00
Mike Jolley c25b844761 Tweak handler 2017-05-31 09:36:32 -07:00
Mike Jolley c53c83aebb Tweak test and styling 2017-05-31 09:36:32 -07:00
Nabeel Sulieman c49fa38e2c Make units controls look the same for touted and non-touted
Rename local functions to "location"
2017-05-31 09:33:50 -07:00
Nabeel Sulieman e940544a2a Use Inches and Ounces as default measurement units when location is in
US
2017-05-31 09:33:19 -07:00
Nabeel Sulieman ce5aff0236 Improve wording of measurement units on shipping page 2017-05-31 09:33:19 -07:00
Jeff Stieler 3ced364583 When checking for North American stores, default location to GeoIP if the option hasn’t been set. 2017-05-31 09:31:59 -07:00
Jeff Stieler 736d3e9f94 Remove “taxes” from shipping step naming. 2017-05-31 09:31:59 -07:00
Jeff Stieler d60a4fc1da Add missing name to WooCommerce Services plugin installation info. 2017-05-31 09:31:59 -07:00
Jeff Stieler 7dcaff3e39 Handle update of weight/dimension units in the wizard shipping step instead of locale. 2017-05-31 09:31:59 -07:00
Jeff Stieler 466cee9fc9 Update tax rates upon store location change. 2017-05-31 09:31:59 -07:00
Jeff Stieler 86f6921ced Handle SCRIPT_DEBUG config for setup wizard script includes. 2017-05-31 09:31:59 -07:00
Jeff Stieler f52eab71d2 Update wizard shipping step copy to match latest designs. 2017-05-31 09:31:58 -07:00
Jeff Stieler 42dfdc7e3c Schedule single install event for WooCommerce Services when saving the shipping step. 2017-05-31 09:31:58 -07:00
Jeff Stieler cd15b6fbc6 Fix shipping enable input name. 2017-05-31 09:31:58 -07:00
Jeff Stieler 1492c50373 Add skip/continue buttons back to wizard shipping step. 2017-05-31 09:31:58 -07:00
Jeff Stieler b52b38ecb0 Properly translate strings on the shipping wizard step. 2017-05-31 09:31:57 -07:00
Jeff Stieler 6111437750 Only show WooCommerce Services tout when the store is in North America. 2017-05-31 09:31:57 -07:00
Jeff Stieler 0a63b83c7c Move dimension and weight inputs to shipping step. 2017-05-31 09:31:57 -07:00
Nabeel Sulieman 1122faf760 Implement WooCommerce Services NUX in Setup Wizard:
- Rename "shipping locale" to "shipping location"
- Move tax setup to to shipping location page
- Rename shipping & taxes to just shipping
- Implement radio button selection to enable/disable shipping
- Add checkbox for installing WooCommerce services
- Start updating wc-admin css and javascript
2017-05-31 09:31:57 -07:00
Mike Jolley 532ddfa6b0 Merge conflicts 2017-05-31 12:23:52 +01:00
Mike Jolley 956b1a6181 Adds storefront/theme step to the setup wizard
Also includes a background install to get Storefront installed and
activated on demand.

To test, use a default theme and go to wp-admin/index.php?page=wc-setup
The theme step will be after payments!
2017-05-17 17:42:18 +01:00
Mike Jolley 5939939244 Wizard and blank state 2017-05-16 15:36:56 +01:00
Mike Jolley 891e55e1cf Merge pull request #14721 from woocommerce/fix/14670
Avoid escaped quote chars in strings
2017-04-27 15:34:27 +01:00
Mike Jolley 801f5e1eb1 Avoid escaped quote chars in strings
Closes #14670
2017-04-26 13:51:53 +01:00
Jeff Stieler 142bb9b24a Add “free shipping” method to the automatically created zone (via setup wizard). 2017-04-21 08:46:03 -06:00
Jeff Stieler d844709db5 Only create a shipping zone from the wizard on the first run. 2017-04-20 23:26:37 -06:00
Jeff Stieler f2f803d007 Create a shipping zone containing the store’s country when enabling shipping calculation from the setup wizard. 2017-04-20 23:02:59 -06:00
Claudiu Lodromanean ef7dbc75a1 bump down version number 2017-04-03 11:24:01 -07:00
Claudiu Lodromanean 82c3f93340 Change to single quotes 2017-04-03 09:54:24 -07:00
Claudiu Lodromanean 0d84865b0f Pass wizard around 2017-03-31 10:32:19 -07:00
Claudiu Lodromanean 27e1cffa30 Better way of passing on the next stepg 2017-03-29 11:22:55 -07:00
Claudiu Lodromanean da0b048788 Allow setup wizard filtering 2017-03-28 14:45:12 -07:00
Rami Yushuvaev d2457fe922 i18n: escape translation strings and fix wrong usage of i18n functions 2017-03-13 07:39:46 +02:00
Ryan Ray 05a40d8df7 Merge branch 'master' into video-updates 2017-02-28 10:56:28 -05:00
Ryan Ray b2107f1a62 Renaming what used to be WooCommerce 101 videos to the current Guided
Tour naming scheme.
2017-02-25 11:40:10 -05:00
Claudio Sanches a4d2048755 Fixed confuse translatable URLs 2017-02-24 16:41:56 -03:00
pierrebuet 41a937041d Updating the way select2 v4 loads translated strings
Correcting Issue #12952.

In select2 v4 the callback functions used to format the messages have
changed their names and the structure of the options have changed,
using now a „language“ object.

I was not able to find a reference in the select2 v4 code how to format
the number of matches back. Further when using v4 I don’t see any
indication on the number of the number of returned matches, so I
consider the parameter as obsolete.
2017-01-23 22:04:52 +01:00
corsonr 62c881b3c2 Updated WooThemes to WooCommerce 2017-01-02 17:56:19 +01:00
Mike Jolley badf8d7d55 Add select2 script and CSS 2016-12-20 16:45:22 +00:00
Rami Yushuvaev fec057c993 Use get_admin_page_title() function to display admin titles (#12077)
*  Use get_admin_page_title() function to display admin titles

* revert

* i18n: use sprintf() in translation strings
2016-10-13 13:34:48 -03:00
Claudio Sanches 657c312cae Fix strings case (#12069)
* Fixed case for all _e, esc_attr_e and esc_html_e strings

* Fixed case for all _n_noop strings

* Fixed case for all _x strings

* Fixed case for all __, esc_html__ and esc_attr__ strings

* Fixed a few more strings

* Fixed strings in unit tests

* Fix PayPal Standard case.

* Save Order text
2016-10-12 11:16:30 +01:00
Claudio Sanches 150ce8b7ee Merge pull request #11965 from woothemes/iMazed-patch-1
Change Twitter handle to WooCommerce
2016-09-27 12:45:36 -03:00
Claudio Sanches e972c1aac2 Change woothemes.com to woocommerce.com, closes #11966 2016-09-27 12:44:48 -03:00
Ines 53391bad01 Change Twitter handle to WooCommerce
Tweets were sending out with the @WooThemes handle still, the account we're phasing out. Changed `data-via=` from WooThemes to WooCommerce.
2016-09-23 10:34:23 +02:00
Aristeides Stathopoulos 39d4d4bd69 Squiz.Commenting.DocCommentAlignment.SpaceBeforeStar 2016-09-02 05:40:36 +03:00
Aristeides Stathopoulos cc0b29ccf4 PEAR.Functions.FunctionCallSignature.SpaceAfterCloseBracket 2016-09-02 05:00:46 +03:00
Aristeides Stathopoulos fde1037757 fix failing tests. 2016-09-01 23:50:14 +03:00
Aristeides Stathopoulos 72696901f3 WordPress.WhiteSpace.OperatorSpacing.SpacingAfter 2016-08-27 09:14:06 +03:00
Aristeides Stathopoulos ec8a0b288b PHPCS: WordPress.Arrays.ArrayDeclaration.NoCommaAfterLast 2016-08-27 05:08:49 +03:00
Aristeides Stathopoulos b063bcfe4c last item in a multiline-array should end in a comma 2016-08-27 04:46:45 +03:00
Nicola Mustone 5fb8a05a19 typo 2 2016-07-26 14:50:31 +02:00
Nicola Mustone 624f3c2eb1 typo 2016-07-26 14:49:11 +02:00
Claudio Sanches 14eeee15ee Welcome to docs.woocommerce.com 2016-07-19 07:30:31 -03:00