Mike Jolley
ac6bda2f62
Product crud abstract todos ( #12316 )
...
* Get dimensions and weights, with soft deprecation
* Product attributes
* Ratings
* Fix read method
* Downloads
* Feedback
* Fix up store
2016-11-11 15:31:00 +00:00
Justin Shreve
90e43d97de
[Product CRUD] Product Datastore ( #12317 )
...
* Fix up tests in the product/* folder.
* Handle data store updates for grouped, variable, external, simple, and general data store updates for products.
* Variations & variable changes.
* Update -functions.php calls to use data store.
* Add an interface for the public product data store methods.
* Finished product factory tests
* Correctly delete in the api, fix up some comments, and implement an interface for the public variable methods.
* Fix up delete in all versions of the api
* Handle feedback
* Match protected decloration to parent
2016-11-11 14:31:15 +00:00
Mike Jolley
4fc03c9930
Revert "[Product CRUD] Abstract todos ( #12305 )"
...
This reverts commit 9a6136fcf8
.
2016-11-11 11:58:57 +00:00
Mike Jolley
9a6136fcf8
[Product CRUD] Abstract todos ( #12305 )
...
* Get dimensions and weights, with soft deprecation
* Product attributes
* Ratings
* Fix read method
* Downloads
* Feedback
2016-11-11 11:43:52 +00:00
Mike Jolley
09ea4ba91f
[Product CRUD] Variable, variation, notices, and stock handling ( #12277 )
...
* No longer needed
* Remove old todos
* Use getters in admin list
* Related and upsells update for CRUD
* Fix notice in gallery
* Variable fixes and todos
* Context
* Price sync
* Revert variation attributes change
* Return parent data in view context
* Defer term counting
* wc_find_matching_product_variation
* Stock manage tweaks
* Stock fixes
* Correct id
* correct id
* Better sync
* Data logic setter fix
* feedback
2016-11-09 16:10:37 +00:00
Justin Shreve
9072b1da43
Handle PR feedback
2016-11-09 16:05:50 +00:00
Justin Shreve
e551a846b8
Implement CRUD in the legacy REST API
2016-11-09 16:05:50 +00:00
Mike Jolley
5f4dbdb733
[Product CRUD] Variations - setters, getters and admin. ( #12228 )
...
* Started on variation changes
* Stock functions
* Variation class
* Bulk change ->id to get_id() to fix variation form display
* Missing status
* Fix add to cart
* Start on stored data save
* save variation
* Save_variations
* Variation edit panel
* Save variations code works.
* Remove stored data code and fix save
* Improve legacy class
* wc_bool_to_string
* prepare_set_attributes
* Use wc_get_products
* More feedback fixes
* Feedback fixes
2016-11-09 16:05:49 +00:00
Mike Jolley
af32b3ea91
Product crud admin save routine ( #12174 )
...
* Initial props
* Work on admin saving
* Set/get attributes
* Atom was moaning about this before but no longer.
* Update get_shipping_class
* WC_Product_Attribute
* Use getter in admin panel
* Fix attribute saving
* Spacing
* Fix comment
* wc_implode_text_attributes helper function
2016-11-09 15:43:20 +00:00
Rami Yushuvaev
55f08d62ae
add translators comments
2016-10-29 23:03:28 +03:00
Rami Yushuvaev
93d55dade9
add translators comments
2016-10-29 20:32:38 +03:00
Claudio Sanches
c58940258a
Updated $order->id to $order->get_id()
2016-10-25 22:46:36 -02:00
Daniel Hüsken
ab7f9dd674
Flush rewrite rules with cron for attribute terms ( #12132 )
2016-10-21 15:29:50 +01:00
Claudio Sanches
657c312cae
Fix strings case ( #12069 )
...
* Fixed case for all _e, esc_attr_e and esc_html_e strings
* Fixed case for all _n_noop strings
* Fixed case for all _x strings
* Fixed case for all __, esc_html__ and esc_attr__ strings
* Fixed a few more strings
* Fixed strings in unit tests
* Fix PayPal Standard case.
* Save Order text
2016-10-12 11:16:30 +01:00
Rami Yushuvaev
83e938af1e
i18n: Merge similar translation strings to reduce the total strings count #11905
2016-10-11 04:39:13 +03:00
Claudio Sanches
1230be795e
Fixed REST API docs, codeclimate and coveralls URLs
2016-09-28 09:09:06 -03:00
Aristeides Stathopoulos
9668247b95
WordPress.PHP.YodaConditions.NotYoda
2016-09-09 03:14:28 +03:00
Aristeides Stathopoulos
2346c3b735
Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace
2016-09-02 06:15:49 +03:00
Aristeides Stathopoulos
5280722f21
Squiz.Commenting.InlineComment.SpacingAfter
2016-09-02 05:47:24 +03:00
Aristeides Stathopoulos
d4e3faf014
PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket
2016-09-02 04:51:31 +03:00
Aristeides Stathopoulos
0516e96843
PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket
2016-09-02 04:33:57 +03:00
Aristeides Stathopoulos
d922d045a7
Squiz.Commenting.BlockComment.NoNewLine + indentation on class-wc-cart
2016-09-02 04:03:52 +03:00
Aristeides Stathopoulos
e07511502d
Additional coding-standards fixes.
2016-09-02 03:26:24 +03:00
Mike Jolley
402d0ff077
Merge branch 'master' into pr/11797
...
# Conflicts:
# includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php
# includes/api/class-wc-rest-coupons-controller.php
# includes/class-wc-coupon.php
# tests/unit-tests/api/coupons.php
# tests/unit-tests/coupon/crud.php
2016-09-01 11:43:31 +01:00
Mike Jolley
df35845d4d
wc_get_coupon_id_by_code
2016-08-30 11:43:53 +01:00
Aristeides Stathopoulos
72696901f3
WordPress.WhiteSpace.OperatorSpacing.SpacingAfter
2016-08-27 09:14:06 +03:00
Aristeides Stathopoulos
e69fafbda7
WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter
2016-08-27 09:06:22 +03:00
Aristeides Stathopoulos
f2730eea02
WordPress.WhiteSpace.ControlStructureSpacing.BlankLineAfterEnd
2016-08-27 08:57:05 +03:00
Aristeides Stathopoulos
dea39df779
WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterOpenParenthesis
2016-08-27 07:38:29 +03:00
Aristeides Stathopoulos
9543c7fe1c
WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeCloseParenthesis
2016-08-27 07:29:49 +03:00
Aristeides Stathopoulos
82f3cc221e
WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis
2016-08-27 07:23:02 +03:00
Aristeides Stathopoulos
56fd004a72
WordPress.Arrays.ArrayDeclaration.FirstIndexNoNewline
2016-08-27 06:56:09 +03:00
Aristeides Stathopoulos
ff852038c9
WordPress.Arrays.ArrayKeySpacingRestrictions.NoSpacesAroundArrayKeys
2016-08-27 06:11:30 +03:00
Aristeides Stathopoulos
17961f6484
WordPress.Arrays.ArrayDeclaration.ValueNoNewline
2016-08-27 06:04:10 +03:00
Aristeides Stathopoulos
58b9df6564
WordPress.Arrays.ArrayDeclaration.NoSpaceAfterOpenParenthesis
2016-08-27 05:23:54 +03: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
ed01282340
Made data match schema
2016-08-26 15:20:44 +01:00
Mike Jolley
077f57f139
Merge branch 'master' into WC_Data_Exception
2016-08-25 11:03:14 +01:00
Mike Jolley
cde78abed3
Working on catching errors
2016-08-24 15:26:35 +01:00
Claudio Sanches
3633960165
Removed dead global variables
2016-08-23 20:02:38 -03:00
Claudio Sanches
00b2e43250
DRY
2016-08-23 20:00:30 -03:00
Mike Jolley
3d696266d2
Set_address
2016-08-22 17:03:59 +01:00
Mike Jolley
7cf75f5085
Remove use of deprecated functions
2016-08-22 16:57:54 +01:00
Mike Jolley
c88984eb0e
Replace add methods
2016-08-22 16:48:19 +01:00
Mike Jolley
fdd7e797ba
API get refunds
2016-08-22 13:15:15 +01:00
Mike Jolley
3f4ffe8a49
More crud updates
2016-08-19 17:05:47 +01:00
Mike Jolley
190cd0bf86
Remove direct access of item props in admin
2016-08-19 15:08:00 +01:00
Mike Jolley
c6f6713e47
Write context in coupon api
...
@justinshreve
2016-08-15 19:28:07 +01:00
Mike Jolley
f3651a9881
Fix user agent calls
2016-08-12 12:53:09 +01:00
Mike Jolley
f4a4f6c361
Reduce stock and other notices
2016-08-09 14:15:04 +01:00
Mike Jolley
8d58febaf8
Merge branch 'master' into orders-crud-function-update
...
# Conflicts:
# includes/class-wc-checkout.php
2016-08-09 14:03:06 +01:00
Mike Jolley
31803f4e51
Billing/shipping
2016-08-08 16:46:58 +01:00
Mike Jolley
7b0d9a3e61
IP and notes
2016-08-08 16:24:16 +01:00
Mike Jolley
6bf05396c2
date_paid
2016-08-05 16:14:30 +01:00
Mike Jolley
b8bf05df11
get_user_agent
2016-08-05 16:10:45 +01:00
Mike Jolley
0a0330bac0
customer_user
2016-08-05 16:09:40 +01:00
Mike Jolley
007a767657
billing_phone
2016-08-05 16:09:04 +01:00
Mike Jolley
7685587b22
payment_method
2016-08-05 16:04:41 +01:00
Mike Jolley
693e5ece36
billing_company
2016-08-05 16:03:09 +01:00
Mike Jolley
8d3b4bc5a4
payment_method_title
2016-08-05 15:59:55 +01:00
Mike Jolley
1c18c2f44a
billing_first_name
2016-08-05 15:58:44 +01:00
Mike Jolley
84c52370fa
more getters
2016-08-05 15:57:40 +01:00
Mike Jolley
39b4831e95
get_id
2016-08-05 15:56:23 +01:00
Mike Jolley
9181c107a8
get_currency
2016-08-05 15:49:17 +01:00
Mike Jolley
1bc9da3e91
Merge branch 'master' into WC-CRUD
...
# Conflicts:
# includes/class-wc-coupon.php
2016-08-04 12:10:04 +01:00
Mike Jolley
4f5896d908
[2.6] Only allow image MIME type upload via APIs
2016-07-21 16:20:13 +01:00
Claudio Sanches
2b6cbc7629
Sanitize image metadata
2016-07-19 14:24:11 -03:00
Claudio Sanches
4ed8d46867
[REST API] Make easy to update order line items #11450
2016-07-19 14:11:44 -03:00
Claudio Sanches
0fe6be1eec
[REST API] Delete variations when deletes a variable product, closes #11345
2016-07-04 16:42:07 -03:00
Claudio Sanches
53552f8028
Require create webhook secret in the REST API
2016-06-27 21:55:54 -03:00
Claudio Sanches
e57ab09fb4
Fixed variable product stock at product level, closes #11234
2016-06-23 19:36:39 -03:00
Claudio Sanches
78adee9dcb
[2.6] [REST API] Fixed the type of the params from _product_attributes in the legacy endpoints too #11200
2016-06-21 18:52:40 -03:00
Claudio Sanches
1e0077dc6e
Use same translation string for errors
2016-06-20 17:43:09 -03:00
Mike Jolley
b2ddd379e3
Use same translation string for errors
2016-06-20 10:54:23 +01:00
Claudio Sanches
05bf00657d
Help debug remote image upload
2016-06-16 19:26:27 -03:00
Claudio Sanches
83348c8ca9
[2.6] [REST API] Fixed products attribute options when contains ",", closes #11138
2016-06-15 14:32:22 -03:00
Mike Jolley
78142a8ebb
Merge branch 'master' into WC-CRUD
...
# Conflicts:
# includes/class-wc-checkout.php
# includes/class-wc-coupon.php
# includes/class-wc-customer.php
# tests/unit-tests/cart/cart.php
# tests/unit-tests/cart/functions.php
# tests/unit-tests/coupon/coupon.php
# woocommerce.php
2016-06-13 15:01:58 +01:00
Claudio Sanches
3d1b29bd38
[REST API] Fix customer roles index
2016-06-10 12:14:54 -03:00
Claudio Sanches
745f161456
[REST API] Fixed variation date_created and date_updated
...
cc @mikejolley
2016-06-09 12:36:06 -03:00
Duoc Nguyen
36ccb0212e
Correct docblock for method set_product_image_as_attachment
2016-06-09 16:50:58 +07:00
Mike Jolley
730019ef18
scrutinizer best practice
2016-06-06 19:39:23 +01:00
Mike Jolley
d4d6f3181c
Best practice tweaks
2016-06-06 17:24:31 +01:00
Claudio Sanches
e39274e753
HTTPS for everybody
2016-05-26 22:48:49 -03:00
Mike Jolley
7cacd678cf
API - Default display type is blank string
...
Fixes #10986 @claudiosmweb
2016-05-25 12:19:55 +01:00
Mike Jolley
ed08e51ddb
Status updates via API are manual
...
Closes #10943
2016-05-19 11:50:19 +01:00
Mike Jolley
2d3d401d67
API ignoring 'name' field.
...
Fixes #10929
2016-05-17 17:53:50 +01:00
Claudio Sanches
ccd1f48025
[REST API] Save default total_sales, closes #10898
2016-05-11 13:19:56 -03:00
Claudio Sanches
47ef7e17a1
Created new function to generate webhook secrets based on the user ID and username, closes #10881
2016-05-11 13:14:00 -03:00
Claudio Sanches
5d47875eed
[REST API] Allow save post_name/slug for products in v3
...
Closes #10888
2016-05-10 13:46:53 -03:00
Claudio Sanches
3fc2c82aaf
[API] Fixed variations backorders
2016-04-28 13:24:20 -03:00
Claudio Sanches
b6d33ee906
WP-API
2016-04-19 12:49:16 -03:00
Claudio Sanches
2ae38250dd
Deprecated our API in favor of WP API
2016-02-16 18:22:12 -02:00