• Resolved nickroch

    (@nickroch)


    Hello,

    First, I want to point out that I am new to wordpress and website development in general so please forgive my ignorance.

    My issue is with Woocommerce tax calculation not pulling up the correct tax rate for a given customer shipping location.

    I am located in BC Canada. In Canada we have both federal tax (GST) and a provincial tax (PST). Some provinces also have a combined tax called HST. Since each province has a different resultant tax rate, i want the taxes to be based on each customers shipping address.

    I have configured woocommerce to charge tax based on customers shipping address (set in the woocommerce tax settings page). I have also manually created the tax rates for each province (set in the standard rates page).

    Woocommerce seems to be only pulling BC tax rates (my shop home location) regardless of the customers shipping address. I have tested this by creating users with different shipping addresses in other provinces but to no avail, woocommerce only pulls the BC tax rate. when i inspect the elements in the order review page it says its the BC tax rate. if i change the BC tax rate, the amounts are updated accordingly.

    When I change my shop address to a different province, woocommerce does pull the correct tax rate for that province but again it is unaffected by the customer’s shipping address.

    I have tried changing the “default customer location” to see if this helps but affects no change to the tax amounts. I have also tried changing tax calculations based on customer billing address with no change.

    I have also tried disabling all plugins except woocommerce but the issue still occurs.

    my woocommerce is up to date (V3.6.2) and i have disabled all plugins that might be affecting taxes like woocommerce services and woocommerce booster.

    Any advise would be greatly appreciated. i have pent the last 3 days trying to solve this without sucess.

    links to screenshots showing the issue and my settings.

    https://www.petrampvc.ca/wp-content/uploads/2019/05/pst-issue-1.png
    https://www.petrampvc.ca/wp-content/uploads/2019/05/pst-issue-2.png
    https://www.petrampvc.ca/wp-content/uploads/2019/05/pst-issue-3.png
    https://www.petrampvc.ca/wp-content/uploads/2019/05/pst-issue-4.png

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 14 replies - 16 through 29 (of 29 total)
  • Thread Starter nickroch

    (@nickroch)

    Hi Stef, Thank you for your contuned effort to help me find a solution, i really appreciate it.

    To confirm:
    That means for each tax rate i need to add every single postal code in that province? in the woocommerce documentation, it says that if you leave empty it will apply that tax bracket to the whole province???

    ZIP/Postcode – Enter postcodes for the rate. You may separate multiple values with a semi-colon (;), use wildcards to match several postcodes (e.g. PE* would match all postcodes starting with PE), and use numeric ranges (e.g. 2000…3000). Leave blank (*) to apply to all postcodes.

    in any rate, i will try a couple test postal codes out to see if that works.

    Also, when calculating the tax for a given shipping address, does woocommerce only look at the province selected or also the postal code?

    I would only test this theory. Use the postal codes that you were using to test for each province state. Try that first. If that works that’s your solution eight there. It’s the only thing I can see that’s off.

    Thread Starter nickroch

    (@nickroch)

    so trying different postal codes for each tax rate didn’t affect much of a change…

    If i set a BC tax with a postal code that matches my base shop postal code, it shows up, regardless of the customers shipping address.

    If i set a BC tax with another postal code, it still bring up the tax that corresponds to my base shop postal code. again, regardless of the customers shipping address.

    I was thinking of reinstalling woocommerce but it crashed my site and locked me out of my admin panel when i disabled woocommerce plugin and I had to re-enable the plugin manually (PHPmyadmin).

    Did you change your initial settings back though too? You’ll have to change those.

    Thread Starter nickroch

    (@nickroch)

    yes, i changed my tax setting back to the original, per the screenshot you posted.

    Hmmm. And we’ve tried a default theme switch?

    Thread Starter nickroch

    (@nickroch)

    well something new is now happening…

    I switched to the twenty nineteen theme.

    Then I switched my store base to Ontario province.

    Then when i set the customer province to BC, it woks correctly – checkout shows BC tax rate. All other provinces default to the Ontario tax rate… aka base store rate.

    for the life of me i don’t know why BC works and the others don’t…

    There might be something in your theme that’s not in the default WP themes. It could be a number of things from JS to a code snippet the dev/author added. You never know.

    I should add that we use the StoreFront theme.

    Thread Starter nickroch

    (@nickroch)

    thank you all so much for your time and advice. I’m throwing in the towel on this and seeking professional help.

    Good Luck. Let us know what if any it was. Sorry we couldn’t get this figured out.

    Thread Starter nickroch

    (@nickroch)

    I though I would come back and explain how I finally solved this issue.

    Throughout all my testing I ignored the shipping method selected as I assumed it had nothing to do with my tax calculation. However I discovered that by default I was selecting the “local pick up” option. In the shipping methods setting pages it mentions that when selecting local pick up option it forces the base shop address for the taxes. Therefore, even if I changed the customers shipping address, since I had selected local pick up, it forced my shops address for the purposes of calculating tax.

    BTW, I was using local pick up option as I had relabeled it “use your preferred carrier” to allow customers to ship on their own couriers account (I sell mostly to business and corporate customers). Instead I removed that option and used flat rate shipping, non taxable basis and a fee of $0 to achieve the same effect.

    Glad you were able to track the issue down. Way to go!

Viewing 14 replies - 16 through 29 (of 29 total)
  • The topic ‘Woocommerce Tax calculation not working’ is closed to new replies.