vedanshujain
86c6db0913
Support for order_item to be init from obj with `order_item_id` prop.
...
Also set metadata cache if metadata prop is present in initial item.
2020-09-14 15:27:56 +05:30
Claudio Sanches
d48f1d4e2e
Fixed package tag usage
2020-08-05 13:36:24 -03:00
Claudio Sanches
3ce6acec74
Updated outdated codex URLs
2019-06-12 19:31:01 -03:00
Rodrigo Primo
2c8d006c37
Update PHPCompatibility sniff names
...
The name of some sniffs changed in the most recent PHPCompatiblity version. This commit update all instances where those names are used in WooCommerce codebase.
2018-11-21 11:08:26 -02:00
Peter Fabian
925002bc37
Changed wc_clean sanitization to checking for valid utf8 and the input is later sanitized by WordPress db layer.
...
It caused issues in 2 places: Order item name (product name) and user's password.
2018-08-06 20:49:27 +02:00
Mike Jolley
50e2832d2d
sanitize_text_field does not preserve line breaks. wp_kses_post seems more appropriate.
...
Fixes #19661
2018-04-10 13:09:20 +01:00
Claudio Sanches
a7692478b0
Fixed includes/class-wc-order-item.php PHPCS violations
2018-03-21 00:56:59 -03:00
Mike Jolley
2e08bfdb33
Tweak where meta gets sanitized before passing to comparison function
2017-11-20 21:48:35 +00:00
lars
73bc8b8e6c
added actions and filters to modify tax calculation for shipping taxes and fee taxes #16938
...
Filters and actions are needed to ensure correct tax calculation by
German law.
The filter in class-wc-cart-totals.php is used to modify fee tax
calculation during checkout and in cart.
The actions in the other files are used to modify tax calculation in
backend for manual orders.
2017-09-28 12:52:55 +02:00
Umangvaghela
16e51760ec
fix #16656
2017-08-31 16:34:17 +05:30
Mike Jolley
4101e313bb
Merge pull request #16392 from woocommerce/feature/admin-apply-discount-15501
...
[WIP] Admin discounts
2017-08-15 10:07:00 +01:00
claudiulodro
2eb107b0af
Add 5.2 fallback
2017-08-14 11:45:54 -07:00
claudiulodro
b99ed2228c
No array_replace in WP or PHP 5.2
2017-08-11 14:11:46 -07:00
claudiulodro
837e7e1ed2
Use array_replace in order item apply_changes
2017-08-11 13:24:43 -07:00
Mike Jolley
d61a97cb57
Missing abstract methods
2017-08-11 16:17:24 +01:00
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