Commit Graph

3438 Commits

Author SHA1 Message Date
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
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 120a39efd5 Handle full refunds in tax report by date
Fixes #16937
2017-09-26 18:27:53 +01:00
Mike Jolley 00ae606381 Merge pull request #16924 from woocommerce/fix/wistia
Replace wistia videos with youtube
2017-09-26 11:32:45 +01:00
claudiulodro a74ccdb4d1 https the oembed url 2017-09-25 14:48:05 -07:00
Claudio Sanches b68b4eeb6b Fixed 'Download %d URL' string 2017-09-25 14:14:55 -03:00
Claudio Sanches 9fc6615909 Removed new translatable string introduced in #16843
Fixes #16843
2017-09-25 14:13:50 -03:00
Mike Jolley c325ebfb2e Tweak branding in embed code 2017-09-25 15:15:41 +01:00
Mike Jolley 4ea80ffa9e Youtube videos 2017-09-25 15:07:02 +01:00
Claudio Sanches 6164be51d3 Escape classes in data panel 2017-09-25 10:56:14 -03:00
Mike Jolley 4f9b886d09 Merge branch 'pr/16871' 2017-09-25 12:22:24 +01:00
Mike Jolley 45aaa22bb9 correct isset 2017-09-25 12:22:17 +01:00
Mike Jolley 35740448a0 Merge pull request #16885 from woocommerce/fix/16845
Move js clipboards off zeroclipboard
2017-09-22 14:18:44 +01:00
claudiulodro ee30de89a8 Shuffle things around to prevent errors and for better performance 2017-09-21 14:06:44 -07:00
claudiulodro 279ac6814c Move clipboards off zeroclipboard 2017-09-21 13:09:36 -07:00
Shakeeb Sadikeen da6a37c0d1 fixed : custom tab with no class error
when class is not passed with custom tab. echo's undefined index error with classes fixed
2017-09-20 22:14:58 +05:30
claudiulodro 9d8e308a78 Make importer columns case-insensitive 2017-09-17 10:18:03 -07:00
Dharmesh Patel d877ab31c5 Apply filter on product csv importer steps. 2017-09-13 23:56:15 +05:30
Patrick Garman 05c27f0f70 Match the database sizes up with the right labels 2017-09-02 18:56:29 -05: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
Konstantin Kovshenin 4a5d0c3ec3 Helper: Clean up unused code. 2017-08-30 18:39:45 +03:00
Konstantin Kovshenin 64467a0925 Helper: Cache a zero updates count if update data is not available or empty. 2017-08-30 17:46:33 +03:00
Mike Jolley fce69c3dad Fix status page padding 2017-08-30 15:39:54 +01:00
Konstantin Kovshenin ebb5bfc521 Helper: Better markup for filters output. 2017-08-30 17:39:02 +03:00
Konstantin Kovshenin b5f1692ff3 Helper: Unify update-count markup into a single helper method. 2017-08-30 17:19:06 +03:00
Konstantin Kovshenin a9619da513 Merge branch 'helper-updates' of github.com:woocommerce/woocommerce into helper-updates 2017-08-30 17:12:36 +03:00
Konstantin Kovshenin a59ce3b6b1 Helper: Change woo- prefix to woocommerce-com-. 2017-08-30 17:07:37 +03:00
Lee Willis e3be6a12dd Check all plugins for presence in the untested plugins list, not just WooCommerce ones 2017-08-30 10:25:01 +01:00
Lee Willis 5400bbaf6d Use array_key_exists() instead of in_array() 2017-08-30 10:16:49 +01:00
Lee Willis cec5fef23c Flag untested extensions on the status report 2017-08-29 17:15:16 +01:00
Mike Jolley 7e76b87039 Merge pull request #16596 from woocommerce/fix/16594
Manual coupons support
2017-08-29 13:46:13 +01:00
José Marques 09ddc43171 Helper: removes brackets from update counter indicator 2017-08-29 10:52:57 +01:00
José Marques 9cc3840de4 Helper: convert filter markup into a list 2017-08-29 10:11:47 +01:00
Mike Jolley 66d0a8560d Merge pull request #16611 from iamdharmesh/master
fixed issue #16610
2017-08-29 10:00:43 +01:00
Konstantin Kovshenin 8b46283ca6 Helper: Fix some WPCS errors. 2017-08-29 10:23:34 +03:00
Konstantin Kovshenin a3b08d6497 Merge remote-tracking branch 'origin/master' into helper-updates 2017-08-28 13:46:14 +03:00
Konstantin Kovshenin 94dbdc86b9 Helper: Add "shared" labels for shared subscriptions. 2017-08-28 11:59:13 +03:00
Konstantin Kovshenin 6b14b83cd2 Helper: Make sure redirect actions preserve selected filters. 2017-08-28 11:53:31 +03:00
Konstantin Kovshenin 5fded42d28 Helper: Add subscriptions filters. 2017-08-28 11:39:41 +03:00
Konstantin Kovshenin 51a2d45578 Helper: Make sure transients are not empty before setting again. 2017-08-28 10:53:48 +03:00
Konstantin Kovshenin 578f25ebdc Helper: Don't display (0) in top navigation when no updates available. 2017-08-28 10:32:51 +03:00
Konstantin Kovshenin 0cafd1a499 Helper: Refresh update transients when refreshing update data. 2017-08-28 10:31:08 +03:00
Konstantin Kovshenin d854f92ee1 Helper: Cache update count fetch and clear cache after an update. 2017-08-28 10:23:33 +03:00
Konstantin Kovshenin a41d5da411 Helper: Add update-count to the Extensions top nav menu. 2017-08-28 10:01:01 +03:00
Konstantin Kovshenin 9f3403af06 Helper: Add a plugin-count to the Extensions admin menu. 2017-08-28 09:52:59 +03:00
Dharmesh Patel ce764eb6ba fixed issue #16610 2017-08-26 00:36:06 +05:30
Shiva Poudel 1bc1bc7201 Remove unused product taxonomy styles 2017-08-26 00:08:33 +05:45
Rami Yushuvaev 323c177bb0 i18n: Avoid using HTML tags in translation strings
Old translation string:

