Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Taxes on Checkout Page #62

Open
avidsapp opened this issue Mar 1, 2021 · 3 comments
Open

Taxes on Checkout Page #62

avidsapp opened this issue Mar 1, 2021 · 3 comments

Comments

@avidsapp
Copy link

avidsapp commented Mar 1, 2021

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?

@chriswolmarans
Copy link
Contributor

chriswolmarans commented Mar 23, 2021

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

@avidsapp
Copy link
Author

avidsapp commented Mar 23, 2021

@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.

@chriswolmarans
Copy link
Contributor

@avidsapp you're very welcome, will do indeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants