Mike Jolley
d917856378
Validate status if object_read
...
#13891
2017-04-04 12:39:35 +01:00
Mike Jolley
c06fdc2e2e
If product has_options, don't show qty in grouped product add to cart form
...
Fixes #13875
2017-04-03 12:05:28 +01:00
Akeda Bagus
0b416439c8
Fixed all typos of all files in includes/ directory.
...
Scanning and fixing were done automatically by codespell,
https://github.com/lucasdemarchi/codespell .
2017-03-29 00:58:51 +07:00
Mike Jolley
7857fbe41f
Cast values to float
...
Fixes #13752
2017-03-24 12:05:28 +00:00
Mike Jolley
0ad1f6a63f
Merge pull request #13709 from woocommerce/fix-13708
...
Timezone/DST fixes
2017-03-24 10:25:08 +00:00
Mike Jolley
ba07d53768
Remove guesswork from timezone handling so offsets work correctly regardless of DST
2017-03-23 00:11:15 +00:00
Mike Jolley
c4c8edee5f
Remove order and product factory cache
2017-03-21 23:37:38 +00:00
Mike Jolley
98f5ba44e8
Protection against removed objects.
2017-03-21 18:31:38 +00:00
Mike Jolley
991927c2d8
Handle sleep and wakeup in WC_Data class
2017-03-21 17:42:34 +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
75a5b062cf
Merge pull request #13577 from woocommerce/fix-13498
...
Timezone/Date method handling
2017-03-15 16:09:41 +00: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
77cade928a
Merge pull request #13596 from woocommerce/fix/payment-token-crud-pattern
...
Update Payment Tokens to follow the same pattern for custom data as other objects.
2017-03-15 15:38:31 +00:00
Justin Shreve
b917a87a73
Deprecated $context on get_display_name.
2017-03-15 08:21:02 -07:00
Mike Jolley
20b857bfbf
Merge pull request #13602 from JeroenSormani/fix-false-deprecated
...
Remove @(deprecated) sign from docblock to prevent false notice in ed…
2017-03-15 09:55:13 +00:00
JeroenSormani
08e441149b
Remove @(deprecated) sign from docblock to prevent false notice in editors
2017-03-15 09:46:17 +01:00
Justin Shreve
fb124232cf
Update Payment Tokens to follow the same pattern for custom data as other object types.
...
Payment tokens was introduced in 2.6 and was updated to use the new CRUD code while some of the CRUD system was still in flux.
While most things were correct, the prop handling for custom fields (like a card's last 4 digits) were directly calling meta functions, instead of delegating to the data store/parent.
This PR moves these props to `extra_data` and follows the same pattern as product types or order items. It also updates some version tags to 3.0.0. Finally, it adds an additional test for saving meta after a create which looks like it was lacking.
To Test:
* Run `phpunit`.
* Go to the "My Account" tab and add a new payment method. You need a payment gateway that supports this, like Simplify.
* Test the add a payment method flow.
* Make a test purchase using the saved payment method.
2017-03-14 12:33:35 -07:00
Mike Jolley
a3cc5cc9bb
has_meta -> meta_exists
...
#13590
Avoid has_meta conflict with old method.
#13581
2017-03-14 16:49:13 +00:00
Mike Jolley
8f2746049d
has_meta method
2017-03-14 12:08:33 +00:00
Mike Jolley
02c826ba5e
Correctly handle null values
2017-03-13 22:14:20 +00:00
Mike Jolley
1bac579df7
Date getters and setters
2017-03-13 19:52:44 +00:00
Rami Yushuvaev
d2457fe922
i18n: escape translation strings and fix wrong usage of i18n functions
2017-03-13 07:39:46 +02:00
Mike Jolley
53962f1143
Other date_date call replacements
2017-03-10 16:43:05 +00:00
Mike Jolley
66e8d9b054
Merge pull request #13530 from woocommerce/alt-fix-13496
...
Avoid filters during construct
2017-03-10 12:22:22 +00:00
Claudiu Lodromanean
8a18702c27
Just use array_replace_recursive in apply_changes
2017-03-09 09:06:05 -08: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
Claudiu Lodromanean
3b8eb75c93
Better handling of nested arrays in apply_changes
2017-03-08 11:51:38 -08:00
Mike Jolley
c7dc8ae2b4
date_created and date_modified getters and setters
2017-03-08 16:51:10 +00:00
Mike Jolley
1a9c49db25
set_date_prop helper to convert dates in setters
2017-03-08 16:50:38 +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
5bdeddcb32
Hide suffix on variable product when dynamic.
...
Closes #13494
2017-03-07 13:25:52 +00: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
Claudio Sanches
7adb472a1c
Fixed extra argument on array_map while setting categories and tags ids
2017-03-03 16:26:57 -03:00
Claudio Sanches
a4b7cc5f0d
Accept only list of terms IDs for product categories and tags
2017-03-03 16:19:32 -03:00
Mike Jolley
8440083fef
Merge pull request #13443 from woocommerce/cache-groups
...
Standardize cache group names
2017-03-03 10:44:34 +00:00
Claudiu Lodromanean
d5fd1e46ee
get_meta should return empty array sometimes
2017-03-02 11:16:49 -08: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
Claudio Sanches
486a81bf12
Fixed coding standards
2017-02-17 16:10:15 -02:00
Mike Jolley
a5ddccf814
Merge pull request #13229 from woocommerce/remove-filter-for-v2
...
Allow filter query parameter only in REST API v1
2017-02-17 16:29:57 +00:00
Mike Jolley
6201c7e22b
Add get_min_purchase_quantity and max helper
2017-02-17 15:52:39 +00:00
Claudio Sanches
8db3f3eaf0
Allow filter query parameter only in v1
2017-02-17 13:13:17 -02:00
Claudio Sanches
b0e6a5ab5d
Get object again after saved
2017-02-17 01:46:42 -02:00
Claudio Sanches
a46aea1b77
Fixedd status
2017-02-17 01:17:52 -02:00
Claudio Sanches
18dc63757b
BCheck if object exists
2017-02-17 00:09:46 -02:00