Mike Jolley
3e00533183
phpcs
2017-12-05 14:02:40 +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
claudiulodro
c89e389b3f
Good progress towards better date queries
2017-05-09 11:37:45 -07:00
Mike Jolley
d0ebf48da4
Merge branch 'fix-13625'
...
# Conflicts:
# assets/css/woocommerce-layout-rtl.css
# assets/css/woocommerce-layout.css
# assets/css/woocommerce-layout.scss
# includes/wc-core-functions.php
2017-04-27 18:05:34 +01:00
Mike Jolley
ad578137be
No need to wrap - leave styling to themes
2017-04-27 18:03:42 +01:00
Ninos Ego
f940961c6f
Remove thousand seperator if dot
2017-04-20 00:55:07 +02:00
Manos Psychogyiopoulos
6392582d16
Fix wc_get_weight warning with PHP 7.1
2017-04-19 12:35:40 +03:00
Claudio Sanches
5eab267ec1
Fixed shortcodes formatted with <p> and improved wc_format_content()
...
This fix the shortcode issue, stop extra sanitization and allow use
smilies, attachments, embeds and Jetpack markdown.
Closes #14135
2017-04-10 19:21:22 -03:00
Claudio Sanches
f3c2e6c5f6
Improved wc_format_content() formatting and added sanitization
2017-04-06 13:01:35 -03:00
Mike Jolley
bf601e7b23
docblock
2017-04-03 19:14:55 +01:00
Mike Jolley
6b11bfbff0
Timezone can be + 30 mins
...
Fixes #13887
2017-04-03 16:01:18 +01:00
Mike Jolley
ba07d53768
Remove guesswork from timezone handling so offsets work correctly regardless of DST
2017-03-23 00:11:15 +00:00
Claudiu Lodromanean
7c8c17d284
Enable oembeds in short descriptions
2017-03-17 11:39:17 -07:00
Claudio Sanches
59c2849736
Changed version 2.7 to 3.0
2017-03-15 13:36:53 -03:00
Mike Jolley
804573028d
wc_format_datetime function
2017-03-10 16:29:42 +00:00
Claudio Sanches
3e7e9dafb1
Allow wc_format_decimal() return negative values
2017-02-24 15:58:02 -03:00
Claudio Sanches
09123c9fc8
Merge pull request #12926 from woocommerce/fix-12910
...
Use mb_ functions in wc_get_wildcard_postcodes
2017-01-23 15:48:59 -02:00
Mike Jolley
ba7513ed82
wc_format_decimal should remove % symbols
...
Fixes #12893
2017-01-22 01:35:14 +00:00
Mike Jolley
f0049367ae
Use mb_ functions and add tests
2017-01-22 01:24:20 +00:00
Mike Jolley
b240e10b91
Merge branch 'pr/12756'
2017-01-11 12:19:30 +00:00
Mike Jolley
3e31f2f361
Syntax
2017-01-11 12:19:23 +00:00
Mike Jolley
11015c4b06
Pass products around and change how wc_format_stock_for_display gets called so $product is available.
2017-01-11 12:17:18 +00:00
Mike Jolley
b97f6c9eb1
wc_bool_to_string handling for 'true'
2017-01-10 14:14:05 +00:00