Mike Jolley
306db69eaf
Remove order subclass
2017-07-27 10:49:47 +01:00
Jaydeep Rami
3522857d23
Fix typo in WooCommerce plugin ( #16135 )
...
* Fixed typo
* Fixed more typo
* Fixed more typo
* Fix tyop
* Fix more typo
* Fix more typo
* Fix typo
* Fix typo
* Fix typo
* Fix typo datatime object
* Fix short name of compat
* Fix typo: update short name
* Fix typo "deactive" to "deactivate" and short BW - Compat
* Fix typo "Backwards compat"
* Fix typo 'parameters'
* Fix more typo 'pararmeters'
* Fix typo 'compund'
* FIx typo order
* Fix typo
* Fix typo 'incorrecly'
* Fix typo 'genarate'
* Fix typo 'reletive'
* Fix typo 'Handly'
* Fix typo 'rotatated'
* Fix typo
* Fix typo 'additonal'
* Fix typos
2017-07-17 11:10:52 +01:00
Akeda Bagus
53807185a8
Fixed typos.
...
These typos are catched by `misspell` program.
```
find . -type f | grep -v assets | grep -v dummy-data | grep -v i18n | grep -v node_modules | grep -v .git | grep -v apigen | xargs misspell -w
```
Some results were excluded because of 3rd party ownership and non-english
sentences.
2017-07-10 12:56:28 +07:00
Chunkford
6326bd1f98
Create class-wc-order-item.php
...
Add extra data to `woocommerce_order_item_display_meta_key` and `woocommerce_order_item_display_meta_value` hooks
2017-06-10 13:26:43 +01:00
claudiulodro
e00d7b7c55
File metadata by id
2017-05-25 14:43:36 -07:00
Rasmus Bengtsson
185934fad9
Fix phpdoc to include params and correct types
2017-05-15 13:50:52 +02:00
Tobias Schutter
3695414bcf
Added scalar check to order item meta
2017-05-10 11:28:32 +02:00
Claudio Sanches
4ded36c66d
Allow get all formatted meta data values
2017-04-24 20:27:17 -03:00
Claudiu Lodromanean
3768730641
Merge pull request #14520 from franticpsyx/fix-order-item-offset-get
...
[3.0.3] Fix Undefined property notice in `WC_Order_Item::offsetGet`
2017-04-19 10:16:42 -07:00
Mike Jolley
e1ae5bded2
Ensure order is not cached before download permissions are generated
2017-04-19 16:53:31 +01:00
Manos Psychogyiopoulos
1270c0d313
Fix Undefined property notice in WC_Order_Item::offsetGet
2017-04-19 12:30:38 +03:00
Mike Jolley
15fb5fb5ce
Add woocommerce_order_item_get_formatted_meta_data filter
...
2.6 had woocommerce_order_items_meta_display. 3.0 has no filter to
remove meta from display.
Closes #14372
2017-04-17 13:00:05 +01:00
Claudiu Lodromanean
715656921d
wc_is_attribute_in_product_name
2017-04-10 14:35:16 -07:00
Claudiu Lodromanean
523d39578a
Compare to the order item title instead of variation title
2017-04-05 12:03:18 -07:00
Mike Jolley
317ca0965e
Use display value when searching the title
...
Fixes #13682
2017-03-21 11:30:57 +00:00
Claudio Sanches
59c2849736
Changed version 2.7 to 3.0
2017-03-15 13:36:53 -03:00
Mike Jolley
186c26e60d
Missing return in offsetSet
2017-03-14 11:33:35 +00:00
Mike Jolley
f404eeede6
get_formatted_meta_data should ignore meta with no ID
2017-03-14 11:28:57 +00:00
Mike Jolley
7e165413cf
Check for arrays, not serialised strings
...
Fixes #13556
2017-03-13 17:49:59 +00:00
Mike Jolley
a185e57ccb
Admin panel should not hide _ meta.
...
Fixes #13510
2017-03-09 11:45:22 +00:00
Mike Jolley
1a8737fdeb
Standardize cache group names
2017-03-02 17:15:39 +00:00
Mike Jolley
7846def9b8
Use correct key to set/unset
2017-02-23 13:46:06 +00:00
Mike Jolley
729416a3b5
Non prefixed delete/set
2017-02-22 11:32:54 +00:00
Mike Jolley
a9562ba558
Maintain support for non-prefixed item meta array access
2017-02-22 11:30:17 +00:00
Mike Jolley
244f075958
Fix preg match
...
Fixes #13205
2017-02-16 12:21:05 +00:00
Claudiu Lodromanean
44af1237e5
Move things around for performance
2017-02-14 13:11:45 -08:00
Claudiu Lodromanean
332e79da8d
Re-approach attribute skipping in simpler, general purpose way
2017-02-14 11:20:20 -08:00
Claudiu Lodromanean
ab1b3201e0
Update docblock
2017-02-13 13:54:52 -08:00
Claudiu Lodromanean
afcbd456c4
Skip attributes in get_formatted_meta_data a different way
2017-02-13 13:53:22 -08:00
Claudiu Lodromanean
f362e0108e
Enable attribute suppression in wc_display_item_meta
2017-02-10 14:11:16 -08:00
Brent Shepherd
010a208e88
Merge WC_Data::$extra_data in WC_Data::__construct
...
Rather than requiring child classes to merge it as well as define it.
If it's not defined in a child class, then the merge call will have no
effect as it will be an the empty array set in WC_Data, if they do define
it, WC_Data will now take care of it automatically rather than requiring
manually merging it in the child class's constructor before it has any
effect on that objects data.
This helps reduce duplicate code by removing this from child classes, and
in some cases, being able to remove the child constructor definitions
entirely. It also avoids a gotcha for developers setting their own
$extra_data values only to find they aren't being set on the $data
property.
2017-02-01 12:48:27 -08:00
Claudio Sanches
9d513737ed
Merge pull request #12887 from woocommerce/fix/order-item-type-array
...
Return order item type if accessed via array.
2017-01-18 20:43:25 -02:00
Justin Shreve
663a096429
Return order item type if accessed via array (bw compat).
2017-01-18 13:49:12 -08:00
Claudio Sanches
bff95262cb
Changelog for 2.6.13
2017-01-18 16:20:48 -02:00
Mike Jolley
20680203bb
Add actions for all object types
2016-12-19 17:09:52 +00:00
Mike Jolley
5fc67bbd0c
Unset changes
2016-12-19 11:22:43 +00:00
Manos Psychogyiopoulos
48bf909fa2
use getters/setters in order item offsetset/get
2016-12-18 20:31:52 +02:00
Mike Jolley
3e2a758c65
Fix meta data read
2016-12-14 11:23:17 +00:00
Mike Jolley
b9bb8eabba
Fix order item meta
2016-11-24 11:50:34 +00:00
Mike Jolley
b1007c9d62
Fix order item meta saving
2016-11-23 15:37:34 +00:00
Justin Shreve
58b4cb9cf4
Make sure get_hook_prefix is present on all of our classes.
...
And fix up an exclude internal keys call for the customer data store.
2016-11-22 04:20:25 -08:00
Justin Shreve
f15867bb67
Fix ajax actions for saving items, and misc issues.
2016-11-21 10:57:33 -08:00
Justin Shreve
51a55b6782
Add interface, renaming main order item data store to abstract. Various fixes.
2016-11-21 10:57:33 -08:00
Justin Shreve
b20b3590c8
First pass at order items
2016-11-21 10:56:21 -08:00
Justin Shreve
1797c76a14
Implement WC_Data_Store and related code & tests.
2016-11-08 01:39:47 -08: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
b063bcfe4c
last item in a multiline-array should end in a comma
2016-08-27 04:46:45 +03: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
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