* `If you like <strong>WooCommerce</strong> please leave us a %s rating. A huge thanks in advance!`

New translation string:

* `If you like %1$s please leave us a %2$s rating. A huge thanks in advance!`
2017-08-25 00:39:13 +03:00
Mike Jolley 8b4086caf2 Hide link to non-existing coupons 2017-08-24 17:08:34 +01:00
Claudiu Lodromanean 56e1207903 Merge pull request #16583 from woocommerce/update/apply-fees
Improved apply fees
2017-08-23 13:35:18 -07:00
Claudio Sanches b46f5c91e4 Merge pull request #16584 from ramiy/patch-1
i18n: Avoid using HTML tags in translation strings
2017-08-23 11:51:28 -03:00
Mike Jolley 9d877a3b34 Unused vars 2017-08-23 14:40:34 +01:00
Mike Jolley 2beddc59a7 docblocks 2017-08-23 14:38:00 +01:00
Rami Yushuvaev ff289f3bf4 i18n: Avoid using HTML tags in translation strings
This PR moves the `<code>` HTML tags from the translation strings.

It also moves the server variables outside of the translation string, because translators can accidentally translate it wrong.
2017-08-23 16:22:52 +03:00
Mike Jolley 804feb9333 Store fee amount and prevent totals going negative 2017-08-23 12:15:06 +01:00
Mike Jolley f18a146d0f Prompt to apply fee in admin 2017-08-23 11:22:18 +01:00
Claudio Sanches 7ad0dd55f9 Allow import 'menu_order' 2017-08-22 17:22:39 -03:00
Gregory Karpinsky 73b20bfece Update class-wc-admin-settings.php
Typo: visbility --> visibility
2017-08-21 22:00:23 -04:00
Mike Jolley d68291b3ac Merge pull request #16086 from woocommerce/improvement/versions
Extensions version check.
2017-08-21 18:18:04 +01:00
Mike Jolley 9ee732d68c Text 2017-08-21 18:11:47 +01:00
Claudio Sanches 1cfdaaa108 Merge pull request #16548 from woocommerce/fix/16524
Swap to text input for tax rate %, and format as decimal.
2017-08-21 12:32:53 -03:00
Claudio Sanches 237d5b646a Merge pull request #16544 from woocommerce/fix/16537
If auth cannot occur, don't send request.
2017-08-21 12:31:46 -03:00
Mike Jolley 95fe91e622 Tweak version code 2017-08-21 16:04:06 +01:00
Mike Jolley b20ef5dcac Styling 2017-08-21 15:53:08 +01:00
Mike Jolley 95cc51ae5c Swap to text input for tax rate %, and format as decimal.
Closes #16524
2017-08-21 12:49:23 +01:00
Mike Jolley 6ee0ef1ee8 Copy update for c6ca8a6024 2017-08-21 12:38:14 +01:00
Mike Jolley c6ca8a6024 Update copy with plugins page link
Closes #16496
2017-08-21 11:53:34 +01:00
Mike Jolley bf2ca1f3d3 If auth cannot occur, don't send request.
Fixes #16537
2017-08-21 10:49:00 +01:00
Mike Jolley 0dc1754b91 Merge branch 'master' into update/store-owner-newsletter
# Conflicts:
#	assets/css/admin-rtl.css
#	assets/css/admin.css
#	assets/css/twenty-seventeen-rtl.css
#	assets/css/twenty-seventeen.css
#	assets/css/woocommerce-rtl.css
#	assets/css/woocommerce.css
2017-08-18 18:21:55 +01:00
Mike Jolley fcef2c7f71 Copy update 2017-08-18 18:21:23 +01:00
Mike Jolley 36f5827bc0 Merge pull request #16351 from pmgarman/feature-system-status-site-size-data
Add “site size” areas to system status report
2017-08-18 17:49:12 +01:00
Claudiu Lodromanean a4d3518a61 Merge pull request #16508 from woocommerce/remove-manual-discounts
Removed manual discounts code
2017-08-18 08:30:07 -07:00
Mike Jolley 1f692ffb64 Merge pull request #16485 from Korkey128k/master
Wrapped 'Delete selected row(s)' button in condition
2017-08-18 15:38:14 +01:00
Mike Jolley 1d95593131 Localise message 2017-08-18 10:58:11 +01:00
Mike Jolley e99471c0cd Removed manual discounts code 2017-08-18 10:36:10 +01:00
Corey Smith a6cf08d8cf Wrapped 'Delete selected row(s)' button in condition 2017-08-16 11:56:30 -05:00
Rami Yushuvaev 4ae42313ce i18n: Rewrite the translation string logic
The single translation string `by` is not easy to translate without a context. In this case, using the context function `_x()` is not the best solution.

