Claudio Sanches
2f6f6112c2
Merge branch 'master' into feature/webhook-crud
2017-12-07 18:21:52 -02: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
claudiulodro
d60456cc73
Resolve conflicts and bring up to date with master
2017-12-04 13:56:59 -08:00
Mike Jolley
6b740671cc
Change how precision is added
...
Some users have increased precision beyond the DP setting. Support this
by converting to cents and leaving some precision on the end.
e.g. 10.00 would be converted to cents (1000) and have 2 dp precision
on the end (1000.00).
2017-12-04 20:32:51 +00:00
Claudio Sanches
867f7dfc7a
Fixed coding standards
2017-12-01 15:13:27 -02:00
Claudio Sanches
b1fd3134c3
Introduces woocommerce_webhook_process_delivery hook
2017-12-01 14:33:30 -02:00
Claudio Sanches
270c0a200e
Merge branch 'master' into feature/webhook-crud
2017-11-30 16:55:28 -02:00
Gerhard Potgieter
220abd97eb
Pass all args of function to filter
2017-11-29 15:12:24 +02:00
Gerhard Potgieter
be4a2553b1
Introduce woocommerce_cookie_httponly filter on the httponly param of setcookie.
2017-11-29 11:22:57 +02:00
Claudio Sanches
c6f8e95b97
Merge branch 'master' into feature/webhook-crud
2017-11-28 15:09:10 -02:00
Mike Jolley
c8d1a46315
Default rounding to true.
2017-11-20 16:37:44 +00:00
Mike Jolley
80ffcfb45d
Add round param for `wc_add_number_precision`
...
Let’s us return the cent value without rounding to an integer.
2017-11-20 16:30:04 +00:00
Claudio Sanches
13978e496b
Merge branch 'master' into feature/webhook-crud
2017-11-20 10:34:35 -02:00
Gerhard Potgieter
3524ed2cf0
Merge branch 'master' of github.com:woocommerce/woocommerce into feature/webhook-delivery-logging
2017-11-15 14:28:14 +02:00
Mike Jolley
616d85f9cb
Fix option names
2017-11-14 16:59:59 +00:00
Mike Jolley
79d918d33e
Merge branch 'feature/unsupported-theme' into update/move-settings-to-customizer-17148
...
# Conflicts:
# assets/css/admin-rtl.css
# assets/css/admin.css
# assets/css/woocommerce-rtl.css
# assets/css/woocommerce.css
2017-11-14 16:02:02 +00:00
Mike Jolley
bc16a85d22
Cropping settings
2017-11-14 16:01:36 +00:00
Gerhard Potgieter
016cfabb75
On the fly image regeneration.
2017-11-14 14:39:28 +02:00
Mike Jolley
220728544a
Merge pull request #17631 from woocommerce/update/page-caching-class
...
Page caching class
2017-11-10 14:12:13 +00:00
Gerhard Potgieter
b11ab6d8d6
Convert comments to wc_logger logging, remove and deprecate unused functions and introduce a wc_get_log_file_name helper function. Still a couple of todos left regarding deprecating or removing filters related to comments.
2017-11-10 12:20:59 +02:00
Mike Jolley
d765e2319c
Added theme support vars for grid settings
...
- product_grid
- min_rows
- max_rows
- min_columns
- max_columns
If settings violate these, they will be updated.
If loop_shop_columns is defined, settings are hidden with a notice.
2017-11-09 18:11:35 +00:00
Mike Jolley
6e08ff0284
Merge pull request #17610 from woocommerce/update/17557
...
Theme support to declare image sizes
2017-11-09 16:04:22 +00:00
Mike Jolley
9f059e17a9
Add helper function instead of calling method, and restore old method for bw compat
2017-11-08 15:07:00 +00:00
Mike Jolley
cf448398cd
Update API
2017-11-07 19:08:06 +00:00
Mike Jolley
e025caf177
Widths and aspect ratios
2017-11-07 18:32:43 +00:00
Mike Jolley
2fd540fdf6
Fix theme support checks
2017-11-07 12:33:58 +00:00
Mike Jolley
6701917e5a
Remove need for wc_get_core_supported_themes
2017-11-07 12:17:03 +00:00
Mike Jolley
fb8c6cd0d2
Add compat class for each wp default theme
2017-11-07 12:11:37 +00:00
Mike Jolley
2d2156aeca
Fix setting retrievel
2017-11-07 11:46:25 +00:00
Mike Jolley
dae70d9be2
Pull sizes from the theme if defined
2017-11-07 11:04:06 +00:00
MounirHamani
2c471d3662
Add new Belarusian ruble BYN
2017-11-07 03:24:01 +01:00
Mike Jolley
cb61e9dd3d
WC_TAX_ROUNDING_MODE auto to support switching in tests
2017-11-06 21:25:02 +00:00
Joel Rowley
390f46f7da
Attempt to fix type conversion precision bug
2017-11-04 16:33:23 -04:00
Claudio Sanches
787bb7f0c0
Fixed permalink default values ( #17385 )
...
* Fixed permalink default values
`woocommerce_permalinks` may return a list with empty results like:
wp> get_option( 'woocommerce_permalinks', array() )
=> array(5) {
["product_base"]=>
string(8) "/product"
["category_base"]=>
string(16) ""
["tag_base"]=>
string(11) ""
["attribute_base"]=>
string(0) ""
["use_verbose_page_rules"]=>
bool(false)
}
This override all placeholders declared with `wp_parse_args()`.
`wp_parse_args()` can apply default values only when missing, and not empty.
This PR removes all empty values in order to use the placeholders.
Fixes a bug introduced in #17352
* Moved array_filter() before wp_parse_args()
2017-10-26 13:57:40 +01:00
Mike Jolley
e68f087659
When no permalinks are set, set the defaults and avoid switching locales
2017-10-24 16:29:04 +01:00
Mike Jolley
88ea1eaf7b
Remove rounding in wc_remove_number_precision
...
Remove the rounding when removing precision so the cart can handle it.
For taxes, this means it can round down.
Fixes #17158
Tests are passing.
2017-10-12 15:16:48 +01:00
Mike Jolley
d09d7d1358
wc_get_relative_url/wc_is_external_resource helpers
2017-09-08 12:20:03 +01:00
claudiulodro
ccade24ce5
Only set some fields on new orders
2017-09-07 13:50:47 -07:00
Mike Jolley
a8a33c8f0d
Merge pull request #16717 from woocommerce/refactore/wc_maybe_define_constant
...
Use wc_maybe_define_constant() in all places
2017-09-07 12:16:13 +01:00
Claudio Sanches
4e9cf1c598
Restored WooCommerce->define access to private
2017-09-06 14:47:35 -03:00
Claudio Sanches
f98aeb5b91
Use WC()->define() into wc_maybe_define_constant()
2017-09-05 16:51:09 -03:00
Mike Jolley
5c5a8f4e8e
Helper functions
2017-09-05 11:54:04 +01:00
Anton Timmermans
f73c198404
Cache currencies for performance
2017-09-01 18:30:08 +02:00
Mike Jolley
d68291b3ac
Merge pull request #16086 from woocommerce/improvement/versions
...
Extensions version check.
2017-08-21 18:18:04 +01:00
rspublishing
9ed2f7544f
Updated XAF and XOF denominators
2017-08-20 21:48:18 +02:00
Claudio Sanches
b93a95423f
Use wc_strtolower() to format coupon code
...
Improves #16519
2017-08-18 14:11:33 -03:00
Mike Jolley
f957546cc4
Format coupon code with mb_strtolower
...
Fixes #16497
2017-08-18 15:43:34 +01:00
Rami Yushuvaev
7ad61068e1
i18n: Simpler translation string with placeholders
...
Replace:
`The class <code>%s</code> provided by woocommerce_logging_class filter must implement <code>WC_Logger_Interface</code>.`
With:
`The class %1$s provided by %2$s filter must implement %3$s.`
2017-08-15 14:39:41 +03:00
Mike Jolley
7620473fa5
Support callback for index
2017-08-11 13:52:28 +01:00
Mike Jolley
140771e759
Merge branch 'master' into improvement/versions
...
# Conflicts:
# assets/css/admin-rtl.css
# assets/css/admin.css
# assets/css/helper-rtl.css
# assets/css/helper.css
# assets/css/twenty-seventeen-rtl.css
# assets/css/twenty-seventeen.css
# assets/css/wc-setup-rtl.css
# assets/css/wc-setup.css
2017-08-09 10:08:06 +01:00