Commit Graph

834 Commits

Author SHA1 Message Date
Justin Shreve 12e3e4469d Fix comparison for is_on_sale and remove download_type from WC_Product. 2016-10-28 08:13:46 -07:00
Justin Shreve e2b90f11f3 Fix final failing tests and implementing setters/getters and attributes functionality. 2016-10-27 09:31:56 -07:00
Justin Shreve 7ed100dcac REST API CRUD Updates 2016-10-27 09:30:15 -07:00
Mike Jolley 5855170c5a [Product CRUD] Product crud admin use getters (#12196)
* 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

* Move settings into new files

* Refactor panels and use getters

* Use getters for variation panel

* Revert save variation changes for now

* Add todos

* Fix downloads
2016-10-27 14:08:16 +01:00
Mike Jolley 38703f1907 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-10-26 18:02:50 +01:00
Mike Jolley cc768c5406 [Product CRUD] Product crud terms (#12149)
* Category and tag id handling

* Replace template functions

* Remove todo

* Handle default name in save function
2016-10-24 10:32:15 +01:00
Justin Shreve 880dc53ac9 [Product CRUD] Variable (#12146)
* [Product CRUD] Variable Products

* Handle PR feedback.
2016-10-24 08:28:56 +01:00
Mike Jolley 49b40ae4bc Price handling 2016-10-20 17:15:03 +01:00
Mike Jolley 52aebdbc0d wc_get_price_to_display 2016-10-20 16:40:17 +01:00
Mike Jolley b13ef43498 get_price_including_tax/excluding_tax functions 2016-10-20 16:32:16 +01:00
Mike Jolley 096d2e4edf missing $this 2016-10-20 15:13:51 +01:00
Mike Jolley b5b7ea48f3 Put back review functions (still todo) 2016-10-20 15:08:49 +01:00
Mike Jolley b6deb23e5c Tidy/add todos 2016-10-20 15:06:44 +01:00
Mike Jolley 61a866f8f0 Availability html 2016-10-20 15:02:25 +01:00
Mike Jolley 0520f73a6b Moving and refactoring methods 2016-10-20 12:42:24 +01:00
Mike Jolley 05b0b34c96 Merge pull request #12123 from woocommerce/product-crud-grouped
[Product CRUD] Grouped products
2016-10-19 11:13:23 +01:00
Mike Jolley ad4e99c3e5 Merge pull request #12101 from woocommerce/product-crud-related-products
[Product CRUD] Product crud related products
2016-10-18 19:08:59 +01:00
Mike Jolley 78931220b4 Merge branch 'product-crud' into product-crud-grouped
# Conflicts:
#	tests/framework/helpers/class-wc-helper-product.php
2016-10-18 18:58:08 +01:00
Justin Shreve b311caa1bc External Product CRUD 2016-10-18 09:59:02 -07:00
Mike Jolley c2a67803fc Made abstract function useful 2016-10-18 17:13:12 +01:00
Justin Shreve 6e69b0d924 Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function 2016-10-18 07:47:28 -07:00
Justin Shreve fde97df50f Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it. 2016-10-17 13:30:05 -07:00
Mike Jolley 50f21276fc wc_get_product_term_ids instead of related wording and use in other places.
get_the_terms is used here and also handles caching, something
wp_get_post_terms does not.
2016-10-17 17:18:57 +01:00
Mike Jolley 717bb62f19 Merge branch 'product-crud' into product-crud-related-products 2016-10-17 15:57:10 +01:00
Mike Jolley 803709cb94 Add related product functions and deprecate those in class. 2016-10-17 15:57:09 +01:00
Mike Jolley 627beecd42 Missing var 2016-10-17 15:56:16 +01:00
Mike Jolley a74de70dc3 Initial look through getters and setters and abstract data 2016-10-17 14:46:46 +01:00
Mike Jolley 30a164ea67 Hardcode the get_type per product class 2016-10-17 12:22:23 +01:00
Claudio Sanches 60b1361305 Fixed several erros while setting data 2016-10-11 14:53:23 +01:00
Claudio Sanches 42b96346b5 Product set methods 2016-10-11 14:53:23 +01:00
Claudio Sanches 43fd79cfcd First methods for WP_Product crud 2016-10-11 14:53:23 +01:00
Justin Shreve c1d7111240 Implement separate variation endpoints for managing a product's variations. Also adds tests. 2016-09-29 14:44:14 -07:00
Mike Jolley f9b2ed88c2 Merge branch 'pr/11883'
# Conflicts:
#	includes/class-wc-shortcodes.php
2016-09-12 14:53:04 +01:00
Mike Jolley e7fb89be5f Protocol relative images
Closes #11884
2016-09-12 13:03:44 +01:00
Aristeides Stathopoulos 831b4463d0 Merge pull request #5 from woothemes/master
sync
2016-09-09 16:49:48 +03:00
Justin Shreve c8ddca0635 Merge pull request #11882 from woothemes/settings-and-api-fixes
Settings & API Fixes
2016-09-09 05:52:23 -07:00
Justin Shreve e1e6c682b5 * Stop using _ as a prefix for protected or private vars and functions. We have a keyword for that.
* Introduces set_id and get_id to WC_Data for the CRUD classes to share
2016-09-09 05:36:54 -07:00
Aristeides Stathopoulos 7a509f53d4 Merge pull request #4 from woothemes/master
sync
2016-09-09 03:17:28 +03:00
Justin Shreve a36b25a68f Add setting validation to the REST API 2016-09-08 15:20:15 -07:00
Justin Shreve 9889222bd1 Swap "doesn't" with "does not" in 404 error messages. 2016-09-08 15:17:02 -07:00
Aristeides Stathopoulos 734f284fa4 WordPress.PHP.YodaConditions.NotYoda 2016-09-08 01:32:24 +03:00
Job ff9c553b1b coding standards 2016-09-07 13:34:37 +02:00
Job ffa2c4dec2 crucial update 2016-09-07 13:25:34 +02:00
Job d086cf3248 update function 2016-09-07 13:12:18 +02:00
Job 50fe611cdb again small update after review 2016-09-07 13:01:55 +02:00
Job a0274e9dc5 small update 2016-09-07 12:47:24 +02:00
Job d0aaf68f27 Update UX for disabled taxes
If taxes are disabled in the “General settings tab”, then the “Tax” tab
disappears, and the suffix can no longer be edited, but is still
displayed in the store

This fix makes sure that the suffix is only displayed if taxes are
enabled
2016-09-07 12:38:38 +02:00
Mike Jolley 311c540662 Merge pull request #11833 from aristath/master
Coding Standards (2nd pass)
2016-09-07 10:14:17 +01:00
Mike Jolley cf59524dd7 Fix order total race condition in CRUD 2016-09-07 09:28:11 +01:00
Aristeides Stathopoulos 39d4d4bd69 Squiz.Commenting.DocCommentAlignment.SpaceBeforeStar 2016-09-02 05:40:36 +03:00