A better way would be to create two complete translation strings for refund with a user and without a user.
2017-08-16 14:25:38 +03:00
Patrick Garman f19a63e1d7 Merge the DB and DB Table Size tables 2017-08-15 19:52:14 -05:00
Rami Yushuvaev 43744e4f27 i18n: Merge two similar translation strings
Replace:

`wp_remote_get() failed. Contact your hosting provider.`
`wp_remote_post() failed. Contact your hosting provider.`

With:

`%s failed. Contact your hosting provider.`

Note:

This also a good practice because the function name is outside of the translation string, this way the translator can't misspell the function name.
2017-08-16 00:32:36 +03:00
Claudio Sanches 82a6de2e49 Merge pull request #16459 from ramiy/patch-3
i18n: Avoid using HTML tags in translation strings
2017-08-15 14:48:35 -03:00
Claudio Sanches 9e8aa83d47 Escape product names on reports 2017-08-15 12:56:35 -03:00
Rami Yushuvaev 6f7c817b78 i18n: Avoid using HTML tags in translation strings
This PR moves the `<strong>` HTML tags from the translation strings.

Replacing: `Order scheduled for: <strong>%1$s</strong>.`
With: `Order scheduled for: %s.`

We did the same in WordPress core across several releases (4.3 - 4.7). Because it's makes the translation process to RTL language (like Hebrew) much easier.
2017-08-15 15:07:55 +03:00
Mike Jolley a44a57b5d9 Improve tools page styling 2017-08-15 12:05:34 +01:00
claudiulodro ae80d12d80 Merge master 2017-08-14 11:12:09 -07:00
Rami Yushuvaev 17d10b3e9f i18n: Fix some translation strings (#16441)
* i18n: permissions -> permission

* i18n: permissions -> permission
2017-08-14 17:25:08 +01:00
Jeroen Sormani 607cd878e0 Settings parent construct (#16412)
* Miscellaneous cleanup of typos + change some return types for IDE helpers

* Call/use parent::__construct() to add filters for settings output, saving
2017-08-11 21:36:35 -03:00
Claudiu Lodromanean 15179b0e48 Merge pull request #16416 from woocommerce/manual-discounts-on-fees-shipping
Manual discounts on fees and shipping
2017-08-11 11:30:27 -07:00
claudiulodro 46e003d3c6 Remove shipping and discount lines 2017-08-11 11:10:44 -07:00
Mike Jolley 2accbdbd45 Load order after updating items 2017-08-11 16:16:22 +01:00
Mike Jolley 2c5a5b9409 Discounts should be last 2017-08-11 16:15:53 +01:00
Mike Jolley 5b4e5482dd Don't subtract negative taxes in net sales report
Fixes #16306
2017-08-11 12:38:09 +01:00
claudiulodro 3618ef1725 Handle couple todos 2017-08-10 13:37:05 -07:00
claudiulodro 9e70a74857 Styling 2017-08-10 13:29:32 -07:00
Mike Jolley e2599d83c8 Apply methods 2017-08-10 14:22:27 +01:00
claudiulodro a416ebe09b It kind-of works. 2017-08-09 14:55:35 -07:00
Mike Jolley e429a27ba4 No need for 'off' 2017-08-09 19:12:33 +01:00
Mike Jolley c556facd41 Fix percent coupon and display 2017-08-09 19:02:10 +01:00
Mike Jolley f71dc64d35 Manual discounts and negative taxes 2017-08-09 18:53:10 +01:00
Mike Jolley f0a9050241 HTML 2017-08-09 16:17:30 +01:00
Mike Jolley 6c0750e2e9 Discount lines and button 2017-08-09 14:55:42 +01:00
Mike Jolley 140771e759 Merge branch 'master' into improvement/versions
# Conflicts:
#	assets/css/admin-rtl.css
#	assets/css/admin.css
#	assets/css/helper-rtl.css
#	assets/css/helper.css
#	assets/css/twenty-seventeen-rtl.css
#	assets/css/twenty-seventeen.css
#	assets/css/wc-setup-rtl.css
#	assets/css/wc-setup.css
2017-08-09 10:08:06 +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
Mike Jolley c486cea531 copy fix 2017-08-08 17:21:01 +01:00