WooCommerce Code Reference

TaxBasedOn
in package

Enum class for the possible values of the `woocommerce_tax_based_on` option, which determines which address is used to calculate tax.

Tags
since
10.8.0

Table of Contents

BASE  = 'base'
Tax is calculated based on the shop's base address.
BILLING  = 'billing'
Tax is calculated based on the customer's billing address.
SHIPPING  = 'shipping'
Tax is calculated based on the customer's shipping address.

Constants

BILLING

Tax is calculated based on the customer's billing address.

public string BILLING = 'billing'

SHIPPING

Tax is calculated based on the customer's shipping address.

public string SHIPPING = 'shipping'