Commit Graph

18022 Commits

Author SHA1 Message Date
Mike Jolley 95de56d402 Use get_upsell_ids 2016-10-18 19:08:40 +01:00
Mike Jolley d705f4ceff Move children to meta and update test 2016-10-18 19:05:33 +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
Mike Jolley 2819fadd7f Tests 2016-10-18 18:38:48 +01:00
Mike Jolley a8b7ee6929 Grouped product class 2016-10-18 18:38:42 +01:00
Justin Shreve cdaa40367a Merge pull request #12121 from woocommerce/product-crud-external-type
[Product CRUD] External Products
2016-10-18 10:24:46 -07:00
Justin Shreve c4fb1db46b _virtual meta should be 'no', not taxable, in product unit test helper 2016-10-18 10:23:20 -07: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
Mike Jolley 2fb0dd50d5 Merge pull request #12109 from woocommerce/product-crud-update-fields
[Product CRUD] Full Creation & Updating (Abstract)
2016-10-18 16:57:50 +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
Mike Jolley 85f22f9f11 Update coupon on pending order
Closes #12096
2016-10-18 12:27:56 +01:00
Claudio Sanches f218b6cfd9 [REST API] Allow filter by on sale products, closes #12093 (#12105) 2016-10-18 11:40:13 +01:00
Dwain Maralack c27fd5c052 Check if the chosen method is set on the package rates. There are rare instances where store manager may disable a shipping option while the users session is still in progress. This results in an unexpected errors and checkout page hanging. Double checking that the chosen method is accessable on the package avoids the error. (#12111) 2016-10-18 11:38:44 +01:00
Mike Jolley 560513cde7 Bump template version 2016-10-18 11:19:35 +01:00
Claudio Sanches 10ba5b5978 Merge pull request #12106 from woocommerce/improve-product-filters
[REST API] Better sanitization for product taxonomy filters
2016-10-17 19:04:13 -02: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
Claudio Sanches ee061f98ec [REST API] Better sanitization for product taxonomy filters 2016-10-17 14:39:02 -02: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 e6e600ba8a Remove unneeded comments 2016-10-17 17:07:19 +01:00
Mike Jolley 6bf077a367 Sanitize ids later 2016-10-17 17:04:24 +01:00
Claudio Sanches f42d853453 Use count() instead of sizeof() 2016-10-17 13:31:49 -02:00
Claudio Sanches aad06f6642 Fixed wrong variable in wc_get_related_terms 2016-10-17 13:29:12 -02:00
Claudio Sanches c3b6135937 Get cached terms from wc_get_related_terms() 2016-10-17 13:28:52 -02:00
Claudio Sanches 92484d140c Fixed coding standards and improved the docblocks 2016-10-17 13:23:49 -02:00
Mike Jolley 38c18664c9 No need to exclude ID 2016-10-17 16:00:43 +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
Mike Jolley 7e56707850 Enqueue scripts when shortcode is used 2016-10-17 11:49:51 +01:00
Mike Jolley e0fa344d50 Abort adding variation to cart if invalid rather than just hiding value 2016-10-17 11:33:43 +01:00
Mike Jolley 55e1a50400 [2.6] variation_data should be isset 2016-10-17 11:33:25 +01:00
Mike Jolley cfbb8d6601 Use meta as a cache for order/spent methods.
Closes #12080
2016-10-14 15:11:10 +01:00
Bryce Adams ea1f9aea65 Remove last order from customers part of the API (#12081)
Proposed solution to close #12080

* Also removes from tests.
2016-10-14 14:38:35 +01:00
Mike Jolley 65fda094bd Fix empty value in zones save 2016-10-14 13:06:06 +01:00
Mike Jolley c893bf34aa [2.6] Fire tokenisation event on load for pay page.
Fixes #12047
2016-10-14 12:39:19 +01:00
Mike Jolley c93486ccc7 Typo in comment. 2016-10-14 12:38:55 +01:00
Mike Jolley a6f4332f89 Remove non-existant field from unit test 2016-10-14 12:22:25 +01:00
Mike Jolley 5f886c326a [2.6] Populate attribute dropdown when empty
Fixes #11983
2016-10-14 12:09:24 +01:00
Mike Jolley 307601c4c0 Merge branch 'new-rest-api-product-filters' 2016-10-14 11:22:48 +01:00
Claudio Sanches 507bbffc66 Fixed coding standards 2016-10-14 11:19:20 +01:00
Claudio Sanches ec79238f30 Added min_price and max_price product filter 2016-10-14 11:19:20 +01:00
Claudio Sanches 21f7bfe7bc Fixed price meta_query 2016-10-14 11:19:20 +01:00
Claudio Sanches 8339e9ca25 Introduces wc_get_min_max_price_meta_query() function 2016-10-14 11:19:20 +01:00
Claudio Sanches 861606571d Fixed PHPCBF mistakes 2016-10-14 11:15:11 +01:00
Claudio Sanches 2400a72b93 Filter products in stock or out of stock 2016-10-14 11:15:11 +01:00
Claudio Sanches d8a03a3083 Fixed coding standards 2016-10-14 11:15:11 +01:00
Claudio Sanches e57ae3da27 Filter products by tax class 2016-10-14 11:15:11 +01:00