Commit Graph

3057 Commits

Author SHA1 Message Date
mehul0810 5c0feaf93c Added Script to restrict deletion if still user denies 2017-10-08 15:29:23 +05:30
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 0150b4dd8e Regenerate wizard CSS. 2017-10-03 12:13:08 -06:00
Marcin Bot 57af1bf804 Reverted compiled rtl and css of the files outside #17008 2017-10-03 17:57:00 +02:00
Valerie 49246206a5 Wizard: Update compiled CSS 2017-10-03 17:38:08 +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
Ola Olusoga 231b9e7c2c adding rtl & css
Adding css and rtl to PR
2017-10-02 17:04:30 -04:00
Ola Olusoga 0894abf37d Small style adjusts to onboarding
Made WooCommere logo smaller, and adjusted padding, weights, e.t.c.
Minor tweaks.
2017-10-02 16:39:12 -04:00
Mike Jolley e0421cd7bc Replay protection on refunds
Sends the current refunded amount with the request, so if a refund is
attempted twice it will mismatch.

Fixes #13614
2017-09-28 16:17:13 +01:00
claudiulodro 5897f7b0a7 Minify & recompile assets 2017-09-27 13:53:03 -07:00
claudiulodro a5c2ebb2f2 Bring up-to-date with master and recompile css 2017-09-27 13:32:09 -07:00
Valerie 72f9ce08ac Wizard: Move Jetpack TOS above button 2017-09-27 22:48:33 +03:00
Valerie d45ae38770 Wizard: Avoid too much space after last paragraph 2017-09-27 17:53:03 +03:00
Valerie 994480c3ca Wizard: Consolidate button styles in one rule 2017-09-27 17:52:53 +03:00
Valerie 562f37520d Wizard: Fix logo placement in services list 2017-09-27 17:11:10 +03:00
Valerie 263a471c40 Wizard: Fix chevron placement in toggle list 2017-09-27 17:08:47 +03:00
Mike Jolley 9800d72c82 Merge pull request #16949 from woocommerce/fix/16928
[Importer] Display error message when it's impossible to get a sample of the file
2017-09-27 13:01:20 +01:00
José Marques 12a399b529 Helper: removes blue text shadow from CTA on disconnect account screen 2017-09-27 11:09:57 +01: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 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 14bb189c8a Setup wizard: Update page padding 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 fc5aa77259 Setup wizard: Style shipping method description 2017-09-26 15:10:26 -06:00
Valerie 3645435e17 Setup wizard: Fix extra padding in name column 2017-09-26 15:10:26 -06:00
Valerie ad5709d3b5 Setup wizard: Add shipping list header 2017-09-26 15:10:26 -06:00
Jeff Stieler 27e148326f Setup wizard: use form-specific selector to trigger Jetpack connect behavior. 2017-09-26 15:10:25 -06:00
Jeff Stieler e6dc95432a Setup wizard: hide settings until a service is enabled. 2017-09-26 15:10:23 -06:00
Jeff Stieler fc725b27c3 Setup wizard: camelCase vs. snake_case in JavaScript. 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 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 a15b44d6ec Setup wizard: fix form submit UI blocking when HTML5 form validation isn’t available. 2017-09-26 15:09:40 -06:00
Jeff Stieler 17a72b39ab Setup wizard: only hook into method selection change event on shipping step. 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 58a289dc20 Setup wizard: only toggle service enable control when its direct parent is clicked. 2017-09-26 15:09:38 -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 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
Valerie d9e4092281 Setup wizard: Fix list toggle name color 2017-09-26 15:09:36 -06:00
Valerie e23aefef13 Setup wizard: Add toggle for manual payment list 2017-09-26 15:09:10 -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
Claudio Sanches 0c6392eeef Display error message when it's impossible to get a sample of the file.
When the file is empty or using an incorrect charset will display just an empty screen, since we output errors before check if the file is valid.

I included the error output inside the mapping step in order to fix this issue, and added a new option to display buttons after the error  message.

Closes #16928
2017-09-26 17:48:37 -03:00
Mike Jolley 919643af56 Allow report to select 1D into the future to workaround timezone issues.
Closes #16935
2017-09-26 12:29:25 +01:00
Mike Jolley 71890624d7 Include loader mixin in 2017 theme
Closes #16921
2017-09-25 14:52:29 +01:00
Mike Jolley b96fbbaf90 Merge pull request #16870 from woocommerce/fix/16868
Apply default locale before country locale
2017-09-25 12:18:32 +01:00
claudiulodro fa9bef7ce4 Minify 2017-09-22 14:24:10 -07:00
claudiulodro b757f0db28 Fix #16868 on Cart page 2017-09-22 14:22:53 -07:00
claudiulodro 877a8491ad Cleanup 2017-09-22 14:14:00 -07:00
claudiulodro b3f70bb7b5 Make labels work on Cart page again 2017-09-22 12:31:08 -07:00
claudiulodro 2dc6f18ab4 Use opacity:0 and fix linted js 2017-09-21 13:24:34 -07:00
claudiulodro 279ac6814c Move clipboards off zeroclipboard 2017-09-21 13:09:36 -07:00
Mike Jolley 5131d096a8 JSMIN 2017-09-20 16:03:30 +01:00
Mike Jolley eb3396328b Apply default locale before country locale 2017-09-20 16:03:26 +01:00
Mike Jolley d125739742 fix init 2017-09-16 12:37:29 -07:00
Mike Jolley 7cc931c185 Init price slider after using customizer
Closes #16834
2017-09-16 12:16:43 -07:00
Joost de Valk 794aaefb04 Increase delay for json_search_customers
Increases the delay for `woocommerce_json_search_customers` to 1000, to prevent a lot of unneeded queries from happening. 

