woocommerce/includes/abstracts
Nestor Soriano 319b95b6f1
Modify "wc_get_price_excluding_tax" to use order location for rates
The order is optional and must be passed as an "order" key in "$args".
If present, the order customer will be passed to "WC_Tax::get_rates"
in order to calculate the taxes to substract (provided that
"$product->is_taxable() && wc_prices_include_tax()")

Also "WC_Abstract_Order->add_product" and "WC_AJAX::maybe_add_order_item"
are modified to pass the order being processed so that ultimately
"wc_get_price_excluding_tax" uses it.

This prevents the base tax location to be wrongly used instead of the
customer location when the "woocommerce_adjust_non_base_location_prices"
hook is set to return false.
2021-09-10 11:45:01 +02:00
..
abstract-wc-data.php Addressed PR review comments #27734 2020-11-10 14:23:45 +05:30
abstract-wc-deprecated-hooks.php Replaced direct access of many constants with the Constants library 2020-01-31 22:18:47 -08:00
abstract-wc-integration.php Fixed package tag usage 2020-08-05 13:36:24 -03:00
abstract-wc-log-handler.php Fixed package tag usage 2020-08-05 13:36:24 -03:00
abstract-wc-object-query.php Fixed package tag usage 2020-08-05 13:36:24 -03:00
abstract-wc-order.php Modify "wc_get_price_excluding_tax" to use order location for rates 2021-09-10 11:45:01 +02:00
abstract-wc-payment-gateway.php Return 0 if order isn't available 2021-03-09 16:57:08 -03:00
abstract-wc-payment-token.php Fix typos in docs 2021-03-05 11:19:58 +02:00
abstract-wc-privacy.php Fixed package tag usage 2020-08-05 13:36:24 -03:00
abstract-wc-product.php Implement the product attributes lookup table data creation. 2021-06-08 17:53:45 +02:00
abstract-wc-session.php Fixed package tag usage 2020-08-05 13:36:24 -03:00
abstract-wc-settings-api.php Added esc_attr to selected like before 2021-02-16 15:01:07 -03:00
abstract-wc-shipping-method.php Fixed package tag usage 2020-08-05 13:36:24 -03:00
abstract-wc-widget.php Widgets: show instance in Rest API 2021-05-31 12:20:57 +02:00
class-wc-background-process.php Fixed package tag usage 2020-08-05 13:36:24 -03:00