Commit Graph

8347 Commits

Author SHA1 Message Date
Claudio Sanches 0da91bb7d7 Merge pull request #11746 from woothemes/crud-meta-id
Swaps meta_id for id across crud and api
2016-08-22 16:43:57 -03:00
Mike Jolley f34f1aa635 Simplify prepare_line_items logic 2016-08-22 19:58:30 +01:00
Mike Jolley 39f4a1cdca Swaps meta_id for id across crud and api 2016-08-22 19:37:34 +01:00
Mike Jolley 169780d31b woocommerce-message--success
Followed
https://github.com/woothemes/woocommerce/wiki/CSS-SASS-coding-guidelines
-and-naming-conventions

Closes #11722
2016-08-22 18:41:38 +01:00
Mike Jolley 2cea613566 Fix shipping meta save
#11601
2016-08-22 18:07:52 +01:00
Mike Jolley a8e47992a6 Put back add_product for convenience. Fix unit tests. 2016-08-22 18:00:52 +01: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 95b11606fc get_product_from_item -> get_product 2016-08-22 16:51:24 +01:00
Mike Jolley c88984eb0e Replace add methods 2016-08-22 16:48:19 +01:00
Mike Jolley e079895c08 Set rate in one go for tax rate items 2016-08-22 14:52:03 +01:00
Mike Jolley fc2e039882 Deprecate add_product etc
#11601
2016-08-22 14:51:53 +01:00
Mike Jolley 09e43cf797 read only refunded by 2016-08-22 13:15:15 +01:00
Mike Jolley fdd7e797ba API get refunds 2016-08-22 13:15:15 +01:00
Mike Jolley 9e45927803 Create refund with crud 2016-08-22 13:15:15 +01:00
Mike Jolley 7eb9720fde Merge pull request #11737 from thii/add/paypal-here-txn-type
Add PayPal Here as a valid transaction type
2016-08-22 09:50:29 +01:00
Mike Jolley 698c84827d Merge pull request #11717 from woothemes/improve-configure-terms
Change "Configure terms" into a link
2016-08-22 09:49:27 +01:00
Mike Jolley 9558c9e99a Merge pull request #11730 from woothemes/improve-log-viewer
Removed internal scroll from log viewer
2016-08-22 09:48:55 +01:00
nishit.langaliya 94ed2fd96d Fixes: Add reply-to to admin emails ref #11630 2016-08-22 11:42:21 +05:30
Claudio Sanches 8fe4c14e78 [REST API] Fixed customer last order data 2016-08-20 14:29:48 -03:00
Claudio Sanches a6ffd4cafd Update customer fields 2016-08-20 14:29:27 -03:00
Claudio Sanches f7bf0b1184 Improve save customer meta fields and removed extra escape function #11733 2016-08-20 13:02:04 -03:00
Claudio Sanches 4c8a60fa06 Allow checkboxes in customer profiles, closes #11733 2016-08-20 12:57:35 -03:00
Thi 43cd8c9578 Add PayPal Here as a valid transaction type 2016-08-20 18:19:49 +09:00
Claudio Sanches 80ee7016f8 Fixed conflicts 2016-08-19 20:31:59 -03:00
Claudio Sanches b3c0bee7fc Sort by top rated widget with meta
ref #11711