Fixes #16805.
2017-09-14 10:30:50 +02:00
Claudiu Lodromanean 213bfabb24 Merge pull request #16763 from woocommerce/fix/16757
Update shipping code to see if full address has been entered before showing no shipping notice
2017-09-08 09:43:23 -07:00
claudiulodro b2a9b310fe Only trim multiselect buttons 2017-09-08 09:21:28 -07:00
Mike Jolley a7b2ae8661 Update shipping code to see if full address has been entered before showing no shipping notice
Fixes #16757
2017-09-08 14:54:15 +01:00
Mike Jolley c0f5fbd5fc Leave width for nested inputs 2017-09-08 12:27:16 +01:00
claudiulodro 8d90c12473 Make changes in selectWoo repo and bring in minified files 2017-09-07 10:58:08 -07:00
Mike Jolley 6bd3892a5b Make selectwoo trim text to avoid whitespace 2017-09-07 12:13:11 +01:00
claudiulodro a3c876a2ef Extra i18n address handling for cart page compatibility 2017-09-06 12:42:12 -07:00
Mike Jolley 4d1f636bc3 Merge pull request #16716 from woocommerce/fix/helper-mobile-filter
Helper: fix counter indicator in subscriptions filter
2017-09-06 10:47:05 +01:00
José Marques eec2bb1a1a Helper: fix counter indicator in subscriptions filter 2017-09-05 17:33:10 +01:00
Umangvaghela 9bed39018d Fix CSS changes 2017-09-05 17:30:43 +05:30
Mike Jolley 5475ae6e2b Avoid full refresh if user cancels a bulk action
Fixes #16658
2017-08-31 12:01:25 +01:00
Mike Jolley ffd3c5f406 Min 2017-08-30 21:23:26 +01:00
Mike Jolley d58a09e76a Merge branch 'master' into helper-updates
# Conflicts:
#	assets/css/admin-rtl.css
#	assets/css/admin.css
2017-08-30 21:22:48 +01:00
Jonathan Belcher b898cd5a98 Correct CSS to show notifcation count 2017-08-30 15:26:46 -04:00
Mike Jolley fce69c3dad Fix status page padding 2017-08-30 15:39:54 +01:00
Mike Jolley ac225ee070 Delay variation transition to allow gallery to load
Fixes #16647
2017-08-30 12:48:02 +01:00
claudiulodro 968ed17627 Touchscreen handling in selectwoo 2017-08-29 11:54:40 -07:00
José Marques bb7691255d Helper: adds styles for update counter 2017-08-29 10:53:48 +01:00
José Marques 0585df9fe3 Helper: additional styles for subscription filter 2017-08-29 10:11:47 +01:00
Mike Jolley e0b4d59bb6 Merge pull request #16566 from franticpsyx/reload-order-items-on-add
Reload items table after adding line item manually
2017-08-29 10:08:29 +01:00
Claudio Sanches d5abf42081 Merge pull request #16599 from woocommerce/fix/selectwoo
selectWoo beta 2
2017-08-28 16:39:32 -03:00
Gabor Javorszky 2a97509a3e Fixed js param name
Fixes #16627
2017-08-28 16:36:02 +02:00
claudiulodro 0db59927d9 Fix input focus bug 2017-08-25 09:41:02 -07:00
claudiulodro e71553ed33 selectWoo beta 2 2017-08-24 15:03:26 -07:00
Mike Jolley 372723dae1 min 2017-08-23 11:29:14 +01:00
Mike Jolley f18a146d0f Prompt to apply fee in admin 2017-08-23 11:22:18 +01:00
Mike Jolley 23ca228a40 Fix input width, Closes #16571 2017-08-23 10:55:00 +01:00
Claudio Sanches d29d677f5b Merge branch 'master' of github.com:woocommerce/woocommerce 2017-08-22 15:43:33 -03:00
Claudio Sanches 89a07a695e Fixed indentation of wc-enhanced-select.js 2017-08-22 15:43:08 -03:00
Manos Psychogyiopoulos 1596979d75 Reload order items on add 2017-08-22 15:19:20 +03:00
Mike Jolley 44abd1a1b8 Min 2017-08-22 11:55:00 +01:00
Mike Jolley 394a426be7 Remove change from this.queue_update_checkout 2017-08-22 11:54:44 +01:00