Romario
67a178f4f7
Replace 'DIRECTORY_SEPARATOR' with '/'
2020-08-26 15:50:34 -05:00
Romario
073c63c9c4
Replace dirname with __DIR__ and add DIRECTORY_SEPARATOR
...
Previously 'dirname( __FILE__ )' was used to import files, however, the directory separator was missing.
This commit replaces 'dirname( __FILE__ )' that was introduced in 5370d02484
with __DIR__ and added DIRECTORY_SEPARATOR
2020-08-21 15:16:26 -05:00
Romario
5370d02484
Change relative include paths to absolute include paths
...
Relative include paths in PHP can break whenever the server is running opcache. As such, WordPress.com deploy system refuses to include WooCommerce because of that issue.
This commit changes the relative include paths to absolute include paths.
Relates to #27269
2020-08-20 15:32:04 -05:00
Claudio Sanches
d48f1d4e2e
Fixed package tag usage
2020-08-05 13:36:24 -03:00
Mike Jolley
6e5f1e2059
Switched conditon by accident
2019-04-17 12:57:02 +01:00
Mike Jolley
a0d4f6174c
Consistent CRUD classes with before/after save hooks
2019-04-17 12:47:35 +01:00
Gerhard
dbeabd5b09
Add woocommerce_valid_location_types filter
2018-11-19 13:04:58 +02:00
Claudio Sanches
39f1c3e8fc
Fixed coding standards
2018-03-21 20:53:59 -03:00
Rodrigo Primo
a767eb1a87
PHPCS fixes in includes/class-wc-shipping-zone.php
2018-03-14 17:54:42 -03:00
Mike Jolley
3ce51d9791
JSON context
2018-01-22 14:11:43 +00:00
Mike Jolley
304ece0a9b
phpcs
2018-01-22 12:06:31 +00:00
Mike Jolley
76a19c27a5
Add correct args to woocommerce_shipping_zone_method_deleted
2017-06-05 15:11:08 +01:00
Mike Jolley
b1bf3278a7
Prevent zone 0 having locations set in CRUD
2017-05-22 15:19:15 +01:00
Claudio Sanches
59c2849736
Changed version 2.7 to 3.0
2017-03-15 13:36:53 -03:00
Mike Jolley
17481af671
Allow html in description
2017-01-17 15:50:19 +00:00
Mike Jolley
cb04d5985a
Fix add zone button and default title
...
Fixes #12829
2017-01-17 15:25:12 +00:00
Manos Psychogyiopoulos
40bf6afc29
fix incorrect inline comments
...
Ref: 01aba1fd2b
2016-12-22 19:41:23 +02:00
Mike Jolley
20680203bb
Add actions for all object types
2016-12-19 17:09:52 +00:00
Mike Jolley
3975054acd
Reindex after clear.
2016-12-05 13:06:14 +00:00
Justin Shreve
58b4cb9cf4
Make sure get_hook_prefix is present on all of our classes.
...
And fix up an exclude internal keys call for the customer data store.
2016-11-22 04:20:25 -08:00
Justin Shreve
421d0331b6
Make sure we don't try to ->read when creating a new shipping zone.
2016-11-16 04:54:42 -08:00
Justin Shreve
6f51fce88b
A few coding standards fixes
2016-11-16 04:53:23 -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
Justin Shreve
61d1b29789
Shipping Zone Data Store
2016-11-16 04:53:23 -08:00
Justin Shreve
1797c76a14
Implement WC_Data_Store and related code & tests.
2016-11-08 01:39:47 -08:00
Mike Jolley
4bddeee695
Fix shipping sorting display
2016-10-20 10:58:44 +01:00
Mike Jolley
2396c0e18e
Fix new zone
2016-10-11 11:53:07 +01:00
Mike Jolley
2d270fb405
Fix saving and rest of world
2016-10-10 18:41:07 +01:00
Mike Jolley
83cc0c7066
Work on shipping zone screens
2016-09-24 03:22:57 +01:00
Mike Jolley
b5cb254941
Add zone ID for bw comp
2016-09-12 22:16:32 +01:00
Justin Shreve
e1e6c682b5
* Stop using _ as a prefix for protected or private vars and functions. We have a keyword for that.
...
* Introduces set_id and get_id to WC_Data for the CRUD classes to share
2016-09-09 05:36:54 -07:00
Aristeides Stathopoulos
fde1037757
fix failing tests.
2016-09-01 23:50:14 +03:00
Aristeides Stathopoulos
f2730eea02
WordPress.WhiteSpace.ControlStructureSpacing.BlankLineAfterEnd
2016-08-27 08:57:05 +03:00
Aristeides Stathopoulos
6c30f84fa2
WordPress.Arrays.ArrayKeySpacingRestrictions.SpacesAroundArrayKeys
2016-08-27 06:23:21 +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
Justin Shreve
849a208e54
Fix issues based on feedback. Make sure to use WC_Shipping_Zone's methods when avaiable, fix up some coding standards, and add a new delete_shipping_method to WC_Shipping_Zone
2016-08-26 04:57:30 -07:00
Mike Jolley
1e037684eb
[2.6] Rest of the world ID 0 zone handling
...
Fixes #11688 Using NULL rather than 0 as default so rest of the world
can be treated different to a new zone. Prevents dupes.
2016-08-25 15:41:47 +01:00
Mike Jolley
72a5f9a9d1
Maintain method_order sorting for zones in list
...
Closes #11486
2016-07-21 14:30:05 +01:00
Dwain Maralack
34810062eb
use strict comparison for in array check because index of zero 0 == anystring will be true, which results in an error notice
2016-07-08 14:30:38 +02:00
Mike Jolley
856b9514d7
Convert ellipsis to three periods when saving postcodes.
...
Fixes #11195
2016-06-21 10:57:03 +01:00
Mike Jolley
3ab6a22146
Match zones with no countries
2016-06-20 13:22:58 +01:00
Mike Jolley
7266e020fb
Avoid normalization of zone postcodes so wildcard matching can be performed on postcodes with spaces. E.g. SP1 *
...
Also adds matching zone notice when shipping debug is on.
fixes #11154
2016-06-16 11:28:53 +01:00
Mike Jolley
1da23584f0
wc_normalize_postcode on tax and shipping postcode SAVE
2016-06-06 16:17:15 +01:00
Mike Jolley
1e72f2ba86
Clear cache after adding new method
2016-05-25 12:56:53 +01:00
Claudio Sanches
8709d31f41
Fixed method returning value in write context
2016-05-24 18:47:17 -03:00
Mike Jolley
22291e3ead
Generate a zone name if left blank
...
@coderkevin
2016-05-24 18:59:35 +01:00
Joey Kudish
7f71376418
add action hooks for shipping zone method actions
...
Adds action hooks for shipping zone methods added, deleted and status
toggled
2016-05-10 11:43:47 -07:00
Mike Jolley
10f16f074c
Further zone tweaks to delete new rows on cancel
2016-04-22 12:24:20 +01:00
Mike Jolley
5f6aa6c160
Fix modals and ajax events
2016-03-24 19:06:51 +00:00