Mike Jolley
2b3083ae2f
Merge pull request #10579 from justinshreve/add-meta-data-keys
...
Fix array key/meta id logic in WC_Data's meta handling
2016-03-22 14:14:07 +00:00
Mike Jolley
5862785522
Restyle items panel
2016-03-21 18:35:00 +00:00
Justin Shreve
1d35fd6d73
Convert WC_Payment_Tokens (and CC/eCheck tokens) to use the new WC_Data and meta handling code.
2016-03-21 11:06:17 -07:00
Claudio Sanches
a259bd3841
Merge pull request #10587 from gonssal/password-strenght-meter-missing-wrapper-fix
...
Fixed password-strength-meter.js' checkPasswordStrength encapsulation
2016-03-21 15:01:54 -03:00
gonssal
523ded8358
Fixed password-strength-meter.js' checkPasswordStrength function not being encapsulated into the wrapper
2016-03-21 17:26:33 +01:00
Mike Jolley
7be2b129b6
Removed bulk actions from order items panel
...
Reduce/increase order item stock is less important these days do to
automatic stock reduction (when status changes) and because when you
refund items you can restock items via checkbox. Manual stock changes
can be performed by editing products.
Decreases complexity of order items box.
2016-03-21 14:58:14 +00:00
Manos Psychogyiopoulos
00b9887936
add order line item args filter to wc api/cli set_line_item method
2016-03-21 14:39:51 +02:00
James Koster
cbb8fa9c66
Move and style the product price in oEmbeds for better display on handheld devices. closes #10584
2016-03-21 10:07:30 +00:00
Claudio Sanches
beedd1c930
Merge pull request #10580 from allendav/master
...
Remove unused new_enabled variable
2016-03-18 20:51:21 -03:00
Claudio Sanches
28366d9409
Merge pull request #10581 from jeffstieler/add/html-order-items-before-item-hook
...
Fire action before order line items are rendered.
2016-03-18 20:50:58 -03:00
Jeff Stieler
16b65ea8c3
Fire action before order line items are rendered.
2016-03-18 15:25:31 -06:00
Allen Snook
bd99d8f1f3
Remove unused new_enabled variable
2016-03-18 13:43:58 -07:00
Justin Shreve
705213d4f5
Move meta_id into the _meta_data array instead of trying to use them as array keys.
...
This is so we can just use PHP's keys, instead of trying to add new meta and guess an avaible key.
2016-03-18 12:24:35 -07:00
Claudio Sanches
312105b350
Improved basic authentication
2016-03-18 10:18:44 -03:00
Claudio Sanches
f2728446ca
Improved returned values from authentication
2016-03-18 09:50:54 -03:00
Claudio Sanches
8a45c94425
Use perid for all responses
2016-03-18 08:51:48 -03:00
Claudio Sanches
98f4f21104
Pass correct unauthorized headers for basic auth
2016-03-18 08:47:57 -03:00
Claudio Sanches
a0b0489014
Handle oauth1.0a authentication on REST API
2016-03-18 08:37:31 -03:00
Mike Jolley
cd5d2231ad
Fix CSV image URLS
...
Closes #10578
2016-03-18 11:16:43 +00:00
Mike Jolley
1238a37124
Merge pull request #10576 from justinshreve/coupon-crud
...
Coupon CRUD
2016-03-18 11:12:32 +00:00
Mike Jolley
07da5f8615
Merge pull request #10577 from justinshreve/customer-crud
...
Customer CRUD
2016-03-18 11:12:10 +00:00
Claudio Sanches
ed2d72fc0d
Verify API Key permissions
2016-03-18 07:24:59 -03:00
Claudio Sanches
eb5db423cc
Handle basic authentication on REST API
2016-03-18 06:53:09 -03:00
Justin Shreve
4194aca904
Deprecated functions for old billing address functions
2016-03-17 13:40:30 -07:00
Justin Shreve
d98299778e
Fix set_to_base deprecated call
2016-03-17 13:28:40 -07:00
Justin Shreve
9f998b01b1
Make sure sessions and compat code correctly deal with billing_ prefix
2016-03-17 13:26:33 -07:00
Justin Shreve
e65ab6adec
start transfering things to billing_ prefix
2016-03-17 12:39:29 -07:00
Justin Shreve
15e37ab66a
Add meta handling to WC_Customer and fix some missing code with first and last name.
2016-03-17 12:03:23 -07:00
Justin Shreve
7f0e0c8f0c
Finish proper integetration with WC_Data's meta methods.
2016-03-17 11:14:15 -07:00
Mike Jolley
c25ef5e55a
Adjust OR logic
...
#10568
2016-03-17 17:54:09 +00:00
Mike Jolley
77d9ced394
Delete terms on full uninstall
...
Closes #10494
2016-03-17 17:51:13 +00:00
Justin Shreve
626ab000f5
WC_Data needs to be loaded before the customer class is loaded.
2016-03-17 10:35:25 -07:00
Justin Shreve
f5a43e7025
Move WC_Customer to use the new Abstract WC_Data
2016-03-17 10:30:20 -07:00
Justin Shreve
0f1f6dddd1
Finish customer crud tests
2016-03-17 09:41:12 -07:00
Justin Shreve
8dbe673c89
Fix loading meta fields that are not address fields. Add some tests related to CRUD, and add stubs for the rest of the tests we will add.
2016-03-17 09:41:12 -07:00
Justin Shreve
25430afd33
Make session loading work correctly, add an alias for address_1 and shipping_address_1, fix total spent and order count
2016-03-17 09:41:12 -07:00
Justin Shreve
aa590f3845
Implement remaining customer get/setters, and start on tests.
2016-03-17 09:41:12 -07:00
Justin Shreve
8f05c04ca4
Start working on the last set of get/setters
2016-03-17 09:41:12 -07:00
Justin Shreve
ffc80ccd15
Start updating some usage, and start implementing the actual CRUD functions, and some new get/setters for username, email, etc.
2016-03-17 09:41:12 -07:00
Justin Shreve
eb22c8b57d
Initial start of WC_Customer CRUD refactor, start moving some logic to legacy class, implement WC_Data, and finally a functioning read() that works with passed DB customer info AND sessions.
2016-03-17 09:41:12 -07:00
Justin Shreve
f65c9305bf
Update WC_Coupon to use the new WC_Data class and meta methods.
2016-03-17 09:38:56 -07:00
Justin Shreve
90b9192c0c
Combine standard getters and setters into one test to reduce code.
2016-03-17 09:19:29 -07:00
Justin Shreve
60085e582a
Fix some comments/spacing issues.
2016-03-17 09:19:29 -07:00
Justin Shreve
f973b9d122
Make some improvements to metadata. Don't return [0] array, allow setting custom meta with a WC_Coupon method. Fix up some tests.
2016-03-17 09:19:29 -07:00
Justin Shreve
7e97ee94c1
Update deprecated and doing it wrong version numbers
2016-03-17 09:19:28 -07:00
Justin Shreve
69973d520e
Update version strings
2016-03-17 09:19:28 -07:00
Justin Shreve
57f918fb03
Add Coupon REST API tests to verify nothing breaks API wise -- full set of tests even though we are just changing GET endpoints (increases test coverage)
2016-03-17 09:19:28 -07:00
Justin Shreve
5ea607e236
Handle the rest of the PR feedback:
...
* Run get_code through the woocommerce_coupon_code filter
* Convert expiry dates to timestamps in set_expiry_date
* Simplify product ID array explodes to get an empty array
2016-03-17 09:19:28 -07:00
Justin Shreve
0268a67c4b
Address a few of the feedback items from the PR:
...
* Switch all coupon fields to _data
* Move coupon custom fields to _meta_data
* Shorten the 'yes' -> true checks
* Add a test for getting custom fields
2016-03-17 09:19:28 -07:00
Justin Shreve
61ae531de0
Add hooks for create, update, and delete.
2016-03-17 09:19:28 -07:00