Rodrigo Primo
2c8d006c37
Update PHPCompatibility sniff names
...
The name of some sniffs changed in the most recent PHPCompatiblity version. This commit update all instances where those names are used in WooCommerce codebase.
2018-11-21 11:08:26 -02:00
Rodrigo Primo
e467737653
phpcs fixes
2018-11-21 11:06:42 -02:00
AlexeyKhmyrov
179d0fdc52
Issue #21406 Dimensions in RTL Languages are displayed incorrectly on single product pages.
...
Using '×' instead of 'x' in string '10 x 20 x 30 cm'
2018-10-22 11:29:07 -05:00
AlexeyKhmyrov
a58e907994
Fixed coding standards
2018-10-22 11:27:01 -05:00
claudiulodro
91d2411aa9
Use wc_check_utf8 function
2018-10-05 15:58:50 -04:00
Gerhard Potgieter
c22c92b838
Introduce wc_sanitize_endpoint_slug and run all endpoint sanitization before saving through it to ensure that only valid slugs can be used for endpoints.
2018-09-14 09:35:49 +02:00
Peter Fabian
897af8d20e
Updated phone validation and formatting rules.
2018-08-24 15:43:46 +02:00
Gerhard Potgieter
2df62edec1
Improve the replacement for wc_format_phone_number a bit more, seems like we allow spaces and plus signs, remove non visible unicode with seperate preg_replace
2018-06-27 09:37:44 +02:00
Gerhard Potgieter
7a3caa0608
This changes wc_format_phone_number to discard all characters except numbers and the + sign, not sure if + sign must be stripped but in the current version it was not stripping the + sign
2018-06-27 09:05:32 +02:00
Mike Jolley
cc3fb9751c
eircode formatting
2018-05-03 11:26:22 +01:00
Mike Jolley
bce3c7e94c
Disable anon for now
2018-04-17 15:33:40 +01:00
Mike Jolley
314d949d2c
Background process to cleanup
2018-04-17 15:21:03 +01:00
Claudio Sanches
b008e4b5cf
Fixed includes/wc-formatting-functions.php PHPCS violations
2018-03-08 12:22:58 -03:00
Mike Jolley
70e92302f5
Refactor woocommerce_wp_select so it could be used for a multiselect
2018-01-19 13:36:14 +00:00
Mike Jolley
dbdc3af9e5
Tests
2018-01-12 14:20:39 +00:00
Mike Jolley
7a7995f697
Revert price formatting changes which break in RTL
2018-01-12 14:16:18 +00:00
claudiulodro
2d88654a0a
Always use contrasting color for links
2017-12-21 11:14:14 -08:00
Claudiu Lodromanean
7c06e7d63d
Merge pull request #18008 from woocommerce/update/rounding-17970-17863
...
Rounding fixes/line item rounding
2017-12-07 08:34:15 -08:00
Mike Jolley
36b1753925
Version
2017-12-07 15:41:53 +00:00
Mike Jolley
3e00533183
phpcs
2017-12-05 14:02:40 +00:00
Mike Jolley
d49590d0a3
Fixes to 5.2 rounding function and additional tests
2017-12-05 12:10:23 +00:00
Mike Jolley
6b37aa7b70
Allow negative rounding (php does)
2017-12-04 20:27:30 +00:00
Mike Jolley
cb61e9dd3d
WC_TAX_ROUNDING_MODE auto to support switching in tests
2017-11-06 21:25:02 +00:00
Mike Jolley
42fef1a51a
Float handling logic for scientific notation
2017-11-06 20:04:03 +00:00
Mike Jolley
004e58c8b8
Revert "Long floats convert to strings with chars like "E". Let's format to precision setting to avoid this."
...
This reverts commit 1ac8f6c272
.
2017-11-06 20:04:03 +00:00
Mike Jolley
7af6c2f55e
Long floats convert to strings with chars like "E". Let's format to precision setting to avoid this.
2017-11-06 20:04:03 +00:00
Markus Aurich
b27602db3f
fix: wrong validation of polish postcodes ( #17523 )
2017-11-02 16:55:37 +00:00
Mike Jolley
43ba326ed9
Fix currency position with rtl symbols
2017-10-31 12:22:18 +00:00
Mike Jolley
f3d2b2f7f1
Merge pull request #17071 from woocommerce/add/formatting-unit-tests
...
Formatting functions tests
2017-10-27 15:14:14 +01:00
Michael Rimbach
6183d0973d
Format PL (Poland) Postal Code
...
Add "PL" formatting to wc_format_postcode function. An example pl postal code is 24-100
2017-10-19 17:16:36 +02:00
Claudio Sanches
8cd754d8b6
Fixed coding standards
2017-10-05 11:08:37 -03:00
Claudio Sanches
97498ba975
Preserve the behavior of wc_price filter
...
The default behavior as been changed after #16678
Current 3rd party integrations should already be expecting the price as a
formatted string.
Closes #16678
2017-09-05 17:38:17 -03:00
Ralf Wiechers
245c354209
Pass unformated price into filter to allow better overwrite
...
Attempt to fix #16674 .
Tried to add som PhpDocs to make
2017-09-01 17:50:06 +02:00
claudiulodro
ae80d12d80
Merge master
2017-08-14 11:12:09 -07:00
Mike Jolley
aa82a54f47
Prevent notices
2017-08-09 19:27:19 +01:00
Mike Jolley
f71dc64d35
Manual discounts and negative taxes
2017-08-09 18:53:10 +01:00
Mike Jolley
858d3842ea
Move method so it's available in admin
2017-08-09 14:54:05 +01:00
Mike Jolley
73350e5418
Fake round half down in PHP 5,2
...
Fixes unit tests.
2017-08-09 11:59:50 +01:00
Mike Jolley
6054519605
Discount taxes
2017-07-27 13:48:58 +01:00
Mike Jolley
982edb2f9f
Improves cash on delivery logic when dealing with multiple methods
...
If an order has multiple shipping methods, check all against the
allowed methods using a simple array_diff.
2017-07-13 16:21:59 +01:00
Mike Jolley
de825ad5b6
woocommerce_format_localized_decimal + woocommerce_format_localized_price filters
2017-06-15 12:07:52 +01:00
Mike Jolley
4c7f8c0fbd
Revert thousand removal in wc_format_decimal, and add more tests
2017-06-06 12:44:58 +01:00
Mike Jolley
4ea9138d3e
Code and test improvements
2017-05-30 11:54:31 +01:00
Ninos Ego
8eec5cc802
Small fix for thousand separators replacement check
2017-05-26 20:06:24 +02:00
Ninos Ego
ccdac49723
Fix for #15294
2017-05-26 19:31:13 +02:00
Mike Jolley
d2da39e046
Merge branch 'pr/14549'
2017-05-25 11:51:55 +01:00
Mike Jolley
7ec25f987f
Only replace the user set thousand separator and add test
2017-05-25 11:51:45 +01:00
Mike Jolley
d73849eee3
wc_strtoupper helper
2017-05-25 11:30:01 +01:00
Rasmus Bengtsson
185934fad9
Fix phpdoc to include params and correct types
2017-05-15 13:50:52 +02:00
claudiulodro
5625eaf6fd
Docblock
2017-05-09 14:57:24 -07:00