cc @mikejolley
2016-08-19 19:57:42 -03:00
Claudio Sanches d3e732322e Fixed indentation for #11583 2016-08-19 19:37:03 -03:00
Claudio Sanches e02d75bd9c Merge pull request #11583 from opportus/seo-tweaks
Seo Tweaks
2016-08-19 19:34:29 -03:00
Claudio Sanches 47177667aa Removed internal scroll from log viewer, closes #11729 2016-08-19 18:48:49 -03: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 21ad196297 Use CRUD in wc_save_order_items 2016-08-19 13:43:33 +01:00
Claudio Sanches d60d3d5b1e Merge branch 'order-crud-api' 2016-08-19 02:07:10 -03:00
Claudio Sanches acd8a70a30 [2.6] [REST API] Allow save refund reason, closes #11718 2016-08-18 15:20:52 -03:00
Mike Jolley 03110e755f Unit tests 2016-08-18 17:24:44 +01:00
Claudio Sanches 9da3f79f41 Introduces the woocommerce_webhook_order_payload_filters filter 2016-08-18 13:22:13 -03:00
Mike Jolley f1e517130a Feedback from @claudiosmweb 2016-08-18 13:30:10 +01:00
Mike Jolley fb585e9633 Add transient caching to product_loop
Closes #11708
2016-08-18 13:19:57 +01:00
Mike Jolley 5a740b7837 Merge pull request #11710 from woothemes/rest-api-load-priority
REST API hook load priority
2016-08-18 11:39:14 +01:00
Mike Jolley 747c48c13b Sort by rating with meta
Closes #11711
2016-08-18 11:33:19 +01:00
Mike Jolley eab72bd48e Sync rating after clear_transients so meta exists
#11711
2016-08-18 11:10:16 +01:00
opportus 92513c6ad1 seo tweaks - branch update 2016-08-18 10:39:55 +02:00
Claudio Sanches 838f3737ea [2.6] Fixed downloadable variable product URL, closes #11699 2016-08-18 00:53:27 -03:00
Claudio Sanches 74484c7009 [2.6] [REST API] Fixed undefined order ID, closes #11707 2016-08-18 00:41:46 -03:00
Claudio Sanches 2799bbdb27 Changed "Configure terms" into a link 2016-08-18 00:02:18 -03:00
Mike Jolley 7852eecb06 Fix get param usage 2016-08-17 17:25:29 +01:00
Mike Jolley 594bceedf2 Comment out exception code - see #11715 2016-08-17 17:07:30 +01:00
Mike Jolley 709dec9ef1 Create and update handling 2016-08-17 16:53:01 +01:00
Mike Jolley 3755049d86 Fix item data 2016-08-17 11:45:07 +01:00
Mike Jolley 0b9a5998cc Exception class 2016-08-17 11:44:56 +01:00
Mike Jolley b4599d9254 Schema update 2016-08-17 11:44:39 +01:00
Claudio Sanches b1ac42220a Merge pull request #11690 from sumnermic/patch-1
Add anchor attribute target "_blank"
2016-08-16 18:40:12 -03:00
Claudio Sanches 525b11a2a2 Defined a priority for the REST API init method 2016-08-16 17:44:32 -03:00
Claudio Sanches 49b7dd6dfa Removed custom hooks introduced in #11668 2016-08-16 17:43:09 -03:00
Claudio Sanches 3cf8058f9b DRY #11614 2016-08-16 16:55:26 -03:00
JLuis Freitas 5a0f0cf5b4 add PT (Portugal) address format
add $postcode_before_city format to portuguese addresses
2016-08-16 17:10:09 +01:00
Mike Jolley 92ebb933b4 Finish order get 2016-08-16 15:18:16 +01:00
Mike Jolley 3e88ec1f20 Product formatting 2016-08-16 14:49:30 +01:00
Mike Jolley b64c55de49 Format item meta 2016-08-16 13:55:10 +01:00
Mike Jolley 99be0167b4 Order type doesn't appear to be used anywhere, and I'd expect other plugins extending orders to have their own classes anyway making this a bit pointless.
@thenbrent
2016-08-16 13:02:22 +01:00
Mike Jolley b70a979fce Get product item data 2016-08-16 13:01:38 +01:00
Mike Jolley 1baef12395 qty -> quantity 2016-08-16 12:36:38 +01:00
Mike Jolley 71ce5f77d0 Replace order_item_id with just id 2016-08-16 12:27:00 +01:00
Mike Jolley 0621db57d3 Merge branch 'master' into order-crud-api 2016-08-16 12:20:34 +01:00
Mike Jolley e99798f16e Date modified is read only and set by WP after update 2016-08-16 11:57:25 +01:00
opportus c04cfa9d15 seo tweaks - adds to loop product and loop category headings a specific css class 2016-08-16 12:34:38 +02:00
opportus 26367d1108 seo tweaks - branch update 2016-08-16 12:19:29 +02:00
Multidots dd445d8f09 Fixes:'File' link on My Accounts->Downloads incorrect for variations 2016-08-16 15:47:35 +05:30
Mike Jolley bc75c60227 Merge branch 'master' into order-crud-api 2016-08-16 11:09:14 +01:00
Mike Jolley 46b6ca0f3b Only read users from current site 2016-08-16 11:08:54 +01:00
Mike Jolley de7e522835 Remove customer order queries for performance reasons and offer get_last_order() method instead.
Same for order counts - these don’t need to be populated after read,
only when needed. cc @justinshreve
2016-08-16 10:04:52 +01:00
Mike Jolley c6f6713e47 Write context in coupon api
@justinshreve
2016-08-15 19:28:07 +01:00
Mike Jolley 589ce2f544 Write context 2016-08-15 18:26:00 +01:00
Mike Jolley 5afac69f10 Fix write context errors 2016-08-15 17:50:02 +01:00
Mike Jolley c7ae2c31ea leave wp meta alone and handle serialisation 2016-08-15 17:37:18 +01:00
Mike Jolley 3f08d116d8 Start using crud for order requests 2016-08-15 17:27:33 +01:00
Mike Jolley 9138d8a9e1 order api notices 2016-08-15 16:56:55 +01:00
Mike Jolley 83dca89d0c Correct customer escaping and tests 2016-08-15 16:53:48 +01:00
Mike Jolley 14b40ea340 Handle first and last name fields
@justinshreve
2016-08-15 14:13:20 +01:00
Mike Jolley e1318d9175 Stop WP core meta data being removed for customers
@justinshreve
2016-08-15 13:17:43 +01:00
Multidots 63c3a979f4 Fixes Add reply-to to admin emails 2016-08-15 16:31:12 +05:30
Mike Jolley 23e13fbfa6 created_via 2016-08-15 11:29:29 +01:00
Mike Jolley 0113dbd7c5 Use wc_do_deprecated_action 2016-08-15 11:08:36 +01:00
Mike Jolley 46793622df wc_do_deprecated_action helper 2016-08-15 11:02:49 +01:00
Mike Jolley 6090e3cd00 set_backorder_meta helper 2016-08-15 11:02:38 +01:00
Mike Jolley 0dd41179aa Prefix item ids and revert some changes to add_products method for ease of use. 2016-08-15 11:02:25 +01:00
Mike Jolley 7796fe9cf1 Clean item/group cache when remove_order_items is used. 2016-08-12 16:48:48 +01:00
Mike Jolley eec9ce5b41 Revert addition of _delete_extra_meta_data
This essentially removes the ability to delete meta which is not great.

