Commit Graph

193 Commits

Author SHA1 Message Date
Gerhard Potgieter 52f1eb4060
Revert "Prevent negative prices on products" 2019-07-15 08:50:11 +02:00
Claudio Sanches 77191a97f8
Merge pull request #23705 from woocommerce/fix/23696
Prevent negative prices on products
2019-07-12 12:56:34 -03:00
Claudio Sanches 78702ca423 Fixed docblock 2019-07-12 12:56:04 -03:00
Claudio Sanches 7073c6b3a2 Allow "(", and ")" in wc_format_phone_number() 2019-06-19 17:39:08 -03:00
Claudio Sanches 9fd6e6d974 Added new $abs arg to wc_format_decimal() function 2019-05-14 13:15:42 -03:00
Gerhard c601d20b57 Fix alignment 2019-04-18 12:22:22 +02:00
Gerhard 6026d2b9bf Typecast is sufficient enough 2019-04-18 12:20:59 +02:00
Gerhard 8ca0bd7b4d Add logic to wc_let_to_num to handle non int values, added unit tests to cover these scenarios 2019-04-17 10:30:49 +02:00
Mike Jolley c39f447ff4 Merge branch 'fix/22937' 2019-03-12 13:27:13 +00:00
Claudio Sanches c892ed51a8 Better description 2019-03-07 14:15:10 -03:00
Claudio Sanches 82aeb2a7f4 Introduced new wc_sanitize_phone_number function 2019-03-07 14:07:32 -03:00
Claudio Sanches 8c3ef28d07 Fixed coding standards 2019-03-07 14:07:14 -03:00
Mike Jolley 315b79c5ac phpcs 2019-03-06 11:41:58 +00:00
Mike Jolley 39bb476db2 Introduce wc_sanitize_coupon_code 2019-03-06 11:41:52 +00:00
Mike Jolley 7def966e4f Impoved JSON handling 2019-02-20 12:00:47 +00:00
ICT beheer 8eb9393e62 Support for Dutch postcodes 2018-12-30 20:02:59 +01:00
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