Commit Graph

18254 Commits

Author SHA1 Message Date
Mike Jolley af3496402d Merge branch 'master' into product-crud
# Conflicts:
#	includes/class-wc-data-store.php
#	woocommerce.php
2016-11-16 12:37:57 +00:00
Mike Jolley 599a2ad296 Product CRUD improvements (#12359)
* args is not used any more - remove todo

* Added test for attributes

* wc_get_price_excluding_tax usage

* parent usage

* Fix rating counts

* Test fixes

* Cleanup after tests

* Make sure status transition code runs even during API calls, not just in admin.

* Default visibility

* Fix attribute setting in API

* Use get name instead of get title

* variation id usage

* Improved cross sell templates

* variation_data

* Grouped product sync

* Notices

* Sync is not needed in API

* Delete

* Rename interfaces

* Update counts in data store
2016-11-16 12:17:00 +00:00
Justin Shreve cb82569ed0 Merge pull request #12364 from woocommerce/fix/coupon-data-store-apply-changes
Call apply_changes when updating and creating a coupon.
2016-11-15 15:27:03 -08:00
Justin Shreve e83ec0c235 Call apply_changes when updating and creating a coupon. 2016-11-15 15:25:36 -08:00
Justin Shreve 79c8b56885 Merge pull request #12353 from woocommerce/customer-data-store
Customer Data Stores
2016-11-15 11:39:54 -08:00
Justin Shreve 53524141b7 Fix up the other delete signatures. 2016-11-15 11:35:10 -08:00
Mike Jolley eade55041c Delete args 2016-11-15 18:11:25 +00:00
Mike Jolley d8fcfcefb8 Variations API endpoint fixes 2016-11-15 12:51:26 +00:00
Mike Jolley ef990355fd Merge conflict 2016-11-15 11:52:29 +00:00
Mike Jolley c18f6efeb4 Conflicts from master 2016-11-15 11:52:05 +00:00
Claudio Sanches b1c32e5e50 Products endpoint tweaks (#12354)
* Var type already normalized on CRUD

* Let Product CRUD handle with validation, sanitization and conditional checks

* Set downloads using WC_Product_Download

* Stop try catch exceptions more than one time

* Handle WC_Data_Exception in legacy API

* Complete remove products when fails on creating

* On creating I mean!

* Already have a method to complete delete products

* Fixed standards using WP CodeSniffer

* get_the_terms() returns false when empty

* get_manage_stock returns boolean

@claudiosanches
2016-11-15 10:26:42 +00:00
Mike Jolley dc60ea4c23 Merge branch 'master' into customer-data-store
# Conflicts:
#	includes/class-wc-data-store.php
#	woocommerce.php
2016-11-14 18:21:30 +00:00
Mike Jolley cce4eef99d Payment Token Data Store (#12348)
* Payment Token Data Store

* Handle feedback

* Rename interface file
2016-11-14 18:20:00 +00:00
Mike Jolley 00ed627b29 Data stores 2016-11-14 18:18:08 +00:00
Claudio Sanches 8650365e32 Removed test 2016-11-14 15:19:28 -02:00
Justin Shreve d986d1bba1 Rename interface file 2016-11-14 09:13:55 -08:00
Justin Shreve 944e5d658b Handle feedback 2016-11-14 09:08:46 -08:00
Claudio Sanches 657bd226f8 Removed API todos 2016-11-14 14:43:30 -02:00
Claudio Sanches 60f1fcf9e3 Merge pull request #12334 from sabbir1991/master
Fix toggle download and virtual in variation bulk action #12333
2016-11-14 14:11:30 -02:00
Justin Shreve 370166a6b0 Payment Token Data Store 2016-11-14 06:20:41 -08:00
James Koster 7b26985304 Merge pull request #12346 from woocommerce/fix/magnification-on-touch
Disable magnification on touch. #12315
2016-11-14 12:15:47 +00:00
James Koster 4343c8dc03 Disable magnification on touch. #12315 2016-11-14 11:50:37 +00:00
Justin Shreve b0f859f6a2 Merge pull request #12345 from woocommerce/remove/cli
Remove CLI
2016-11-14 03:44:02 -08:00
Justin Shreve ad67277a9b Blank file for wc-cli.php 2016-11-14 03:36:26 -08:00
Justin Shreve c1677867fe Merge pull request #12343 from woocommerce/fix/coupon-functions-store
Move queries from coupon-functions.php to the coupon data store.
2016-11-14 03:33:58 -08:00
Claudio Sanches 4827225454 Add variations CRUD to legacy API (#12331)
* Apply crud to variable products in legacy API v1

* New REST API do not need fallback for default attributes

* Apply variations CRUD to legacy API v2

* Legacy v2 - save default attributes

* Variations in legacy API v2 do not have descriptions

* Fixed legacy API v2 variations params

* Applied variations CRUD to legacy API v3

* Sync before save in legacy apis

* Punc
2016-11-14 11:31:52 +00:00
Claudio Sanches 6de7984f2d Fixed a few fatal errors and warnings in Products CRUD (#12329)
* Fixed a few fatal errors and warnings in Products CRUD

* Fixed sync functions
2016-11-14 11:02:56 +00:00
Justin Shreve 365a834d92 Remove CLI from WooCommerce. Moving to a new package. 2016-11-14 02:42:40 -08:00
Justin Shreve 4b33f11bf2 Move queries from coupon-functions.php to the coupon data store. 2016-11-14 02:31:04 -08:00
Sabbir Ahmed 7cd5488f26 Fix toggle download and virtual in variation bulk action #12333 2016-11-13 11:45:12 +06:00
Claudio Sanches 83f74145ee Updated how create initial product variation 2016-11-11 17:29:56 -02:00
Claudio Sanches 1f31de39d9 Fixed variable description in REST API 2016-11-11 16:36:58 -02:00
Mike Jolley c4806e63d1 Use new method in abstract order class to prevent headers sent issue in tests 2016-11-11 18:30:18 +00:00
Claudio Sanches 096622c9e4 Should pass WC_Product instancies to WC_Comments methods (#12327) 2016-11-11 18:13:56 +00:00
Mike Jolley bc9d2c72aa TODO is not accurate. 2016-11-11 18:09:06 +00:00
Claudio Sanches 93ecafebec [2.6] Allow password strength meter in Lost Password page, closes #12314 2016-11-11 15:21:06 -02:00
Claudio Sanches 3dfb4c98e3 Fixed coding standards 2016-11-11 15:19:40 -02:00
Claudio Sanches b5011cd530 Merge pull request #12309 from woocommerce/update-variations-rest-api
Use variations CRUD in REST API
2016-11-11 14:59:42 -02:00
Claudio Sanches e0f5a224b4 Merge branch 'update-variations-rest-api' of github.com:woocommerce/woocommerce into update-variations-rest-api 2016-11-11 14:58:27 -02:00
Claudio Sanches cc109a7e0a Removed duplicated sync 2016-11-11 14:58:03 -02:00
Claudio Sanches 518c3a3467 Allow set tax class as "parent" 2016-11-11 14:58:03 -02:00
Claudio Sanches c8e34f3403 Fixed method returning in write context 2016-11-11 14:58:03 -02:00
Claudio Sanches a17af7ad30 New default attributes method 2016-11-11 14:56:03 -02:00
Claudio Sanches 47e3f22810 Remove deprecated get_variation_id() 2016-11-11 14:56:03 -02:00
Claudio Sanches 5cab607be7 Use variations CRUD to save variations metadata 2016-11-11 14:56:03 -02:00
Claudio Sanches 9fd64f49e4 Updated get methods on REST API for variations 2016-11-11 14:56:02 -02:00
Claudio Sanches 4083f5b8d7 Allow wc_rest_prepare_date_response() handle timestamps 2016-11-11 14:56:02 -02:00
Claudio Sanches 57b75bb95d Fixed undefined $image_id in WC_Product_Variation::get_image_id() 2016-11-11 14:56:02 -02:00
Claudio Sanches d039e12f47 Fixed wrong variation URLs 2016-11-11 14:53:53 -02:00
Claudio Sanches 4c44ed666f Removed duplicated sync 2016-11-11 14:47:44 -02:00