woocommerce/includes/abstracts
Rodrigo Primo fa0e5569f8 Add 'parent' to the list of valid tax classes for product variations
Commit d9f9e74bd added a check to `WC_Product::set_tax_class()` to only accept valid tax classes, but this created a bug for product variations as this type of product has an extra tax class called 'parent'.

This commit fixes this problem by adding a new method to `WC_Product` that returns a list of valid tax classes. `WC_Product_Variation` then override this method, returning another list including the tax class 'parent'.

Fixes #17024
2017-10-09 16:20:03 -03:00
..
abstract-wc-data.php Revert get_meta_data changes and return array of WC_Meta_Data objects 2017-10-04 14:12:43 +01:00
abstract-wc-deprecated-hooks.php Fix phpdoc to include params and correct types 2017-05-15 13:50:52 +02:00
abstract-wc-integration.php Settings api 2015-12-14 14:03:46 +00:00
abstract-wc-log-handler.php Add WC_Log_Handler_Interface 2017-01-24 14:10:05 +01:00
abstract-wc-object-query.php Migrate wc_get_orders 2017-05-12 11:45:01 -07:00
abstract-wc-order.php Unused variable 2017-09-27 17:12:50 +01:00
abstract-wc-payment-gateway.php Include add_payment_method in gateway abstract 2017-08-07 12:38:50 +01:00
abstract-wc-payment-token.php Deprecated $context on get_display_name. 2017-03-15 08:21:02 -07:00
abstract-wc-product.php Add 'parent' to the list of valid tax classes for product variations 2017-10-09 16:20:03 -03:00
abstract-wc-rest-controller.php invalid return 2017-08-23 14:27:30 +01:00
abstract-wc-rest-crud-controller.php If sorting by date in the REST API, fallback to ID 2017-09-25 13:31:25 +01:00
abstract-wc-rest-posts-controller.php Fix phpdoc to include params and correct types 2017-05-15 13:50:52 +02:00
abstract-wc-rest-shipping-zones-controller.php Changed version 2.7 to 3.0 2017-03-15 13:36:53 -03:00
abstract-wc-rest-terms-controller.php Fix error when invalid parent term 2017-10-03 17:59:58 -03:00
abstract-wc-session.php More abspath 2017-05-23 15:40:19 +01:00
abstract-wc-settings-api.php Fix missing return statement (#16148) 2017-07-20 18:01:14 +01:00
abstract-wc-shipping-method.php Pass WC_Shipping_Method instance to availability filters 2017-08-11 16:36:18 -04:00
abstract-wc-widget.php Fix missing return statement (#16148) 2017-07-20 18:01:14 +01:00