Mike Jolley
e6d4729453
Code standards
2016-10-12 11:54:21 +01:00
Claudio Sanches
657c312cae
Fix strings case ( #12069 )
...
* Fixed case for all _e, esc_attr_e and esc_html_e strings
* Fixed case for all _n_noop strings
* Fixed case for all _x strings
* Fixed case for all __, esc_html__ and esc_attr__ strings
* Fixed a few more strings
* Fixed strings in unit tests
* Fix PayPal Standard case.
* Save Order text
2016-10-12 11:16:30 +01:00
Lucas Stark
3e11e168cd
Only display price meta when price is not empty
2016-10-11 09:15:45 -04:00
Rami Yushuvaev
83e938af1e
i18n: Merge similar translation strings to reduce the total strings count #11905
2016-10-11 04:39:13 +03:00
Justin Shreve
c1d7111240
Implement separate variation endpoints for managing a product's variations. Also adds tests.
2016-09-29 14:44:14 -07:00
Mike Jolley
f9b2ed88c2
Merge branch 'pr/11883'
...
# Conflicts:
# includes/class-wc-shortcodes.php
2016-09-12 14:53:04 +01:00
Mike Jolley
e7fb89be5f
Protocol relative images
...
Closes #11884
2016-09-12 13:03:44 +01:00
Aristeides Stathopoulos
831b4463d0
Merge pull request #5 from woothemes/master
...
sync
2016-09-09 16:49:48 +03:00
Justin Shreve
c8ddca0635
Merge pull request #11882 from woothemes/settings-and-api-fixes
...
Settings & API Fixes
2016-09-09 05:52:23 -07:00
Justin Shreve
e1e6c682b5
* Stop using _ as a prefix for protected or private vars and functions. We have a keyword for that.
...
* Introduces set_id and get_id to WC_Data for the CRUD classes to share
2016-09-09 05:36:54 -07:00
Aristeides Stathopoulos
7a509f53d4
Merge pull request #4 from woothemes/master
...
sync
2016-09-09 03:17:28 +03:00
Justin Shreve
a36b25a68f
Add setting validation to the REST API
2016-09-08 15:20:15 -07:00
Justin Shreve
9889222bd1
Swap "doesn't" with "does not" in 404 error messages.
2016-09-08 15:17:02 -07:00
Aristeides Stathopoulos
734f284fa4
WordPress.PHP.YodaConditions.NotYoda
2016-09-08 01:32:24 +03:00
Job
ff9c553b1b
coding standards
2016-09-07 13:34:37 +02:00
Job
ffa2c4dec2
crucial update
2016-09-07 13:25:34 +02:00
Job
d086cf3248
update function
2016-09-07 13:12:18 +02:00
Job
50fe611cdb
again small update after review
2016-09-07 13:01:55 +02:00
Job
a0274e9dc5
small update
2016-09-07 12:47:24 +02:00
Job
d0aaf68f27
Update UX for disabled taxes
...
If taxes are disabled in the “General settings tab”, then the “Tax” tab
disappears, and the suffix can no longer be edited, but is still
displayed in the store
This fix makes sure that the suffix is only displayed if taxes are
enabled
2016-09-07 12:38:38 +02:00
Mike Jolley
311c540662
Merge pull request #11833 from aristath/master
...
Coding Standards (2nd pass)
2016-09-07 10:14:17 +01:00
Mike Jolley
cf59524dd7
Fix order total race condition in CRUD
2016-09-07 09:28:11 +01:00
Aristeides Stathopoulos
39d4d4bd69
Squiz.Commenting.DocCommentAlignment.SpaceBeforeStar
2016-09-02 05:40:36 +03:00
Aristeides Stathopoulos
cc0b29ccf4
PEAR.Functions.FunctionCallSignature.SpaceAfterCloseBracket
2016-09-02 05:00:46 +03:00
Aristeides Stathopoulos
d4e3faf014
PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket
2016-09-02 04:51:31 +03:00
Aristeides Stathopoulos
0516e96843
PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket
2016-09-02 04:33:57 +03:00
Aristeides Stathopoulos
8fe4cd65a4
PEAR.Functions.FunctionCallSignature.SpaceBeforeOpenBracket
2016-09-02 04:12:22 +03:00
Aristeides Stathopoulos
fde1037757
fix failing tests.
2016-09-01 23:50:14 +03:00
Mike Jolley
1b2df3dd3b
Merge branch 'pr/11797'
...
# Conflicts:
# includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php
# includes/api/class-wc-rest-coupons-controller.php
# includes/class-wc-coupon.php
# tests/unit-tests/api/coupons.php
# tests/unit-tests/coupon/crud.php
2016-09-01 11:46:05 +01:00
Mike Jolley
402d0ff077
Merge branch 'master' into pr/11797
...
# Conflicts:
# includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php
# includes/api/class-wc-rest-coupons-controller.php
# includes/class-wc-coupon.php
# tests/unit-tests/api/coupons.php
# tests/unit-tests/coupon/crud.php
2016-09-01 11:43:31 +01:00
Mike Jolley
d9a0d0988b
Handle meta data and fix unit tests
2016-08-31 15:43:34 +01:00
Justin Shreve
de4296dd15
Add some missing API pieces:
...
* Value was missing from the settings schema (but was still present in the response).
* Added delete endpoint for shipping zones.
* Corrected permissions check/error for shipping zone methods.
2016-08-29 10:22:29 -07:00
Aristeides Stathopoulos
f2730eea02
WordPress.WhiteSpace.ControlStructureSpacing.BlankLineAfterEnd
2016-08-27 08:57:05 +03:00
Aristeides Stathopoulos
9543c7fe1c
WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeCloseParenthesis
2016-08-27 07:29:49 +03:00
Aristeides Stathopoulos
17961f6484
WordPress.Arrays.ArrayDeclaration.ValueNoNewline
2016-08-27 06:04:10 +03:00
Aristeides Stathopoulos
58b9df6564
WordPress.Arrays.ArrayDeclaration.NoSpaceAfterOpenParenthesis
2016-08-27 05:23:54 +03:00
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
8eef062079
Merge pull request #11781 from woothemes/shipping-method-api
...
Shipping Methods API
2016-08-26 16:51:55 +01:00
Mike Jolley
9bd57414c5
Remove set and get prop - no longer need the extra overhead since functions won't return wp_error now.
2016-08-26 10:48:17 +01:00
Justin Shreve
147c18c197
Add the ability to update/create/delete shipping method instances
2016-08-25 20:34:26 -07:00
Mike Jolley
627b08ba37
Test coverage
2016-08-25 17:42:47 +01:00
Mike Jolley
3637814b92
Revert use of default_data for default args and just set that in constructor
2016-08-25 13:31:03 +01:00
Mike Jolley
25883f8687
Set_props helper to load data from DB and handle errors
2016-08-25 13:05:27 +01:00
Mike Jolley
077f57f139
Merge branch 'master' into WC_Data_Exception
2016-08-25 11:03:14 +01:00
Mike Jolley
d936dfa87e
[2.6] Allow has_shipping_method to deal with instance ids
...
Fixes #11772
2016-08-25 10:58:11 +01:00
Mike Jolley
543fc31d81
Fix filter and unit test
...
#11771
2016-08-25 10:45:50 +01:00
Mike Jolley
95db2f26cd
Set meta to 'null' to delete it during save.
...
Fixes #11771
2016-08-25 10:32:42 +01:00
Mike Jolley
938361535f
Exception handling
2016-08-24 16:02:19 +01:00
Mike Jolley
cde78abed3
Working on catching errors
2016-08-24 15:26:35 +01:00
Mike Jolley
d9798f7226
Set reading to prevent exceptions during DB load
2016-08-24 14:37:19 +01:00
Mike Jolley
7e30e8dda3
Set defaults and handle order reads without exceptions
2016-08-24 12:34:19 +01:00
Mike Jolley
53f01b52a8
Bring back WC_Data_Exception
2016-08-24 10:46:29 +01:00
Mike Jolley
b727acd96e
Implement get and set prop methods
2016-08-23 18:48:48 +01:00
Mike Jolley
e08e5a816d
2d array handling
2016-08-23 15:49:34 +01:00
Mike Jolley
2636d04ba6
Setters
2016-08-23 15:25:50 +01:00
Mike Jolley
3e3e35d50d
Add set prop/get prop helper, error handler, and validation to item product class
2016-08-23 14:58:44 +01:00
Mike Jolley
74c96e305b
Error method
2016-08-23 13:43:26 +01:00
Claudio Sanches
7a0c5bc19b
REST API expect meta data ID as an integer value
...
cc @mikejolley
2016-08-22 16:59:03 -03:00
Claudio Sanches
38e1be71eb
ID first for all elements in the REST API
...
cc @mikejolley
2016-08-22 16:58:34 -03:00
Mike Jolley
39f4a1cdca
Swaps meta_id for id across crud and api
2016-08-22 19:37:34 +01:00
Mike Jolley
a8e47992a6
Put back add_product for convenience. Fix unit tests.
2016-08-22 18:00:52 +01:00
Mike Jolley
95b11606fc
get_product_from_item -> get_product
2016-08-22 16:51:24 +01:00
Mike Jolley
c88984eb0e
Replace add methods
2016-08-22 16:48:19 +01:00
Mike Jolley
fc2e039882
Deprecate add_product etc
...
#11601
2016-08-22 14:51:53 +01:00
Mike Jolley
fdd7e797ba
API get refunds
2016-08-22 13:15:15 +01:00
Mike Jolley
9e45927803
Create refund with crud
2016-08-22 13:15:15 +01:00
Mike Jolley
21ad196297
Use CRUD in wc_save_order_items
2016-08-19 13:43:33 +01:00
Mike Jolley
594bceedf2
Comment out exception code - see #11715
2016-08-17 17:07:30 +01:00
Mike Jolley
709dec9ef1
Create and update handling
2016-08-17 16:53:01 +01:00
Mike Jolley
0b9a5998cc
Exception class
2016-08-17 11:44:56 +01:00
Mike Jolley
99be0167b4
Order type doesn't appear to be used anywhere, and I'd expect other plugins extending orders to have their own classes anyway making this a bit pointless.
...
@thenbrent
2016-08-16 13:02:22 +01:00
Mike Jolley
1baef12395
qty -> quantity
2016-08-16 12:36:38 +01:00
Mike Jolley
bc75c60227
Merge branch 'master' into order-crud-api
2016-08-16 11:09:14 +01:00
Mike Jolley
c7ae2c31ea
leave wp meta alone and handle serialisation
2016-08-15 17:37:18 +01:00
Mike Jolley
3f08d116d8
Start using crud for order requests
2016-08-15 17:27:33 +01:00
Mike Jolley
83dca89d0c
Correct customer escaping and tests
2016-08-15 16:53:48 +01:00
Mike Jolley
e1318d9175
Stop WP core meta data being removed for customers
...
@justinshreve
2016-08-15 13:17:43 +01:00
Mike Jolley
0113dbd7c5
Use wc_do_deprecated_action
2016-08-15 11:08:36 +01:00
Mike Jolley
0dd41179aa
Prefix item ids and revert some changes to add_products method for ease of use.
2016-08-15 11:02:25 +01:00
Mike Jolley
7796fe9cf1
Clean item/group cache when remove_order_items is used.
2016-08-12 16:48:48 +01:00
Mike Jolley
eec9ce5b41
Revert addition of _delete_extra_meta_data
...
This essentially removes the ability to delete meta which is not great.
@justinshreve you added this in
https://github.com/woothemes/woocommerce/commit/e3b1f6dbc9558bae606fa76e
6941175582a301b7 - can you tell me what problems it was causing you so
we can add a different fix if needed?
2016-08-12 16:41:06 +01:00
Mike Jolley
30b0045d8a
Fix more notices
2016-08-09 14:30:10 +01:00
Mike Jolley
71afe5fdf7
Fix get_items
2016-08-09 14:21:54 +01:00
Mike Jolley
f4a4f6c361
Reduce stock and other notices
2016-08-09 14:15:04 +01:00
Mike Jolley
8d58febaf8
Merge branch 'master' into orders-crud-function-update
...
# Conflicts:
# includes/class-wc-checkout.php
2016-08-09 14:03:06 +01:00
Mike Jolley
7861b76e9b
Checkout handling
...
Also introduces add_item so you can add items to an order before the
order exists. Save at once is more efficient.
2016-08-09 14:02:40 +01:00
Mike Jolley
4ac4bcaa08
Merge branch 'master' into WC-CRUD
...
# Conflicts:
# tests/unit-tests/cart/cart.php
2016-08-09 11:08:21 +01:00
Justin Shreve
fe7e26d68d
Error fixes:
...
* Typos
* Consistent edit error handles
* Consistent error messages
2016-08-08 14:52:46 -07:00
Mike Jolley
971cff77b8
Fixed unit tests
2016-08-08 17:47:50 +01:00
Mike Jolley
39eb584321
Merge branch 'master' into orders-crud-function-update
2016-08-08 17:24:40 +01:00
Mike Jolley
e8d85005d7
Handle default status
2016-08-08 17:24:39 +01:00
Mike Jolley
9d66367699
Status change fixes
2016-08-08 17:03:43 +01:00
Mike Jolley
a8759fc0aa
Meta/product handling
2016-08-08 16:20:15 +01:00
Mike Jolley
4a8db96c91
[2.6][api] ID needs to be capitalized
...
Sorting won’t work with lowercase id
Fixes #11635
@claudiosmweb
2016-08-08 12:10:29 +01:00
Paul Kilmurray
4484877481
initialize $tax_rates variable
...
There are situations where the $tax_rates may not be initialized in the conditional, which in turn throws an error later in the function.
2016-08-08 10:36:04 +07:00
Mike Jolley
1c592b3872
Merge pull request #11208 from woothemes/orders-crud-classes
...
Orders crud classes
2016-08-05 15:44:15 +01:00
Mike Jolley
0b04ee195c
Over sanitization
2016-08-05 15:43:12 +01:00
Justin Shreve
e3b1f6dbc9
A few fixes to customer CRUD:
...
* Implement some missing legacy functions
* Stop calling legacy functions from some pages
* Prevent extra meta from being deleted, unless requested by the CRUD (was causing problems with user/customer)
* Prevent save when loading from session AND logged out
2016-08-04 13:13:07 -07:00
Mike Jolley
b0963ddb0d
Merge pull request #11176 from woothemes/add/10954-shipping-zones-api
...
Add Shipping Zones API Endpoints.
2016-08-04 15:45:23 +01:00
Mike Jolley
387cd745c2
Add missing textdomains
2016-08-04 14:43:34 +01:00
Mike Jolley
1bc9da3e91
Merge branch 'master' into WC-CRUD
...
# Conflicts:
# includes/class-wc-coupon.php
2016-08-04 12:10:04 +01:00
Mike Jolley
5a9dacd595
Show variable weights/dimensions even when parent values are not set.
2016-08-03 16:07:34 +01:00
Mike Jolley
f694f297e8
Use get_id()
2016-08-03 12:57:32 +01:00
Mike Jolley
1310ff09b5
Deprecated function replacements
2016-08-03 12:52:45 +01:00
Mike Jolley
837e08143b
Merge branch 'master' into orders-crud-classes
...
# Conflicts:
# includes/abstracts/abstract-wc-order.php
2016-08-03 12:32:27 +01:00
Justin Shreve
9396c5436b
Make sure that the create shipping zone uses the correct permissions function. Also makes sure creating the shipping zone returns 201, with the location of the new entity, like other endpoints.
2016-08-02 10:26:26 -07:00
Justin Shreve
33e0b367ac
Add new line at end of files.
2016-08-02 10:10:47 -07:00
Jeff Stieler
288496b22b
Separate shipping zone endpoint permissions check between read and write operations.
2016-08-02 10:10:47 -07:00
Jeff Stieler
56ef442624
Move common methods to an abstract base shipping zones controller class.
2016-08-02 10:10:47 -07:00
Mike Jolley
423a18f5c1
[2.6] When checking needs_shipping, ignore anything after : in the method ID
...
Fixes #11552
2016-08-01 10:31:05 +01:00
Nicola Mustone
5613985882
Capitalise all the things
2016-07-26 15:47:04 +02:00
Mike Jolley
9b60e0543f
Allow meta_key/value in rest api filter
...
@claudiosmweb Closes #11518
2016-07-25 13:12:39 +01:00
Mike Jolley
bc80b75540
Merge pull request #11324 from woothemes/out-of-stock-threshold-11322
...
Out of stock threshold 11322
2016-07-20 14:44:41 +02:00
Mike Jolley
e5634c6946
Do not sanitize passwords
...
Closes #11473
@claudiosmweb
2016-07-19 16:43:15 +01:00
Claudio Sanches
7778583340
Fixed wrong number of decimal precision, closes #11368
2016-07-11 17:26:54 +02:00
Sven Wagener
d5a414d0e3
Instance ID have to be checked, because on using settings and instace settings together every time the instance settings will be fetched.
2016-07-05 21:03:18 +02:00
Paul Kilmurray
75379a6025
fix typo
...
#11349
2016-07-05 11:44:22 +08:00
Claudio Sanches
6fafe2c531
Fixed how calculate shipping tax rates when using more than one tax class
...
Closes #11349
cc @mikejolley
2016-07-04 17:52:53 -03:00
Claudio Sanches
8f62c322dd
[REST API] Fixed check for product types, closes #11341
2016-07-04 17:24:39 -03:00
Mike Jolley
c495552301
Same for variations
2016-07-01 12:01:37 +01:00
Mike Jolley
6422669c95
Base is_in_stock purely on stock status and not stock levels
2016-07-01 11:59:52 +01:00
Claudio Sanches
69b976e3a9
[REST API] Remove the term if something fails while creating, closes #11303
2016-06-30 15:24:23 -03:00
Mike Jolley
a9918043b9
Only show available on backorder if notifying customer
2016-06-29 15:51:20 +01:00
Mike Jolley
b11794ceac
@Since changes
2016-06-29 12:58:38 +01:00
Mike Jolley
adf0c2152e
Fix - Don't sync ratings right away; meta won't exist in some cases.
2016-06-28 15:24:37 +01:00
Mike Jolley
5275a2663a
check if empty
2016-06-23 16:07:35 +01:00
Mike Jolley
a22859ae32
Abstract unit tests
2016-06-23 15:52:12 +01:00
Mike Jolley
a2b8352081
Merge branch 'pr/11229'
2016-06-23 11:44:12 +01:00
Mike Jolley
dd48f3e851
Do away with ID - $this covers everything
2016-06-23 11:44:04 +01:00
Mike Jolley
3334693885
Revised stock display based on feedback to hide 'in stock' message if stock management is off.
...
@claudiosmweb This removes ‘in stock’ when not needed, and I broke the
methods up for clarity.
Also removed the variation specific logic as it was near identical and
not needed.
2016-06-23 11:24:15 +01:00
Alexandre Sorochan
ff003f066c
Filter for backorders
...
It's possible to change backorder status using filters via `woocommerce_product_backorders_allowed`.
However, it's not possible to set `$product->backorder` to `"notify"`.
Added a filter similar to `woocommerce_product_backorders_allowed`
2016-06-23 09:55:19 +02:00
Mike Jolley
46439ddba5
Refund unit tests
2016-06-22 16:31:05 +01:00
Mike Jolley
8287b13cf1
Address and CRUD unit tests
2016-06-22 14:07:42 +01:00
Mike Jolley
972442b1ae
Merge branch 'master' into orders-crud-classes
2016-06-22 11:59:26 +01:00
Mike Jolley
4ddf220b9b
Pass $this to backorder filter.
...
Closes #11216
2016-06-22 11:56:43 +01:00
Mike Jolley
fe3e61b754
Legacy order class
2016-06-21 20:04:49 +01:00
Mike Jolley
122ad3a479
Abstract order class
2016-06-21 20:03:56 +01:00
Claudio Sanches
57e041a58f
[2.6] [REST API] Fix warnings when product is not hierarchical, closes #11192
2016-06-20 17:29:56 -03:00
Claudio Sanches
11534cf457
[2.6] [REST API] Allow fetch, edit and delete a single product variation
2016-06-20 15:49:43 -03:00
Claudio Sanches
cdd4e6d877
[2.6] Fixed notices when do not include "default" in shipping instance fields
...
Notice: Undefined index: default in wp-includes/functions.php on line 3463
cc @mikejolley
2016-06-18 10:21:09 -03:00
Mike Jolley
52ff42d3ad
Fix available check for legacy methods
2016-06-17 16:20:44 +01:00
Claudio Sanches
56e6429940
Restore the WC_Settings_API::init_form_fields() method
2016-06-14 19:00:18 -03:00
Mike Jolley
78142a8ebb
Merge branch 'master' into WC-CRUD
...
# Conflicts:
# includes/class-wc-checkout.php
# includes/class-wc-coupon.php
# includes/class-wc-customer.php
# tests/unit-tests/cart/cart.php
# tests/unit-tests/cart/functions.php
# tests/unit-tests/coupon/coupon.php
# woocommerce.php
2016-06-13 15:01:58 +01:00
Mike Jolley
847dea6a2d
docs/vars
2016-06-07 14:02:02 +01:00
Mike Jolley
77eca1da3f
docblock fix
2016-06-07 11:06:41 +01:00
Mike Jolley
d70cfa0c74
white space issues
2016-06-06 20:04:45 +01:00
Mike Jolley
119b53c383
fix comments
2016-06-06 19:52:51 +01:00
Mike Jolley
394da46c63
Merge pull request #11056 from shivapoudel/some-tweaks
...
Minor tweaks and JSHint ignore for update notice script
2016-06-06 18:23:25 +01:00
Shiva Poudel
00cc3711ac
Minor tweaks and JSHint ignore for update notice script
2016-06-06 23:05:10 +05:45
Mike Jolley
a0c01d963b
Vars and docs
2016-06-06 18:18:26 +01:00
Mike Jolley
76a4ffe2e0
Unused vars
...
@claudiosmweb
2016-06-06 18:10:03 +01:00
Claudio Sanches
171a4a732a
[REST API] Removed dead variables in posts controller
2016-06-06 14:05:55 -03:00
Scrutinizer Auto-Fixer
7cef8ae4c9
Scrutinizer Auto-Fixes
...
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2016-06-06 16:50:18 +00:00
Mike Jolley
d4d6f3181c
Best practice tweaks
2016-06-06 17:24:31 +01:00
Mike Jolley
2d2a5eb816
Hide empty taxes by default.
...
Closes #11050 @claudiosmweb
2016-06-06 13:50:21 +01:00
Claudio Sanches
a7cee6b642
[REST API] Allow filters schemas, closes #11028
2016-06-03 14:56:25 -03:00
Claudio Sanches
3fd54f0281
[REST API] Include default params in batch create
2016-05-30 20:15:50 -03:00
Claudio Sanches
638d54425a
[REST API] The only post type that have slugs are products
2016-05-30 17:42:42 -03:00
Claudio Sanches
e39274e753
HTTPS for everybody
2016-05-26 22:48:49 -03:00
Mike Jolley
2ba9029624
Suit CSS and method tidyup for saved methods form
...
cc @jameskoster
2016-05-26 12:42:32 +01:00
Mike Jolley
39b7b6ba51
get_type_to_display method
2016-05-26 12:42:32 +01:00
Mike Jolley
6fe37fff33
Remove the need for token script when logged out
2016-05-26 12:42:32 +01:00
Mike Jolley
3893d0ec19
Fixes tokenisation form when > 1 are used at once.
...
@claudiosmweb can you give this a check over since it was missed?
2016-05-24 17:52:32 +01:00
Shiva Poudel
d35ecad8c9
Implementing customize selective refresh for widgets
2016-05-21 19:07:03 +05:45
Mike Jolley
c22d9a3c14
Use empty instead of null
...
Closes #10944
2016-05-19 11:47:08 +01:00
Brent Shepherd
8ae4b5ad24
Fix "Undefined variable: args" notice
2016-05-16 22:25:58 -07:00
Brent Shepherd
29692a22c5
Fix fatal error on order tax calculations
...
Fix "PHP Fatal error: Call to a member function get_total() on array"
by using the shipping line items cost index instead of attempting
to call a method on it which does not exist (because it's an array)
2016-05-16 22:22:53 -07:00
Brent Shepherd
94a9c649ba
Remove empty lines
2016-05-16 22:22:38 -07:00
Mike Jolley
094afb4745
Allow failed orders to be edited
2016-05-16 11:12:12 +01:00
Claudio Sanches
2b1d4eced6
[REST API] Allow batch create, update and delete for almost all endpoints
2016-05-11 16:34:53 -03:00
Claudio Sanches
dac471273f
Merge pull request #10884 from woothemes/wp-api-batch
...
[REST API] Batch create, update and delete items
2016-05-11 16:22:54 -03:00
Mike Jolley
c9095abf8e
Save line taxes for shipping rows
...
Fixes #10897
2016-05-11 16:32:51 +01:00
Mike Jolley
0927cbee8d
Tweaks saved card markup and styling to improve CC form.
2016-05-10 15:43:39 +01:00
Claudio Sanches
0918a6b6bc
Fixed batch errors response
2016-05-09 18:21:36 -03:00
Claudio Sanches
068b77cc43
Created WC_REST_Controller to allow batch create, update and delete items
2016-05-09 18:16:48 -03:00
Mike Jolley
167df8acce
Tokens: Get cards on any screen
2016-05-09 17:36:40 +01:00
Mike Jolley
fd001669fe
woocommerce_email_order_items_args filter
...
Closes #10812
2016-05-03 15:40:34 +01:00
Mike Jolley
f5e9875548
Allows stock status to be considered for availability and stock status on frontend.
...
Refactors code which make it so stock status was actually ignored if on
backorder. Fixes #10834
@claudiosmweb
2016-05-03 15:10:31 +01:00
Mike Jolley
e53704431d
Don't use abstract
...
Fixes #10815
2016-04-29 15:28:09 +01:00
Mike Jolley
2b1442c3f0
Added get_rate_id() method for consistent rate nams
2016-04-25 17:06:38 +01:00
Mike Jolley
87dc31ffac
Force name to be set
...
Closes #10782
2016-04-25 13:25:15 +01:00
Mike Jolley
29c6acf767
Used positional placeholders in strings where the order of strings may require modification in the locale.
...
Closes #10775
2016-04-25 13:07:41 +01:00
Mike Jolley
87bc757de8
Correct $package usage and comments
2016-04-20 15:02:30 +01:00
Mike Jolley
04e9eef0ac
Correct access props and comments
2016-04-20 15:02:19 +01:00
Diego Zanella
e0c565da2d
Backward compatibility with WC 2.5 and earlier
...
* Restored signature of WC_Shipping_Method::add_rate() method, while maintaining the features added in WC 2.6 to handle shipping zones.
2016-04-20 08:59:19 +01:00
Diego Zanella
a506909822
Backward compatibility with WC 2.5 and earlier
...
* Slightly altered previous change to maintain the exact logic used before (i.e. the WC_Ajax class sets the POST data for the shipping method explicitly).
2016-04-20 08:49:32 +01:00
Diego Zanella
ba46a5275f
Backward compatibility with WC 2.5 and earlier
...
* Restored signature of WC_Settings_API::process_admin_options() method.
2016-04-20 08:48:29 +01:00
Claudio Sanches
b6d33ee906
WP-API
2016-04-19 12:49:16 -03:00
Claudio Sanches
1021bfb754
Simplified the way how check terms permissions
2016-03-31 16:57:55 -03:00
Claudio Sanches
5091b36d41
Align variables
2016-03-31 16:34:16 -03:00
Claudio Sanches
c890961f76
Fixed contexts on abstract terms controller
2016-03-31 16:17:39 -03:00
Claudio Sanches
bf64942b28
Align variables
2016-03-31 16:14:18 -03:00
Claudio Sanches
8df7723895
Fixed permissions error messages
2016-03-31 16:03:59 -03:00
Claudio Sanches
bb029747b7
Changed $namespace from public to protected in posts controller
2016-03-31 15:28:17 -03:00
Mike Jolley
c757fd9940
Merge branch 'shipping-zone-modals'
...
# Conflicts:
# assets/css/admin.css
# assets/css/admin.scss
2016-03-31 15:20:06 +01:00
Claudio Sanches
bb7e5ecfb6
Allow filter products by taxonomies and sku
2016-03-30 20:05:12 -03:00
Claudio Sanches
5d99b8b336
Register dp filter for orders and allow filter orders by customer id
2016-03-30 19:11:56 -03:00
Claudio Sanches
f574a149d1
Attributes permissions
2016-03-30 14:49:22 -03:00
Claudio Sanches
82a6a5f18e
Settings and reports permissions
2016-03-30 14:33:33 -03:00
Claudio Sanches
0fce9c5243
New product terms permissions
2016-03-30 14:17:40 -03:00
Claudio Sanches
f4012b7f1f
Reviewed post permissions
2016-03-30 11:17:16 -03:00
Mike Jolley
84d3fe2d82
wc_format_localized_decimal on dimensions
2016-03-30 13:19:01 +01:00
Mike Jolley
975f9d8c2d
Remove nonce on cancel order URL
...
Nonces are invalid if the user ID changes during checkout e.g. through
registration. Cancel links are invalid.
cc @claudiosmweb
Fixes #10605
2016-03-30 12:45:25 +01:00
Claudio Sanches
5bf8c808fc
Added methods to create and edit products
2016-03-29 21:22:10 -03:00
Mike Jolley
5f6aa6c160
Fix modals and ajax events
2016-03-24 19:06:51 +00:00
Mike Jolley
8b53d1a618
Only load modal if supported
2016-03-24 18:31:39 +00:00
Mike Jolley
d3ac3f4073
Modals first pass
2016-03-24 17:26:40 +00:00
Mike Jolley
dd68a57fff
Merge pull request #10592 from woothemes/item-box-tweaks
...
Order Item Meta Box Tweaks
2016-03-23 15:03:24 +00:00
Joey Kudish
bde619c4d6
Fix for older versions of php
...
Older versions of php cannot check `empty()` with a non-variable. Fixes
fatal introduced in 1d35fd6d73
2016-03-22 17:36:24 -07:00
Claudio Sanches
935a784061
Fixed header location when creating attribute terms
2016-03-22 15:34:27 -03:00
Mike Jolley
f73149feaf
Tweak variation display and reenable bulk editing
2016-03-22 17:13:39 +00:00
Mike Jolley
8d76396eaf
Merge pull request #10588 from justinshreve/payment-tokens-wc-data
...
Convert WC_Payment_Tokens to use the new WC_Data
2016-03-22 14:14:29 +00:00
Justin Shreve
1d35fd6d73
Convert WC_Payment_Tokens (and CC/eCheck tokens) to use the new WC_Data and meta handling code.
2016-03-21 11:06:17 -07:00
Mike Jolley
7be2b129b6
Removed bulk actions from order items panel
...
Reduce/increase order item stock is less important these days do to
automatic stock reduction (when status changes) and because when you
refund items you can restock items via checkbox. Manual stock changes
can be performed by editing products.
Decreases complexity of order items box.
2016-03-21 14:58:14 +00:00
Justin Shreve
705213d4f5
Move meta_id into the _meta_data array instead of trying to use them as array keys.
...
This is so we can just use PHP's keys, instead of trying to add new meta and guess an avaible key.
2016-03-18 12:24:35 -07:00
Mike Jolley
1238a37124
Merge pull request #10576 from justinshreve/coupon-crud
...
Coupon CRUD
2016-03-18 11:12:32 +00:00
Mike Jolley
c25ef5e55a
Adjust OR logic
...
#10568
2016-03-17 17:54:09 +00:00
Justin Shreve
ffc80ccd15
Start updating some usage, and start implementing the actual CRUD functions, and some new get/setters for username, email, etc.
2016-03-17 09:41:12 -07:00
Justin Shreve
f65c9305bf
Update WC_Coupon to use the new WC_Data class and meta methods.
2016-03-17 09:38:56 -07:00
Mike Jolley
12e23bb143
Adjust related query nesting
...
Fixes #10568
2016-03-17 16:02:33 +00:00
Mike Jolley
6765967be8
Add data and tostring handling to WC_Data
2016-03-17 15:22:29 +00:00
Justin Shreve
a51e164fd7
Set versions to 2.6
2016-03-15 15:44:04 -07:00
Justin Shreve
9aff45e154
Feedback
2016-03-15 15:11:07 -07:00
Claudio Sanches
f53e582566
Include prepare_links() to abstract posts controller
2016-03-15 16:55:41 -03:00
Claudio Sanches
218390071c
Improve posts controller
2016-03-15 16:45:46 -03:00
Justin Shreve
5d6cdd05f1
Finish out tests, make sure to use cprrect meta ID field in order by clause.
2016-03-14 11:12:47 -07:00
Justin Shreve
97c0edf445
Start on tests for testing CRUD meta.
...
Includes Mock object for testing against the abstract WC_Data.
2016-03-14 11:12:47 -07:00
Justin Shreve
f572a887e0
New Abstract WC_Data Class
2016-03-14 11:12:47 -07:00
Justin Shreve
5dbfc7ae16
Fix Payment Token 'set default' methods. Makes sure we are using the user ID of the payment token, and not the current user.
...
Also makes sure to properly unset other tokens when a new one is set as default. Finally, we make sure that a user is always set in our payment token tests (which was broken in some WP versions which alerted us to some broken tests).
2016-03-14 09:41:37 -07:00
Mike Jolley
c573a5b75f
Only add product line if product exists.
...
Fixes #10556
2016-03-14 15:40:58 +00:00
Mike Jolley
807b860a6c
Merge pull request #10514 from SiR-DanieL/email-items-type
...
Added bool param for email order items hooks
2016-03-09 12:00:11 +00:00
Mike Jolley
55918626f5
[2.5] Update date for paid orders during non-manual updates only
...
Fixes #10510
2016-03-09 11:58:44 +00:00
Nicola Mustone
c7756187e0
Added bool param for email order items hooks
2016-03-09 12:55:28 +01:00
Claudio Sanches
5f73c23da6
Better query params name
2016-03-09 01:46:04 -03:00
Claudio Sanches
396242b89c
Fixed links for terms
2016-03-07 17:28:52 -03:00
Claudio Sanches
426410c2ae
Manipule product attribute terms
2016-03-07 16:39:24 -03:00
Claudio Sanches
349b817d1e
Fixed typo
2016-03-07 15:45:10 -03:00
Claudio Sanches
9f07be5271
Make easy to extend our rest controllers
2016-03-07 15:36:17 -03:00
Claudio Sanches
b5e65c68b9
Added methods to update and create terms
2016-03-07 14:49:14 -03:00
Justin Shreve
927941e2ca
Merge pull request #10260 from justinshreve/token-api
...
Payment Token API
2016-03-04 04:34:41 -08:00
Claudio Sanches
d4d91d0fe9
Allow delete categories, tags and shipping classes
2016-03-03 18:19:02 -03:00
Mike Jolley
e7e4808726
Correct status check and improved note
...
#10461
2016-03-03 17:04:20 +00:00
Mike Jolley
fab1f224c6
When creating new order from draft, assume 'pending' for status transitions
...
Fixes #10461
2016-03-03 13:51:04 +00:00
Claudio Sanches
1f8e07108f
Created methods to list and get terms
2016-03-02 20:22:12 -03:00
Claudio Sanches
0b0aa47421
Created methods to create and update customers
2016-03-02 19:14:03 -03:00
Claudio Sanches
8fe7935925
Fixed textdomains
2016-03-02 19:03:18 -03:00
Claudio Sanches
c0affe96e0
Created API functions
2016-03-01 19:41:59 -03:00
Claudio Sanches
26c325acce
Fixed __() functions
2016-03-01 17:53:25 -03:00
Justin Shreve
ccb2c90ef3
Update references for the tokenization UI script (hiding/showing inputs) to use the correct file.
2016-03-01 11:49:43 -08:00
Justin Shreve
49c45c6dc1
Make sure the is_default/default token ability works correctly. Also adds a new method for getting a users default token. Fixes up some docblocks.
2016-03-01 11:49:42 -08:00
Justin Shreve
0985292a79
Make sure the tokenization script is output even if the current user is logged out (we still show save payment method if user is creating account).
2016-03-01 11:49:42 -08:00
Justin Shreve
e3d7e206d0
Create a function for getting correctly formatted credit card type labels (MasterCard, American Express, etc)
2016-03-01 11:49:42 -08:00
Justin Shreve
75f2e6b85c
Fix up some comments and add uninstalling code.
2016-03-01 11:49:42 -08:00
Justin Shreve
c0b74296ff
* Remove WC_Payment_Gateway_Form in favor of having a Payment_Gateway_CC and Payment_Gateway_eCheck
...
* Fix up some comments to match other comments in the WC code base
* Add some missing esc_* functions
* Add a gateway filter to get_customer_tokens + a test for it
2016-03-01 11:49:42 -08:00
Justin Shreve
e6a527547f
Add the ability for gateways to override the "new payment method" label.
2016-03-01 11:49:42 -08:00
Justin Shreve
eff4e297f9
First pass at showing saved payment methods on checkout
2016-03-01 11:49:40 -08:00
Justin Shreve
5d8967c7d7
Prepare a list of payment methods for output on the payment methods "my account" page.
2016-03-01 11:49:40 -08:00
Justin Shreve
0061b36f3b
Make sure WP knows about the payment token meta table, and return null in payment tokens get if a token cannot be found.
2016-03-01 11:49:39 -08:00
Justin Shreve
df260c228d
Prevent notice from being displayed for user_id and remove static on echeck validate
2016-03-01 11:49:39 -08:00
Justin Shreve
7b57b4c4cc
Validate length for expiry - 4 chars for year and 2 for month.
2016-03-01 11:49:39 -08:00
Justin Shreve
214f077a91
Implement the rest of the WC_Data methods for creating, updating, reading, etc.
2016-03-01 11:49:39 -08:00
Justin Shreve
c87c99f847
Start implementing the WC_Data interface. Move update, create, save, etc to the actual token class, and have the controller return our tokens. This matches the shipping zone API closer.
2016-03-01 11:49:39 -08:00
Justin Shreve
f66b9e3681
Move meta (when creating) to its own sub meta array.
2016-03-01 11:49:39 -08:00
Justin Shreve
f66a8b6478
Rename customer_id to user_id to match how orders reference the user.
2016-03-01 11:49:39 -08:00
Justin Shreve
bfa9437a43
Rename the meta name _payment_tokens to remove the wc_ prefix, since this meta is a part of WC orders already.
2016-03-01 11:49:38 -08:00
Justin Shreve
6112752836
Misc cleanup based on PR feedback:
...
* Remove $token_id parameter from WC_Order's add_payment_token. get_id() can be used to access the ID
* Rename our list of token ids from meta to $token_ids as it makes more sense
* Cleaned up/fixed some of the comments in WC_Payment_Token
* Some code formatting fixes
2016-03-01 11:49:38 -08:00
Justin Shreve
204922e2ae
Add methods for managing payment tokens associated with an order.
2016-03-01 11:49:37 -08:00
Justin Shreve
c5aec06a8a
First pass at a payment token API
2016-03-01 11:49:37 -08:00
Mike Jolley
fa2280f3f8
Add notice on fail
2016-02-29 12:33:09 +00:00
Mike Jolley
09ef555e5a
[2.5] Combine update post calls
2016-02-29 12:24:02 +00:00
Claudio Sanches
53db5ff4c8
Created coupons POST and PUT endpoints and coupons schema
2016-02-26 17:24:33 -03:00
Mike Jolley
d7d609d85a
Remove comment
2016-02-25 14:13:56 +00:00
Claudio Sanches
f10846277b
Added method to delete coupons
2016-02-23 15:28:43 -03:00
Claudio Sanches
0d88e3c380
Added endpoint to get coupons
2016-02-23 12:16:21 -03:00
Claudio Sanches
a31ef08ed7
Improved permissions check
2016-02-22 17:48:38 -03:00
Claudio Sanches
43a5f6f842
Created abstract classes for posts and terms
2016-02-22 16:43:52 -03:00
Mike Jolley
dbd6479f45
Comment on get_related limit
...
Closes #10398
2016-02-22 13:27:39 +00:00
Mike Jolley
e9703da300
Merge pull request #9921 from peterrath/vat-exempt-and-tax-enabled-handling
...
VAT exempt and “TAX enabled” handling in back end and Orders API
2016-02-19 14:53:39 +00:00
Peter
de1ecf9f78
Use === instead of == in abstract-wc-order.php
...
Use === here: if ( 'yes' === $this->is_vat_exempt or ! wc_tax_enabled() )
2016-02-18 19:56:55 +01:00
Claudio Sanches
e926c54d29
Created WC_REST_Controller and structure to load WooCommerce controllers
2016-02-16 18:59:18 -02:00
Mike Jolley
3dba3378c2
Merge pull request #10315 from woothemes/layered-nav-wp-query
...
Layered Nav Improvements
2016-02-12 11:59:40 +00:00
Diego Zanella
6e4376511d
Fixed incompatibility with PHP 5.4 and earlier
2016-02-10 19:47:16 +00:00
Mike Jolley
fab8a871aa
Merge branch 'master' into shipping-zones
...
# Conflicts:
# assets/css/admin.css
# includes/admin/class-wc-admin-assets.php
2016-02-10 14:12:39 +00:00
Mike Jolley
75c264837f
Justins feedback/code tidy
2016-02-10 13:21:16 +00:00
Mike Jolley
1d5349bc83
Keep rating meta synced for filtering
2016-02-09 20:53:18 +00:00
Mike Jolley
75cbb74520
Rating widget standards
2016-02-09 15:18:27 +00:00
Mike Jolley
5525fadc09
Pass values to validation functions.
...
Closes #10032
2016-02-08 12:06:23 +00:00
Mike Jolley
352184cc06
Merge branch 'master' into shipping-zones
...
# Conflicts:
# assets/css/admin.css
# i18n/languages/woocommerce.pot
# includes/abstracts/abstract-wc-payment-gateway.php
# includes/abstracts/abstract-wc-shipping-method.php
# includes/admin/settings/class-wc-settings-shipping.php
# includes/wc-core-functions.php
# uninstall.php
2016-02-05 14:58:48 +00:00
Mike Jolley
384c07b367
Merge pull request #10262 from Spreeuw/issue-10252
...
default order to processing for non-catalog products
2016-02-05 12:21:43 +00:00
Mike Jolley
787d36dee4
Merge pull request #10232 from marcusds/master
...
Add filter to is_in_stock
2016-02-05 12:01:10 +00:00
Ewout Fernhout
a3634028fa
default order to processing for non-catalog products
...
fixes #10252
2016-02-03 14:48:19 +01:00
Agbonghama Collins
a742861cda
minor typo
...
Found this error while trying to understand how gateways are built on WooCommerce
2016-02-02 15:35:01 +01:00
Mike Jolley
64d4bb5172
[2.5] Round shipping after tax calc
...
#10076 and
https://wordpress.org/support/topic/when-calculating-shipping-total-forc
e-rounding?replies=6#post-7972623
2016-02-02 11:09:02 +00:00
Marcus
780614b14e
Add filter to is_in_stock
2016-02-01 11:09:12 -08:00
Mike Jolley
657521ffa4
[2.5] Don't show purchase note to admin
2016-01-27 15:30:07 +00:00
Mike Jolley
f8df682f34
Hide stock amount when children are involved
...
Closes #10172
2016-01-27 13:00:50 +00:00
Mike Jolley
9ca216310d
[2.5] When totalling up shipping, force round
...
Closes #10076
2016-01-27 11:06:08 +00:00
Claudio Sanches
2790307489
Changed allbuttons to select_buttons for multiselect #10079
2016-01-21 19:33:49 -02:00
Claudio Sanches
f4fddf2252
Merge pull request #10079 from woothemes/add/select-all-buttons-multiselect-field
...
Settings API: add optional "select all"/"select none" buttons to multiselect fields
2016-01-21 19:30:12 -02:00
Mike Jolley
4cfd8ff214
[2.5] Don't show downloads in admin email
2016-01-20 16:58:58 +00:00
Florian Ludwig
ddd5f9fb9b
Fixed attribute check for PHP 7 compatibility
2016-01-20 15:53:51 +01:00
Brett
a772457a32
remove unnecessary use of ternary operator
2016-01-20 12:30:56 +13:00
Joey Kudish
7bb99af123
Settings API: enhance multiselect fileds
...
Add optional "select all"/"select none" buttons to multiselect fields,
similarly to what already exists for the country field.
2016-01-14 22:07:31 -08:00
Mike Jolley
a322b05f24
Avoid confusion between fields and field keys
2016-01-11 12:04:37 +00:00
Mike Jolley
1076854608
Merge branch 'master' into shipping-zones
...
# Conflicts:
# assets/css/admin.css
# includes/abstracts/abstract-wc-shipping-method.php
# includes/class-wc-shipping.php
# includes/shipping/flat-rate/class-wc-shipping-flat-rate.php
# includes/shipping/flat-rate/includes/class-wc-eval-math.php
# includes/shipping/free-shipping/class-wc-shipping-free-shipping.php
#
includes/shipping/legacy-international-delivery/class-wc-shipping-legacy
-international-delivery.php
#
includes/shipping/legacy-local-delivery/class-wc-shipping-legacy-local-d
elivery.php
2016-01-11 11:48:18 +00:00
Mike Jolley
a33b9b9750
Unit tests for shipping zones
2016-01-08 13:56:01 +00:00
Mike Jolley
007abbc98e
Shipping meta data
...
Closes #9094
2016-01-08 11:42:32 +00:00
Peter
c5e3e018c3
is_vat_exempt and wc_tax_enabled handling in abstract-wc-order
...
If is_vat_exempt is 'yes', or wc_tax_enabled is false, then do not calculate tax.
2016-01-05 21:36:06 +01:00
Mike Jolley
7ece70a6ae
Update _transaction_id
...
Closes #9970
2016-01-05 15:59:57 +00:00
Mike Jolley
97d47fb576
Move zones to main settings
2016-01-05 11:23:15 +00:00
Claudio Sanches
40d76ddc55
Merge pull request #9939 from frozzare/docs/abstract-wc-widget
...
Improve phpdoc comments for methods in abstract WC_Widget class
2016-01-04 12:59:32 -02:00
Fredrik Forsmo
513db93bd4
Improve phpdoc comments for methods in abstract WC_Widget class
2016-01-04 15:37:12 +01:00
Mike Jolley
62ca37f651
Merge branch 'master' into shipping-zones
...
# Conflicts:
# includes/admin/class-wc-admin-assets.php
# includes/class-wc-install.php
2016-01-04 14:35:45 +00:00
Fredrik Forsmo
39f37b1e30
Improve phpdoc comments for methods in abstract WC_Shipping_Method class
2016-01-04 15:18:14 +01:00
Fredrik Forsmo
450ae6e7fd
Improve phpdoc comments and add missing param tags
2016-01-04 12:43:56 +01:00
Mike Jolley
520f1de24b
Merge pull request #9932 from frozzare/wc-order-phpdoc
...
Fix phpdoc tags for methods in abstract WC_Order class
2016-01-04 11:08:45 +00:00
Fredrik Forsmo
9c8ef67249
Add better phpdoc comments and missing param and return value
2016-01-03 10:22:53 +01:00
Fredrik Forsmo
b4a04a73ce
Fix phpdoc tags for methods in abstract WC_Order class
2016-01-03 10:00:02 +01:00
Mike Jolley
4bf40cedb1
Tweak logic
2015-12-23 12:50:28 +00:00
Peter
458c755b5f
Update abstract-wc-order.php
...
If the order has no shipping line, there must not generate an unnecessary shipping tax line with 0 value. It was happened if there is set a different tax class for shipping than tax classes of the actual product line items of the order, and the order has not got any shipping line.
The aim is to have the same tax calculation behavior if we create orders using the GUI (front end or back end), and the API.
This condition prevents to create the unnecessary tax line if there is no shipping methods of the order:
// Now calculate shipping tax
$matched_tax_rates = array();
$shipping_methods = $this->get_shipping_methods();
if ( ! empty( $shipping_methods ) ) {
......
}
This conditional solution is similar than calc_line_taxes() in WC_AJAX class:
// Get shipping taxes
if ( isset( $items['shipping_method_id'] ) ) {
.....
}
2015-12-21 23:42:59 +01:00
Mike Jolley
901db7b0f8
zone tweaks
2015-12-18 17:10:58 +00:00
Mike Jolley
119f19a5c1
Include and conditionally load legacy shipping methods
2015-12-18 14:24:34 +00:00
Mike Jolley
77f0e9d72a
has settings handling
2015-12-18 13:12:20 +00:00
Mike Jolley
bf06b6d7c3
Filter non-images from gallery
...
Fixes #9875
2015-12-18 11:55:51 +00:00
Mike Jolley
1a77563085
started on free shipping
2015-12-16 13:52:46 +00:00
Mike Jolley
e25d876779
List and sort methods within zones
2015-12-15 17:48:03 +00:00
Mike Jolley
b47423ff2b
Moved rate calc logic into shipping class
2015-12-15 16:22:32 +00:00
Mike Jolley
a0e0bb1e55
Load instance methods for calculations
2015-12-15 15:00:45 +00:00
Mike Jolley
091a8a7641
Zone matching functions
2015-12-15 12:39:52 +00:00
Mike Jolley
3b81642eec
Instance and global level settings
2015-12-14 16:56:39 +00:00
Mike Jolley
2f97b16a91
Fix notice
2015-12-14 14:05:00 +00:00
Mike Jolley
b27aed5753
Settings api
2015-12-14 14:03:46 +00:00
Mike Jolley
f992f98b39
Merge branch 'pr/9790'
2015-12-14 12:48:11 +00:00
Mike Jolley
4b45812bac
Only one sanitise hook is needed
2015-12-14 12:48:03 +00:00
Mike Jolley
f3d6ce3c94
Round total discount to precision
...
Fixes #9834
2015-12-14 12:06:39 +00:00
Mike Jolley
63f8eebd6a
Started on refactoring settings for instances
2015-12-11 16:41:38 +00:00
Mike Jolley
6cea054fca
Method list screen and method screen with breadcrumbs
2015-12-11 14:11:12 +00:00
Shiva Poudel
afd3aa2fc7
Let the additional third party widgets create and sanitize form fields
2015-12-08 16:19:49 +05:45
Claudio Sanches
ff637abb7b
Removed duplicated argument for PHP 7, closes #9788
2015-12-07 17:36:18 -02:00
Mike Jolley
dd2fe6ff49
Make WC_Abstract_Order::update_status() return boolean
...
closes #9777
2015-12-07 10:12:17 +00:00
Shiva Poudel
88d7713a86
Modified checkbox class value from widefat
2015-12-05 05:26:28 +05:45
Shiva Poudel
69d6a25f5e
Refactor to format the value based on widget settings type
2015-12-05 05:25:51 +05:45
Claudio Sanches
d15c711855
Merge branch 'master' of github.com:woothemes/woocommerce
2015-12-04 21:17:47 -02:00
Max Rice
3befe1426f
Introduce WC_Product::get_id() method
2015-12-04 15:17:25 -05:00
Claudio Sanches
92582e21cb
Properly sanitize textarea field for widgets #9762
2015-12-04 17:14:42 -02:00
Shiva Poudel
b3cd28e323
Added textarea widget form field
2015-12-04 21:23:19 +05:45
Mike Jolley
1c364e79e4
Enforce min and max
...
Closes #9761
2015-12-04 14:53:25 +00:00
Patrick Garman
eb3dc97df9
Add filter to WC_Product::is_virtual()
2015-12-03 20:52:27 -05:00
Claudio Sanches
112f3bfc32
Merge pull request #9723 from shivapoudel/widget-field-class
...
Added support for class in each widget fields
2015-12-02 13:40:41 -02:00