Rodrigo Primo
23b69eba53
Use phpcbf to fix coding standard violations in includes/admin
...
After using phpcbf to fix the coding standard violations, I did some manual adjustments to the changes, especially in poorly indented files.
2018-03-05 16:21:35 -03:00
Claudio Sanches
fe83dfdba7
Merge branch 'master' into fix/18545
2018-02-21 19:15:45 -03:00
Gerhard Potgieter
057c87c457
Add missing woocommerce_update_options_ action for settings classes save methods overridden from parent.
2018-01-26 11:22:09 +02:00
Mike Jolley
3ce51d9791
JSON context
2018-01-22 14:11:43 +00:00
Mike Jolley
a110180643
Saving taxes should invalidate caches.
2018-01-18 17:47:26 +00: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
Mike Jolley
d3666738d8
Merge branch 'pr/15069'
2017-05-23 18:56:58 +01:00
Rasmus Bengtsson
185934fad9
Fix phpdoc to include params and correct types
2017-05-15 13:50:52 +02:00
Rasmus Bengtsson
6a7fc8650f
Remove unused local variables
2017-05-15 12:06:52 +02:00
Mike Jolley
d744dce594
get_settings for shipping and checkout need to support sections for the API
...
Fixes #14769
2017-04-28 14:37:44 +01:00
Mike Jolley
bbf8e750ce
Tidy up includes
2017-02-16 11:46:01 +00:00
Mike Jolley
cb04d5985a
Fix add zone button and default title
...
Fixes #12829
2017-01-17 15:25:12 +00:00
Justin Shreve
90e93e1eba
Set a blank default name when displaying the shipping zone form, so the placeholder will be used instead.
2016-11-22 10:52:58 -08:00
Justin Shreve
735c1b7a14
Finish moving queries to the shipping zone data store, update usage of deprecated get_zone_id, legacy updates.
2016-11-16 04:53:23 -08: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
Mike Jolley
2d270fb405
Fix saving and rest of world
2016-10-10 18:41:07 +01:00
Mike Jolley
160049eddd
Remove save button from zones screen.
2016-10-10 17:50:29 +01:00
Mike Jolley
83cc0c7066
Work on shipping zone screens
2016-09-24 03:22:57 +01:00
Aristeides Stathopoulos
72696901f3
WordPress.WhiteSpace.OperatorSpacing.SpacingAfter
2016-08-27 09:14:06 +03:00
Aristeides Stathopoulos
b063bcfe4c
last item in a multiline-array should end in a comma
2016-08-27 04:46:45 +03:00
Mike Jolley
84487d0f4b
Shipping debug mode moved to shipping settings
2016-08-24 16:55:34 +01:00
Mike Jolley
66c61eebc8
Define full path for includes
...
Closes #11087
2016-07-27 11:58:43 +01:00
Mike Jolley
e1ec01c9f9
Zone wording tweaks
...
Closes #11184
2016-06-20 12:50:55 +01:00
Mike Jolley
b3844257a0
Use wc_get_shipping_method_count helper
2016-05-25 12:05:33 +01:00
Mike Jolley
22291e3ead
Generate a zone name if left blank
...
@coderkevin
2016-05-24 18:59:35 +01:00
Mike Jolley
54231c2946
Allow shipping classes interface to be extended.
2016-05-19 12:38:28 +01:00
Mike Jolley
43af207558
Output buffering and redirects after turning off legacy
...
Closes #10806
2016-04-28 12:36:51 +01:00
Mike Jolley
10f16f074c
Further zone tweaks to delete new rows on cancel
2016-04-22 12:24:20 +01:00
Mike Jolley
a9b8101e48
No blank slate if methods exist
...
Closes #10757
2016-04-22 12:24:20 +01:00
JeroenSormani
f53b59dbc4
Remove unneeded returns
2016-04-18 08:26:24 +02:00
JeroenSormani
88bcaa585c
Only ouput zones UI when in that section, don't default to it
2016-04-18 08:23:37 +02:00
Mike Jolley
5f6aa6c160
Fix modals and ajax events
2016-03-24 19:06:51 +00:00
Mike Jolley
d3ac3f4073
Modals first pass
2016-03-24 17:26:40 +00:00
Mike Jolley
1549158981
Add 'is_enabled' column to instances table and allow toggle in zones screen
...
@allendav
2016-03-15 17:23:06 +00:00
Mike Jolley
0ac7b23a1c
Use one save button and add classname
...
@allendav
2016-03-15 16:21:57 +00:00
Mike Jolley
c3554490b5
Backwards compatibility
2016-02-26 15:26:39 +00:00
Jeff Stieler
346b25d01b
Use ID instead of classname when saving settings for Checkout and Shipping.
2016-02-19 11:46:52 -07:00
Jeff Stieler
067b406a5c
Load Shipping settings sections using Shipping Methods’ IDs rather than their class name.
2016-02-17 18:07:14 -07:00
Diego Zanella
e938fdddd2
Modified scope of WC_Shipping_Method methods
...
* A "private" scope is rarely required, and it prevents extensibility. Having methods accessible by descendant classes is vital, especially when breaking changes are introduced.
2016-02-11 17:25:38 +00:00
Mike Jolley
75c264837f
Justins feedback/code tidy
2016-02-10 13:21:16 +00:00
Mike Jolley
352184cc06
Merge branch 'master' into shipping-zones
...
# Conflicts:
# assets/css/admin.css
# i18n/languages/woocommerce.pot
# includes/abstracts/abstract-wc-payment-gateway.php
# includes/abstracts/abstract-wc-shipping-method.php
# includes/admin/settings/class-wc-settings-shipping.php
# includes/wc-core-functions.php
# uninstall.php
2016-02-05 14:58:48 +00:00
Mike Jolley
b788418283
Load shipping methods during save
...
Fixes #10072
2016-01-14 13:24:02 +00:00
Mike Jolley
d821b87f8a
Move shipping classes to custom UI in shipping section
2016-01-13 16:52:28 +00:00
Mike Jolley
8064b35350
Add methods from zones screen
2016-01-13 15:04:10 +00:00
Mike Jolley
31be09073f
Show zones if no matching shipping method is found
2016-01-13 12:41:54 +00:00
Mike Jolley
c8025705c1
Text changes
2016-01-13 12:38:31 +00:00
Mike Jolley
97d47fb576
Move zones to main settings
2016-01-05 11:23:15 +00:00
Mike Jolley
62ca37f651
Merge branch 'master' into shipping-zones
...
# Conflicts:
# includes/admin/class-wc-admin-assets.php
# includes/class-wc-install.php
2016-01-04 14:35:45 +00:00
Mike Jolley
8aec02f625
Remove shipping select box option, tidy up logic and add filters from #9797
...
closes #9797
2015-12-16 13:00:16 +00:00
Mike Jolley
9818796d3e
Removing selection priority
...
This option was added so you could sort methods in a custom order, but
choose a different default.
Doing this per zone would add extra complexity, and this has also
proven problematic when a method registers multiple rates.
This commit removes usage of the setting. We should use the display
order and choose the top method by default. It think this balances ease
of use with control.
2015-12-15 15:49:35 +00:00