Mike Jolley
d917856378
Validate status if object_read
...
#13891
2017-04-04 12:39:35 +01:00
Mike Jolley
7857fbe41f
Cast values to float
...
Fixes #13752
2017-03-24 12:05:28 +00:00
JeroenSormani
373bdda4f8
Add required filters to allow custom order item types
2017-03-20 10:37:06 +01:00
Claudio Sanches
59c2849736
Changed version 2.7 to 3.0
2017-03-15 13:36:53 -03:00
Mike Jolley
d55653a408
Merge branch 'master' into fix-13498
...
# Conflicts:
# includes/class-wc-order.php
# tests/unit-tests/crud/data.php
2017-03-15 15:52:40 +00:00
Mike Jolley
6848fad224
Merge branch 'timezone-poc' into fix-13498
2017-03-09 16:10:07 +00:00
Mike Jolley
9427eb048d
Set default status in getter, not during contruct.
...
Prevents loops like in Prospress/woocommerce-subscriptions#1902
2017-03-09 13:45:33 +00:00
Mike Jolley
c7dc8ae2b4
date_created and date_modified getters and setters
2017-03-08 16:51:10 +00:00
Michael Pretty
6150ee2fde
Validate the parent order ID by calling wc_get_order() instead of get_post()
2017-03-08 08:02:18 -05:00
Mike Jolley
e5ed116e33
Split total row methods to avoid calling total row filter twice
...
Fixes #13456
2017-03-06 13:44:52 +00:00
Mike Jolley
1a8737fdeb
Standardize cache group names
2017-03-02 17:15:39 +00:00
Mike Jolley
f5a36778fd
Move refund/payment method code out of abstract
2017-02-27 17:06:09 +00:00
Mike Jolley
c5697f2d59
Logic error with used id
2017-02-23 15:25:49 +00:00
Mike Jolley
134df2f4a0
Save existing rates rather than recreate all
...
Fixes #13264
2017-02-23 14:14:50 +00:00
Mike Jolley
ded2accace
Allow trash status to be set/returned rather than pending
2017-02-22 11:53:47 +00:00
Mike Jolley
b37e4da43c
Move legacy classes to correct dir
2017-02-16 16:39:56 +00:00
Claudiu Lodromanean
dda98da4ad
Merge pull request #13192 from woocommerce/deprecated-hooks
...
Deprecated hook handling
2017-02-15 08:40:16 -08:00
Boro Sitnikovski
5dd607023b
Fix PHP notice when there are shipping taxes.
2017-02-15 15:17:04 +01:00
Mike Jolley
e0d1cfc7b0
Actions
2017-02-14 19:23:57 +00:00
Mike Jolley
1a61f20785
Add actions to trigger legacy actions
2017-02-14 18:55:56 +00:00
Mike Jolley
7ff301e2ca
Merge branch 'master' into crud-perf-tweaks
...
# Conflicts:
# includes/data-stores/class-wc-order-item-data-store.php
2017-02-09 12:31:25 +00:00
Mike Jolley
3529d7cafd
Cache items
2017-02-01 14:54:18 +01:00
Mike Jolley
31308403d4
Use variables to save values in item crud.
2017-02-01 10:53:53 +01:00
Brent Shepherd
7a7c0fbce6
Add WC_Abstract_Order::get_valid_statuses()
...
So that classes which extend WC_Abstract_Order can define custom statuses
specifically for their order type and have those used for validation in
WC_Abstract_Order::set_status() instead of only the order statuses defined
by wc_get_order_statuses().
For example, the subscription order type has a number of custom order statuses,
like 'wc-active' and 'wc-expired', which do not apply to orders but are valid
statuses for WC_Subscription objects, which extend WC_Abstract_Order.
2017-01-31 15:00:03 -08:00
Brent Shepherd
0e393da2cd
Fix woocommerce_order_add_product deprecation msg
2017-01-26 16:58:47 -08:00
Brent Shepherd
5e77311384
Fix deprecated action messages
...
Don't end sentence with double .. and instead of "Replace with Use CRUD"
just say "Replace with CRUD"
2017-01-26 16:44:28 -08:00
Justin Shreve
474a307420
Introduce get_tax_class_slugs.
2017-01-25 13:38:13 -08:00
Justin Shreve
e4937b898d
Fix PHP 7.1 warnings/notices.
2017-01-04 10:45:45 -08:00
Manos Psychogyiopoulos
40bf6afc29
fix incorrect inline comments
...
Ref: 01aba1fd2b
2016-12-22 19:41:23 +02:00
Mike Jolley
03b581f72e
Refunds API/get_data() missing ID
...
Fixes #12672
2016-12-22 14:52:37 +00:00
Mike Jolley
20680203bb
Add actions for all object types
2016-12-19 17:09:52 +00:00
Mike Jolley
5ae62959d8
Notices
2016-12-19 11:59:10 +00:00
Manos Psychogyiopoulos
87bb9adf08
use CRUD to add line item meta
2016-12-19 13:27:32 +02:00
Manos Psychogyiopoulos
3a8eae195b
maintain order item meta action hooks
2016-12-18 18:13:11 +02:00
Mike Jolley
d7dfdd3d10
Wrap all deprecation calls.
2016-11-23 16:15:00 +00:00
Mike Jolley
2b1c762142
Set parent
2016-11-23 15:37:34 +00:00
Justin Shreve
dd0a2317f1
Fix up data tests and some coding standards issues
2016-11-22 04:05:05 -08:00
Justin Shreve
174aa38be6
Start moving meta to normal stores, instead of a separate meta store.
2016-11-22 04:05:05 -08:00
Justin Shreve
b20b3590c8
First pass at order items
2016-11-21 10:56:21 -08:00
Mike Jolley
8cf3feaf82
No absint here
2016-11-21 16:55:36 +00:00
Mike Jolley
8466f4f79a
Feedback
2016-11-21 16:46:32 +00:00
Mike Jolley
c06c357399
Fix tests
2016-11-18 20:27:59 +00:00
Mike Jolley
c933f82961
Refunds
2016-11-17 16:53:13 +00:00
Mike Jolley
8d6f236d47
Fix save
2016-11-17 16:02:09 +00:00
Mike Jolley
83813bb9bb
Interface
2016-11-17 13:18:24 +00:00
Mike Jolley
eafd7c9fa5
Use data store for methods
2016-11-17 12:34:39 +00:00
Mike Jolley
81a2d6345f
Setters
2016-11-17 11:26:24 +00:00
Mike Jolley
b37db6eb7b
Getters
2016-11-17 11:22:24 +00:00
Mike Jolley
d387afbba3
Added data store
2016-11-17 10:53:22 +00:00
Mike Jolley
599a2ad296
Product CRUD improvements ( #12359 )
...
* args is not used any more - remove todo
* Added test for attributes
* wc_get_price_excluding_tax usage
* parent usage
* Fix rating counts
* Test fixes
* Cleanup after tests
* Make sure status transition code runs even during API calls, not just in admin.
* Default visibility
* Fix attribute setting in API
* Use get name instead of get title
* variation id usage
* Improved cross sell templates
* variation_data
* Grouped product sync
* Notices
* Sync is not needed in API
* Delete
* Rename interfaces
* Update counts in data store
2016-11-16 12:17:00 +00:00