Taxes on Checkout Page
avidsapp opened this issue · 3 comments
The taxes don't show on the checkout page, however they are added to the total when checking out via PayPal. I realize this is because the tax is calculated after the shipping/billing address is entered, but this should be done after leaving the zip code form field and displayed on your-order.js
. How can we add the taxes to checkout?
Hey @avidsapp have you had any luck solving this? It looks like you may be able to write query for taxRates
using postCode
as argument: wp-graphql/wp-graphql-woocommerce#231
I tried this on WP GraphiQL playground, I haven't managed to get it working with postCode
yet but something like:
{
taxRates(where: {class: STANDARD}) {
nodes {
order
name
class
country
databaseId
id
city
}
}
}
Here's another possible avenue but haven't looked into it yet: https://github.com/wp-graphql/wp-graphql-tax-query
@chriswolmarans Thanks for finding this. It looks like the PR was merged, so I'll try to implement and report back if I get it working. Let me know if you beat me to it.
@avidsapp you're very welcome, will do indeed.