@justinshreve you added this in
https://github.com/woothemes/woocommerce/commit/e3b1f6dbc9558bae606fa76e
6941175582a301b7 - can you tell me what problems it was causing you so
we can add a different fix if needed?
2016-08-12 16:41:06 +01:00
Mike Jolley eb45acf0d5 [2.6] Use method title in admin shipping dropdown
fixes #11678
2016-08-12 14:23:59 +01:00
sumnermic e336886afa Add anchor attribute target "_blank"
Add anchor attribute target "_blank" to Regenerate Thumbnails link. It's pretty annoying for it to not open in a new window/tab.
2016-08-12 13:58:54 +01:00
Mike Jolley f3651a9881 Fix user agent calls 2016-08-12 12:53:09 +01:00
Mike Jolley f7958f2b20 [2.6] Drafts don't have post_date_gmt
Fixes #11686

@claudiosmweb @justinshreve
2016-08-12 12:53:09 +01:00
Mike Jolley cfc31dd311 wc_prevent_adjacent_posts_rel_link_wp_head
Closes #11683
2016-08-12 11:03:28 +01:00
Mike Jolley 97618fa2af Made stock notes consistent
Fixes #11673
2016-08-12 10:47:01 +01:00
Mike Jolley bb50ca8a6c Merge remote-tracking branch 'origin/master' 2016-08-12 10:39:47 +01:00
Mike Jolley 584b1ce4cb Merge branch 'pr/11674' 2016-08-12 10:39:45 +01:00
Mike Jolley 3b0af0c54b Merge pull request #11670 from woothemes/fix-reports-custom-daterange
Reports: Clean up custom date range UI
2016-08-12 10:36:48 +01:00
kellychoffman f41321fb27 input length: increased to 11 2016-08-11 15:59:25 -06:00
Justin Shreve a610c6a804 Update the Customers API to use the WC_Customer CRUD Class
Also:
* Introduces Tests for the Customer REST API
* Fixes a few API and test issues from recent CRUD changes
* Adds some missing billing_ and shipping_ meta data functions to Customer CRUD
2016-08-11 10:30:44 -07:00
corsonr 51060807c4 remove un-necessary slashes 2016-08-11 16:07:40 +02:00
rspublishing f3956131bf Copy update in setup wizard 2016-08-11 08:40:12 +02:00
Gabor Javorszky ddd34a4460 Fix add to cart variation AJAX mode when cart fragments are dequeued
No issue.

