ECE is not displayed when woocommerce_tax_based_on option is set to 'billing', even if the ‘Enable tax rates and calculations’ option is disabled. #9785
The ECE buttons are not displayed when taxes are set to be calculated based on the billing address while taxes and calculations are disabled.
To Reproduce
Create a simple virtual product.
Visit the product page and confirm that the ECE buttons are displayed.
Navigate to WooCommerce > Settings.
Enable taxes by checking the “Enable tax rates and calculations” checkbox.
Go to WooCommerce > Settings > Tax.
Set the “Calculate tax based on” option to “Customer billing address”.
Return to the virtual product page and confirm that the ECE buttons are NOT displayed.
Go back to WooCommerce > Settings.
Uncheck the “Enable tax rates and calculations” checkbox and save.
Return to the virtual product page.
Actual behavior
The ECE buttons are not displayed
Expected behavior
ECE buttons should be displayed.
The ‘Enable tax rates and calculations’ option should take precedence over the ‘woocommerce_tax_based_on’ option. If taxes are disabled, then ‘woocommerce_tax_based_on’ should not be considered
Describe the bug
The ECE buttons are not displayed when taxes are set to be calculated based on the billing address while taxes and calculations are disabled.
To Reproduce
Actual behavior
The ECE buttons are not displayed
Expected behavior
ECE buttons should be displayed.
The ‘Enable tax rates and calculations’ option should take precedence over the ‘woocommerce_tax_based_on’ option. If taxes are disabled, then ‘woocommerce_tax_based_on’ should not be considered