Open mdmoore opened 3 years ago
I thought this might be intended behaviour, but the fact the tax is calculated at the checkout (before the shopper has entered a location) suggests there might be something missing from the product page?
Tax isn't calculated if the tax settings are set to just use the store's location either.
I'm able to see that no tax is shown, but it's re-calculated before the payment is made. I'm not able to check out without the tax. I changed the label to enhancement instead.
If it's possible to pay for the order without tax, let me know.
The reason this happens is because we don't get the cart tax totals when using get_product_data()
in scripts()
.
In some cases the tax depends on the address of the customer, so it's not always possible to set it correctly. But when it is, we could get the tax amount using WC()->cart->tax_total
, similar to what we do in build_display_items()
.
Really not sure if this may help, but at least one forum user is seeing very similar behavior in Square with Avatax enabled - tax is not displayed in Google/Apple pay, but it is charged: https://wordpress.org/support/topic/avatax-not-displaying-tax-for-apple-google-pay/
Here are their Tax settings: https://snipboard.io/ilAneE.jpg
I was able to confirm this is still an issue, especially for digital products. The same problem with GooglePay persists for ApplePay as well.
5505604-zen, especially digital products.
Having the same issue here in Quebec Canada (2 taxes: GST and QST) for Apple Pay and Google Pay.
The issue still exists for me in Quebec.
7681992-zen
Describe the bug On the product page, if you open Google Pay, no tax is shown. However, if you first add the product to the cart, then use Google Pay, tax is charged correctly in the popup. Not sure why it works that way? Changing the default customer location doesn't seem to matter.
To Reproduce Steps to reproduce the behavior:
Expected behavior Tax should be charged when using Google Pay to purchase products on the product page.
Environment (please complete the following information):
3564115-zen