* high traffic site, so wc-cart-fragments are dequeued (#7777)
* variable product with a lot of variations, so stock lookup happens through ajax
* previously the add-to-cart-variation.js used the wc_cart_fragments_params for the ajax URL, which in this case wasn't available, the result was a hung page
* decoupled from cart fragments: added the wc_ajax_url to the params that wc_add_to_cart_variation_params gets, so no more hung pages.
2016-08-11 01:17:43 +01:00
Claudio Sanches 43c654a04b [2.6] [REST API] Fixed wrong get order notes error message, closes #11672 2016-08-10 17:55:41 -03:00
kellychoffman 9a7b391b74 custom date: add en dash, larger inputs, no hidden text 2016-08-10 10:35:42 -06:00
Justin Shreve dd0ddac577 Merge pull request #11668 from woothemes/add/wc-api-loading-hooks
Add a new hook and filter for loading new REST API files.
2016-08-10 06:30:26 -07:00
Justin Shreve 1c333b4a18 Merge pull request #11667 from woothemes/issues/11664/fix-func_get_args-warning
Fix func_get_args warning thrown by php7cc.
2016-08-10 06:27:06 -07:00
Justin Shreve 7def54c528 Add a new hook and filter for loading new REST API files. 2016-08-10 06:19:06 -07:00
Akeda Bagus 2fb71e6ec6 Fix func_get_args warning thrown by php7cc.
Although unlikely to happens, this is an attempt to prevent any modification
before func_get_args().

See https://github.com/php/php-src/blob/PHP-7.0/UPGRADING#L190-L213

Fixes #11664.
2016-08-10 19:00:20 +07:00
Mike Jolley efd390e951 Merge pull request #11645 from woothemes/orders-crud-function-update
Orders crud functions
2016-08-10 12:19:38 +01:00
Mike Jolley d4cc1f80d4 [2.6] Fix ship to specific counties option
Fixes #11642
2016-08-10 12:04:52 +01:00
Mike Jolley dff1fc84de Merge pull request #11651 from rodrigoprimo/comment-type-index
Add an index to the field comment_type
2016-08-10 11:02:10 +01:00
Mike Jolley 1a4576b95c Merge branch 'pr/11661' 2016-08-10 10:36:58 +01:00
Mike Jolley 51f3efd5c4 Don't need both cases 2016-08-10 10:36:51 +01:00
Justin Shreve 486f7cc738 Correct the avatar_url Customer API response to use the correct email field. 2016-08-09 14:02:58 -07:00
Gregory Karpinsky b08d0bc1d2 woocommerce_taxonomy_archive_description
Check for `is_product_taxonomy()` to show the description on the product attribute archives.
2016-08-09 16:22:50 -04:00
Justin Shreve 35cae38aa2 Fix issues from PR review: sanitize/escape fixes in wp-admin, remove modes. 2016-08-09 10:14:47 -07:00
Justin Shreve 72d665d464 Remove @todo 2016-08-09 09:51:30 -07:00
Justin Shreve b198e6d65b Add the ability to see and update system status modes (shipping debug, template debug, uninstall...) 2016-08-09 09:51:30 -07:00
Justin Shreve 9609998505 Add tools controller 2016-08-09 09:51:30 -07:00
Justin Shreve 9dbd365be8 First pass at system status tools. Fully functioning endpoints for listing tools, listing data about a specific tool, and executing a tool. 2016-08-09 09:51:30 -07:00
Mike Jolley 30b0045d8a Fix more notices 2016-08-09 14:30:10 +01:00
Mike Jolley 71afe5fdf7 Fix get_items 2016-08-09 14:21:54 +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 7861b76e9b Checkout handling
Also introduces add_item so you can add items to an order before the
order exists. Save at once is more efficient.
2016-08-09 14:02:40 +01:00
Rodrigo Primo 7acf712e45 Check if there is a comment_type index before adding one
Adding this check to avoid a MySQL error when running the query if the index already exists.
2016-08-09 14:28:41 +02:00
Mike Jolley f4b45001ec Merge conditonal 2016-08-09 11:17:47 +01:00
Mike Jolley b7dcd97572 Sanitize on set only 2016-08-09 11:16:54 +01:00
Mike Jolley 01a4c81094 Spacing 2016-08-09 11:16:13 +01:00
Mike Jolley 4ac4bcaa08 Merge branch 'master' into WC-CRUD
# Conflicts:
#	tests/unit-tests/cart/cart.php
2016-08-09 11:08:21 +01:00
Rodrigo Primo 2e8f02f6a4 Add an index to the field comment_type
This index improves the response time of the query used by WC_Comments::wp_count_comments() to get the number of comments by type.
2016-08-09 10:00:51 +02:00
Justin Shreve 2d0aeec5c5 Fix customer batch error 2016-08-08 14:54:12 -07:00
Justin Shreve fe7e26d68d Error fixes:
* Typos
* Consistent edit error handles
* Consistent error messages
2016-08-08 14:52:46 -07:00
Mike Jolley 971cff77b8 Fixed unit tests 2016-08-08 17:47:50 +01:00
Mike Jolley 39eb584321 Merge branch 'master' into orders-crud-function-update 2016-08-08 17:24:40 +01:00
Mike Jolley e8d85005d7 Handle default status 2016-08-08 17:24:39 +01:00
Mike Jolley 6a493f7350 order total 2016-08-08 17:06:12 +01:00
Mike Jolley 9d66367699 Status change fixes 2016-08-08 17:03:43 +01:00
Mike Jolley 31803f4e51 Billing/shipping 2016-08-08 16:46:58 +01:00
Mike Jolley 7bdda1f707 more dates 2016-08-08 16:34:01 +01:00
Mike Jolley a6bb78b34a date created 2016-08-08 16:32:03 +01:00
Mike Jolley 30742798ed Order table 2016-08-08 16:31:06 +01:00
Mike Jolley 7b0d9a3e61 IP and notes 2016-08-08 16:24:16 +01:00
Mike Jolley a8759fc0aa Meta/product handling 2016-08-08 16:20:15 +01:00
Mike Jolley c3aa933ad2 coupon 2016-08-08 15:25:22 +01:00
Mike Jolley 75975de58a Item meta 2016-08-08 15:22:00 +01:00
Mike Jolley 9bbf5df1fd Billing/shipping details 2016-08-08 14:49:53 +01:00
Job f5e45d254e update woothemes > woocommerce
changes in the help tab

WooThemes Helpdesk > WooCommerce Helpdesk
2016-08-08 15:37:30 +02:00
Mike Jolley cfe28c9b25 Made WC_Logger pluggable via wc_get_logger function.
Closes #11474
2016-08-08 13:59:23 +01:00
Mike Jolley 87443763d8 Hook in the no products found template
Closes #11257

cc @jameskoster
2016-08-08 13:43:42 +01:00