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
Mike Jolley
4ea396aab1
When deleting a tax rate class, remove its rates
...
Closes #11759
2016-08-25 15:58:30 +01:00
Mike Jolley
a259256550
Ordering in place
2016-07-27 11:30:12 +01:00
Mike Jolley
7328bd4a18
sort_rates placeholder function
2016-07-27 10:37:55 +01:00
Claudio Sanches
7778583340
Fixed wrong number of decimal precision, closes #11368
2016-07-11 17:26:54 +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
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
fe9b53e49a
Fixed wc_postcode_location_matcher logic
...
Due to the return values overwriting each other,
wc_postcode_location_matcher did not work with zones using multiple
postcodes. This changes the return to return an array of values instead
of a single value to fix that logic.
Also adjusts taxes which use wc_postcode_location_matcher so this
continues to function.
Fixes #11095
@claudiosmweb
2016-06-11 00:26:07 +01:00
Mike Jolley
730019ef18
scrutinizer best practice
2016-06-06 19:39:23 +01:00
Mike Jolley
1da23584f0
wc_normalize_postcode on tax and shipping postcode SAVE
2016-06-06 16:17:15 +01:00
Claudio Sanches
7bfa0be751
Removed WC_Tax::format_tax_rate_postcode()
...
in favor of wc_format_postcode()
2016-06-06 10:27:25 -03:00
Claudio Sanches
23de603dd9
Fixed WC_Tax::format_tax_rate_postcode() docblock
...
cc @mikejolley
2016-06-06 10:24:59 -03:00
Mike Jolley
7ec12cc2b8
Format postcodes correctly on save
...
@claudiosmweb
2016-06-06 13:43:05 +01:00
Mike Jolley
a02ac79339
Change range symbol to ... to avoid conflicts with postcodes with hyphens
2016-05-23 17:30:37 +01:00
Mike Jolley
6a4a6d8471
Fix refund shipping
2016-04-29 11:44:28 +01:00
Mike Jolley
23271af0f6
Fixed comparisons for ranges and wildcards
2016-04-22 15:42:20 +01:00
Mike Jolley
558211a869
Split postcode matching queries to avoid expansion
2016-04-22 14:02:36 +01:00
Claudio Sanches
dcca3a1efe
Allow get tax as object
2016-03-09 01:11:56 -03:00
Nicola Mustone
37c82e4bf5
fix warning with PHP 5.3
2016-02-08 09:58:32 +01:00
Fredrik Forsmo
bb19615029
Improve docblock comments in various WC_* classes
...
* Added comments to various methods
* Fixed various properties comments and param types
2016-01-06 16:24:47 +01:00
Caleb Burks
bedcedcc3d
Sanitize the shipping tax class
2015-12-22 08:59:42 -06:00
Mike Jolley
d585e65e5a
Use cache and invalidation for taxes
...
Closes #9712
2015-12-02 15:53:54 +00:00
Mike Jolley
bc6fedd000
Space missing
2015-11-13 21:20:30 +00:00
Nicola Mustone
c9da4f928a
check if ABSPATH is defined
2015-11-06 10:22:19 +01:00
Scrutinizer Auto-Fixer
08efaf84df
Scrutinizer Auto-Fixes
...
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2015-11-05 16:05:03 +00:00
Claudio Sanches
5893875b0c
Removed period for file headers
2015-11-03 11:53:50 -02:00
Claudio Sanches
ee30b5b308
Fixed php docs standards
2015-11-03 11:31:20 -02:00
Claudio Sanches
59303a1709
Merge pull request #9308 from woothemes/api-tax-endpoint
...
[API] Tax endpoint
2015-10-08 18:49:43 -03:00
Claudio Sanches
47c3ba9d21
Created WC_Tax::_get_tax_rate() method
2015-10-08 17:24:37 -03:00
Mike Jolley
0197a99065
Merge branch 'issue/8587'
...
Conflicts:
assets/css/admin.css
assets/css/woocommerce.css
includes/admin/class-wc-admin-assets.php
includes/admin/settings/views/html-settings-tax.php
2015-10-08 13:26:52 +01:00
toddlahman
b631cc719c
Fix for Invalid argument supplied for foreach
2015-08-30 21:18:21 -07:00
George Stephanis
2aa1650f54
Rearrange things to get ajax working.
...
Spread them out throughout WooCommerce.
2015-08-13 17:49:59 -04:00
George Stephanis
c6d7e6ba26
Make this public so it can be used to sanitize.
2015-08-13 17:34:00 -04:00
George Stephanis
d4ab9e6feb
Add in a bit of extra sanitizing for tax rate classes.
2015-08-13 16:56:50 -04:00
Mike Jolley
5c9ac6a893
Avoid double escape when passing in arrays to sql queries. Use esc_sql
2015-08-07 11:37:19 +01:00
Mike Jolley
b91ccd32b9
Tweak wildcard tax handling to deal with 9 digit zip codes
...
Fixes #8736
2015-08-06 11:36:02 +01:00
Mike Jolley
9009b334e7
Merge branch 'test-price-filter'
2015-06-09 15:15:15 +01:00
Mike Jolley
fe58e1b5e9
Account for tax classes
2015-06-09 14:58:27 +01:00
Alexander Concha
3c1b14d00d
Escape properly the provided array of post codes
...
The callers only run wc_clean/esc_attr on the provided values which are
not functions meant to protect against SQL injections.
2015-06-01 12:58:51 +01:00
Mike Jolley
49cbe2cd9a
If taxes based on base location, we don't need a customer address
...
Closes #7890
2015-04-14 10:08:29 +01:00
Mike Jolley
e81d2182f5
Sanitize tax_rate_id when saving taxes in the backend to prevent potential SQL injection.
2015-03-13 12:44:04 +00:00
Scrutinizer Auto-Fixer
de06d17c6d
Scrutinizer Auto-Fixes
...
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2015-02-03 14:32:10 +00:00
Mike Jolley
896ccb1b88
Force taxes to display/calculate for customer location
2014-12-23 22:07:27 +00:00
Mike Jolley
5aa058249c
Allow plugins to filter the taxable location
...
Passes tax_class so we can workaround mixed carts and EU VAT.
cc @barrykooij
2014-12-09 16:41:30 +00:00
Nicola Mustone
7ebd7399cb
Fix possible notice
2014-12-09 10:14:25 +01:00
Barry Kooij
b79a98bc87
Introduced 'woocommerce_find_rates' filter.
2014-12-02 12:57:01 +01:00
Barry Kooij
21b7fe60f6
Codestandards
2014-11-29 12:33:36 +01:00
Mike Jolley
fe6d52b705
Final tax class unit tests
...
Closes #6357
2014-11-24 14:57:11 +00:00
Barry Kooij
4ed7de31ca
Merge pull request #6820 from ryanr14/typo-fix
...
Spelling correction - insursion to insertion
2014-11-21 22:48:24 +01:00