Commit Graph

18416 Commits

Author SHA1 Message Date
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
Claudio Sanches 8b96122f28 Allow set tax class as "parent" 2016-11-11 14:46:51 -02:00
Mike Jolley 3d58459246 Remove old/complete todos 2016-11-11 16:28:47 +00:00
Mike Jolley 4600ccd146 Check for parent value - fixes tax class 2016-11-11 16:22:51 +00:00
Mike Jolley e1c4c4ab96 Fix error in variation admin 2016-11-11 16:22:39 +00:00
Claudio Sanches 5a2947d059 Fixed method returning in write context 2016-11-11 14:19:12 -02:00
Mike Jolley e1dd355cd9 Cart js class (#12172)
* Add classes and revise JS

* Block correct element in totals

* If no form with class is present, revert to reloading page

* Reload

* Rebase fail
2016-11-11 16:00:32 +00:00
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
Claudio Sanches 4daca5e110 New default attributes method 2016-11-11 12:28:29 -02:00
Claudio Sanches 638ab62ec3 Remove deprecated get_variation_id() 2016-11-11 12:14:10 -02:00
Mike Jolley 4fc03c9930 Revert "[Product CRUD] Abstract todos (#12305)"
This reverts commit 9a6136fcf8.
2016-11-11 11:58:57 +00:00
Lee Willis e0f4698813 Remove unused JOINS from query in _wc_term_recount. (#12302)
See #12197
2016-11-11 11:55:11 +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 d5a98e1ce2 Incorrect code comment closes #12300 2016-11-11 11:16:53 +00:00
Claudio Sanches a33b222f0e Use variations CRUD to save variations metadata 2016-11-11 01:17:18 -02:00
Claudio Sanches d0b3f4ed77 Updated get methods on REST API for variations 2016-11-10 17:24:42 -02:00
Claudio Sanches 78c53a84b8 Allow wc_rest_prepare_date_response() handle timestamps 2016-11-10 17:23:17 -02:00
Claudio Sanches da72a76089 Fixed undefined $image_id in WC_Product_Variation::get_image_id() 2016-11-10 17:11:21 -02:00
Claudio Sanches 4dc32da477 Fixed wrong variation URLs 2016-11-10 17:05:29 -02:00
Claudio Sanches 6eba8342d8 Updated CHANGELOG.txt 2016-11-10 15:38:37 -02:00
Mike Jolley c3b4f87d4a Fix text
Closes #12294
2016-11-10 16:18:05 +00:00
Claudio Sanches 10f10d1644 [2.6] Ensure that PayPal always receive float amounts, closes #12291 (#12293) 2016-11-10 10:18:35 +00:00
Krzysztof Grabania 4711066490 Removed empty string param in _deprecated_function function (#12301)
`_deprecated_function` has conditional which is checking if third param (replacement) is null. Passing replacement as empty string to this function will fail this test and the end of triggered error will look like this: `Use instead.` instead of `with no alternative available.`. This PR removes all occurrences of empty strings in this function.
2016-11-10 10:17:32 +00:00
Justin Shreve 8612ce877c Merge pull request #12284 from woocommerce/system-status-security-section
New system status security section
2016-11-10 00:53:48 -08:00
Claudio Sanches 1939abf059 Updated use of labels for checkboxes 2016-11-09 22:41:14 -02:00
Claudio Sanches c58bef1fa4 Include tests for security endpoint 2016-11-09 22:29:17 -02:00
Claudio Sanches 4d4fb839be Applied REST API methods for security section on system status page 2016-11-09 22:19:47 -02:00
Claudio Sanches fe4b45481d Include security data in system status endpoint 2016-11-09 22:19:12 -02:00
Justin Shreve 1fb8479358 Merge pull request #12289 from leewillis77/feature/wc_get_products_optimisation
Allow WP_Query to preload post data, and meta in wc_get_products()
2016-11-09 12:02:37 -08:00
Justin Shreve 5264e2511e Merge pull request #12292 from woocommerce/product-crud-todos
Remove _wc_save_product_price
2016-11-09 11:48:43 -08:00
Claudio Sanches d66e8bd7c0 Fixed declaration of WC_Coupon_Data_Store_CPT::delete 2016-11-09 16:07:20 -02:00
Mike Jolley c4facef4bf Remove todo 2016-11-09 17:34:41 +00:00
Mike Jolley 8a78cc212b Remove _wc_save_product_price 2016-11-09 17:32:40 +00:00
Mike Jolley aa2ce1a1cc Fix error 2016-11-09 17:29:28 +00:00
Mike Jolley f46c024862 Handle image_id from parent 2016-11-09 16:59:14 +00:00
Mike Jolley b9d60965d2 Conflicts 2016-11-09 16:53:23 +00:00
Mike Jolley 36d8e3b401 Prevent notices 2016-11-09 16:20:34 +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