Mike Jolley
5bb5ae6265
Update from master
2019-02-18 16:54:24 +00:00
Mike Jolley
ad12ddd2c2
wc_maybe_adjust_line_item_product_stock should return false if nothing happens
2019-02-18 16:45:55 +00:00
Mike Jolley
db0850a420
wc_maybe_adjust_line_item_product_stock helper
2019-01-03 13:40:22 +00:00
Claudio Sanches
ff762609e9
Fix how generate pages
2018-11-19 14:25:06 -02:00
claudiulodro
91d2411aa9
Use wc_check_utf8 function
2018-10-05 15:58:50 -04:00
claudiulodro
dfad1306de
Revert sanitization function used for order item data
2018-10-05 15:46:49 -04: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
dezio1900
ac52ce4bad
Update wc-admin-functions.php
2018-06-28 16:31:03 +02:00
dezio1900
cb2980596c
Update wc-admin-functions.php
2018-06-11 20:56:40 +02:00
dezio1900
007fc6e0ca
Allow items to be changed in wc_save_order_items function
...
Allow other plugins to be able to change $item object, for example to adjust line subtotal/total before its saved.
My need for this change is because I have custom booking product item, and attached custom inputs for the item ( checkin / checkout dates etc ). So whenever those inputs are changed in order edit page and ajax save is triggered, I need to auto adjust booking item's line subtotal/total ( because of booking dates changed ) before item is saved.
2018-06-11 20:27:32 +02:00
Rodrigo Primo
23b69eba53
Use phpcbf to fix coding standard violations in includes/admin
...
After using phpcbf to fix the coding standard violations, I did some manual adjustments to the changes, especially in poorly indented files.
2018-03-05 16:21:35 -03:00
Claudio Sanches
ef393b8405
Merge pull request #18918 from woocommerce/fix/order-item-meta-key-maxlength
...
Set maxlength for order item meta key
2018-02-20 16:52:35 -03:00
Mike Jolley
65278efd44
Allow modal to be wider and fix button wrapping
2018-02-15 12:46:47 +00:00
Caleb Burks
ea9f799ec6
Remove strlen() condition
...
Did some tests, substr() is actually faster than the strlen() check.
2018-02-12 17:39:33 -05:00
Caleb Burks
4f447ea48d
Sanitize order item meta key w/ max characters
2018-02-09 22:52:36 -05:00
Mike Jolley
29fed057af
Mobile styling
2017-11-22 16:28:11 +00:00
Mike Jolley
830ef8ed73
Change status action buttons
2017-11-20 22:43:37 +00:00
Mike Jolley
fb446e6bdf
Add wp_unslash to meta key
2017-11-07 20:23:10 +00:00
Mike Jolley
804feb9333
Store fee amount and prevent totals going negative
2017-08-23 12:15:06 +01:00
Mike Jolley
2accbdbd45
Load order after updating items
2017-08-11 16:16:22 +01:00
Mike Jolley
532ddfa6b0
Merge conflicts
2017-05-31 12:23:52 +01:00
Mike Jolley
c3c966b5fd
Add handles so drag and drop does not break edit on mobile
...
Fixes #15118
2017-05-18 15:22:12 +01:00
Mike Jolley
d67fb8fb83
New style import controller
...
Closes #15107
2017-05-17 14:16:38 +01:00
Mike Jolley
523d9d27cd
Styling
2017-05-12 20:40:54 +01:00
Mike Jolley
fd3bf05017
Working prototype exporter for products
2017-05-10 17:22:08 +01:00
Claudio Sanches
af7f271de1
Fixed sanitization of order items meta data
...
Closes #14067
2017-04-06 17:58:24 -03:00
Mike Jolley
bbf8e750ce
Tidy up includes
2017-02-16 11:46:01 +00:00
Mike Jolley
cf59524dd7
Fix order total race condition in CRUD
2016-09-07 09:28:11 +01:00
Aristeides Stathopoulos
ec8a0b288b
PHPCS: WordPress.Arrays.ArrayDeclaration.NoCommaAfterLast
2016-08-27 05:08:49 +03: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
627b08ba37
Test coverage
2016-08-25 17:42:47 +01:00
Mike Jolley
885231baba
yoda
2016-08-25 17:10:59 +01:00
Mike Jolley
7f87800d8d
Fix save order item function
2016-08-25 13:50:37 +01:00
Mike Jolley
25883f8687
Set_props helper to load data from DB and handle errors
2016-08-25 13:05:27 +01:00
Mike Jolley
26c4b3ce13
Delete if qty = 0
2016-08-24 16:09:39 +01:00
Mike Jolley
938361535f
Exception handling
2016-08-24 16:02:19 +01:00
Mike Jolley
2cea613566
Fix shipping meta save
...
#11601
2016-08-22 18:07:52 +01:00
Mike Jolley
c88984eb0e
Replace add methods
2016-08-22 16:48:19 +01:00
Mike Jolley
21ad196297
Use CRUD in wc_save_order_items
2016-08-19 13:43:33 +01:00
Mike Jolley
5eaee825f1
Ensure page_object is valid
...
Closes #11641
2016-08-08 12:14:41 +01:00
Mike Jolley
66c61eebc8
Define full path for includes
...
Closes #11087
2016-07-27 11:58:43 +01:00
Jeff Stieler
3de28d2356
Take in options data to be saved as an optional argument, defaulting to $_POST.
...
This allows for reuse of the options field saving mechanism.
2016-07-26 10:24:15 -07:00
Slobodan Manic
3194c24c84
Introduce woocommerce_before_save_order_items hook
2016-06-07 08:13:35 +02:00
Mike Jolley
c9196a6377
Move help tip to core functions
2016-03-31 15:30:42 +01:00
Mike Jolley
d821b87f8a
Move shipping classes to custom UI in shipping section
2016-01-13 16:52:28 +00:00
Mike Jolley
1076854608
Merge branch 'master' into shipping-zones
...
# Conflicts:
# assets/css/admin.css
# includes/abstracts/abstract-wc-shipping-method.php
# includes/class-wc-shipping.php
# includes/shipping/flat-rate/class-wc-shipping-flat-rate.php
# includes/shipping/flat-rate/includes/class-wc-eval-math.php
# includes/shipping/free-shipping/class-wc-shipping-free-shipping.php
#
includes/shipping/legacy-international-delivery/class-wc-shipping-legacy
-international-delivery.php
#
includes/shipping/legacy-local-delivery/class-wc-shipping-legacy-local-d
elivery.php
2016-01-11 11:48:18 +00:00
Fredrik Forsmo
c7ab50ec7e
Add missing param tags to various wc admin docblocks
2016-01-05 16:49:41 +01:00
Mike Jolley
56f274b68b
non-functional Mockup for the shipping zones interface
2015-12-08 12:45:18 +00:00
roykho
e5ca21f1e3
Change to WP convenience function
2015-11-12 13:19:57 -08:00
roykho
5cd3150c94
Fix order item name escaping apostrophe closes #9583
2015-11-12 08:04:21 -08:00