Claudiu Lodromanean
19361127a9
Array filter before saving
2017-04-06 14:47:22 -07:00
Mike Jolley
fbcb46b273
filter items which are false
...
https://wordpress.org/support/topic/call-to-a-member-function-is_type-cl
ass-wc-order-php-on-line-1305/
2017-04-06 22:15:42 +01:00
Claudiu Lodromanean
94814a0b03
Dont throw exceptions when reading
2017-04-06 13:39:36 -07:00
Mike Jolley
fe42b2565c
Defer variation parent sync to shutdown rather than cron
2017-04-06 12:25:34 +01:00
Gregory Karpinsky
37c7e2a615
Docblock fix
...
`get_availability` returns array of strings
2017-04-06 00:32:36 -04:00
Claudiu Lodromanean
87b71b0653
Merge pull request #13941 from woocommerce/fix/hook-deprecated-function-calls
...
Use wc_deprecated_function so notices are not triggered on ajax requests
2017-04-05 09:36:01 -07:00
Mike Jolley
e66efc1dcc
Use wc_deprecated_function so notices are not triggered on ajax requests
2017-04-05 13:06:43 +01:00
Claudio Sanches
cf954fac1e
Fixed missing array declaration
2017-04-04 14:53:05 -03:00
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