Commit Graph

1501 Commits

Author SHA1 Message Date
Claudiu Lodromanean 9d0f729703
Merge pull request #17642 from woocommerce/fix/rest-api-orders-dp
[REST API] Fixed default value of "dp" on orders and refunds endpoints
2017-11-09 13:57:24 -08:00
Claudio Sanches b04c7bd71e
Merge pull request #17628 from woocommerce/fix/17624
Change how line items are saved in API
2017-11-09 17:36:39 -02:00
Claudio Sanches 5daf476dfa Properly sanitize and format "dp" 2017-11-09 17:34:25 -02:00
Claudio Sanches c6c8af9187 [REST API] Fixed default value of "dp" on orders and refunds endpoints 2017-11-09 17:23:33 -02:00
Claudio Sanches 22232f29c7 Fixed PHPCompatibility issues
Closes #17625
2017-11-09 16:36:29 -02:00
Mike Jolley 6e08ff0284
Merge pull request #17610 from woocommerce/update/17557
Theme support to declare image sizes
2017-11-09 16:04:22 +00:00
Mike Jolley a9b419c9b2 Load item from order object, not DB directly in API 2017-11-08 12:21:55 +00:00
Mike Jolley cf448398cd Update API 2017-11-07 19:08:06 +00:00
Jan-Paul Kleemans 241e903f9e
Clarify sku param description 2017-11-07 15:55:00 +01:00
Mike Jolley 6701917e5a Remove need for wc_get_core_supported_themes 2017-11-07 12:17:03 +00:00
Claudio Sanches 6e9ad75be5 Category image is a single object 2017-10-25 20:41:31 -02:00
Claudio Sanches 4b90c12db1 Fixed coding standards.
Still missing fix the file name, but I'll leave it for 3.3
2017-10-25 20:40:44 -02:00
Claudio Sanches e7508c2c54 [REST API] Fixed date_on_sale_to_gmt description on products endpoint 2017-10-25 14:06:50 -02:00
Claudio Sanches c17fbf53b4 Fixed coding standards 2017-10-25 14:06:13 -02:00
Gerhard Potgieter 054c4a1100 Merge pull request #17203 from hisman/fix/17043
Show theme overrides that are done through the wc_get_template filter in WooCommerce > Status
2017-10-24 06:02:48 -07:00
Farhad Sakhaei 5062831b50 spelling
spelling
2017-10-23 13:44:44 +03:30
Claudio Sanches c739c80817 [REST API] Fixed variations 'visible' description in schema
Fixes #17249
2017-10-17 14:22:56 -02:00
Claudio Sanches 4bec8f9df5 Fixed coding standards 2017-10-17 14:22:30 -02:00
Hisman 78c15569a7 Show theme overrides that are done through the wc_get_template filter in WooCommerce > Status
Fixes #17043

Call the wc_get_template filter on each template and show the file if it exists.
2017-10-14 00:07:38 +07:00
Mike Jolley 840da4f0c8 Use edit context when updating prices in the API
Fixes #17125
2017-10-13 16:37:38 +01:00
victorfreitas e40ae14d2e Improving the code comment 2017-10-03 12:28:05 -03:00
victorfreitas c72c2f06b8 Save postmeta attachment image reference on import of products via API rest. 2017-10-03 10:17:09 -03:00
Claudio Sanches ab1b100a36 [REST API] Return empty result when there is no on_sale products
This forces return an empty array as result when using `on_sale=true`.

By default `WP_Query` will return all results when `post__in` is equal
to `array()`, so changing to `array( 0 )` will force the expected
behavior.

Closes #16933
2017-09-26 14:02:33 -03:00
claudiulodro 2e4b514a7f Modify product API returned data by context 2017-09-22 10:52:30 -07:00
claudiulodro 133b664cc3 Only set prices if set in request 2017-09-17 11:44:00 -07:00
Mike Jolley b0cb64b93d API - use current scheme
This caused issues for me locally forcing http to test requests. Ok to
change @claudiosanches ?
2017-09-07 15:32:29 +01:00
Mike Jolley 5c5a8f4e8e Helper functions 2017-09-05 11:54:04 +01:00
claudiulodro 8c523ee0b9 Remove featured image on empty image array 2017-09-01 11:14:48 -07:00
Mike Jolley 91f1f63100 Code standards 2017-09-01 11:02:11 +01:00
james 1820c6a99d Fix Issue #16663. Moved meta creation to `prepare_object_for_database`. 2017-08-31 18:17:14 +01:00
james ce39e3aaa8 Fix Issue #16663. 2017-08-31 14:01:24 +01:00
Claudio Sanches 02a7f4d5ab Merge pull request #16561 from woocommerce/fix/16557
API v1 should create v1 webhooks
2017-08-22 15:19:16 -03:00
Mike Jolley 0bad6b3e52 add_db_table_prefix method for 5.2 support 2017-08-22 13:51:50 +01:00
Mike Jolley 2a5a47016f API v1 should create v1 webhooks
Fixes #16557
2017-08-22 10:40:35 +01:00
Mike Jolley 36f5827bc0 Merge pull request #16351 from pmgarman/feature-system-status-site-size-data
Add “site size” areas to system status report
2017-08-18 17:49:12 +01:00
Patrick Garman f19a63e1d7 Merge the DB and DB Table Size tables 2017-08-15 19:52:14 -05:00
Mike Jolley 3852ce59c8 Tool to purge webhooks 2017-08-15 12:15:17 +01:00
Mike Jolley a44a57b5d9 Improve tools page styling 2017-08-15 12:05:34 +01:00
Claudio Sanches 3f12fd1b01 Fixed missing hooks in legacy REST API 2017-08-10 18:57:31 -03:00
Claudio Sanches 40cb0e2e95 Trigger only customer.created webhook 2017-08-10 18:57:13 -03:00
Claudio Sanches 1a9b499be8 Apply attribute helper functions to importers and REST API 2017-08-07 22:34:25 -03:00
Patrick Garman 1314158a14 Add “site size” areas to system status report
The size of the site very much impacts the status of the site. This type of information would be extremely helpful when supporting a site.

1) post counts - can reveal high volumes of specific kinds of post types both within WC (orders, products, etc) or outside (revisions, attachments, third party ones, etc)

2) table sizes - a site with a 5MB postmeta table is very different than a site with a 5GB postmeta table, which is different than a site with a 50GB postmeta table, and require different kinds of support and focus.
2017-08-06 01:15:10 -04:00
Jaydeep Rami 46d3638089 Fix missing return statement (#16148)
* Fix missing return statement

* Fix missing return statement

* Fix missing return statement

* Fix missing return statement

* Fix missing return statement

* Fix missing return statement
2017-07-20 18:01:14 +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
Mike Jolley 62a3554c22 Merge pull request #16114 from woocommerce/fix/rest-api-options
[REST API] Allow OPTIONS requests again
2017-07-17 11:08:48 +01:00
Claudio Sanches eb4caec13e Applies wc_delete_order_note() and properly delete notes by AJAX 2017-07-13 19:38:37 -03:00
Claudio Sanches f37e066d97 [REST API] Allow OPTIONS requests again 2017-07-13 15:19:17 -03:00
Jason Conroy 0d91f008ac Add terms and conditions to page to api pages property 2017-07-13 16:26:20 +10:00
Claudio Sanches 4262e83187 [REST API] Check if is a valid instance of WC_Product before load data
Closes #16072
2017-07-11 12:27:56 -03:00
Daniel Rey Lopez 04a83b0faa Change the "Rest of the World" zone name to "Locations not covered by your other zones" everywhere 2017-07-11 08:19:42 +01:00