nickroch
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Tax calculation not workingI 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.
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Tax calculation not workingthank you all so much for your time and advice. I’m throwing in the towel on this and seeking professional help.
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Tax calculation not workingwell 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…
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Tax calculation not workingyes, i changed my tax setting back to the original, per the screenshot you posted.
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Tax calculation not workingso 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).
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Tax calculation not workingHi 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?
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Tax calculation not workingOkie, so I looked at a handful of my products and confirmed they are all taxable and not on shipping or none. almost all my SKUs were created using a csv import so i’m pretty confident they are all the same, tax treatment wise.
Here the is requested screenshot: https://www.petrampvc.ca/wp-content/uploads/2019/05/pst-issue-6.png
I have tried toggling various options back and forth to see if it effects a change. the only thing that I have done that makes any difference is changing the province of my store, then woocommerce pulls the correct tax for that store. its as if its somehow stuck on “calculate tax based on base store”
I also tried enabling auto tax calculation with jetpack and woocommerce services and it does the same thing! only pulls up BC tax, regardless of what the shipping address is.
somewhere, something is causing the tax to use store province for tax, besides the obvious setting in the woocommerce tax settings page.
Any further ideas are greatly appreciated. If i am unable to solve with your advise, im not really sure what my next step would be…
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Tax calculation not workingHi Stef,
I made the change. Taxes are now rolled into the unit cost for the items and the shipping however it is still charging only the BC tax rate.
in my testing i have a user set up as having an Ontario address which should have a HST rate of 15%. it is showing a GST rate of 5% and a PST rate of 7% aka BC tax rate…
https://www.petrampvc.ca/wp-content/uploads/2019/05/pst-issue-5.png
Thanks
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Tax calculation not workingHi albertandbrown.
I originally had it set to geolocate but i thought that may be spoofing my website since my IP address is in BC… I can try setting it back and retest.
I will also try setting the shipping tax class to based on cart items. I dont have any tax classes assigned to any of my products so I dont think it make a difference but we’ll see.
Also, yes i have many shipping zones, mostly for local couriers in BC based on a collection of postal codes. i spent a LOT of time setting them up so i would really prefer not to delete them to test if that affects things, is there a way i can temporarily deactivate them?
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Tax calculation not workingHi again,
yes, everything has been set up correctly per the document.
I took a peek at the code from the woocommerce order review template. I am pretty ignorant so dont know if this is relavent but i dont see the part of the code where it checks the customers address before pulling up the rate rate… code below.
<?php if ( wc_tax_enabled() && ! WC()->cart->display_prices_including_tax() ) : ?> <?php if ( 'itemized' === get_option( 'woocommerce_tax_total_display' ) ) : ?> <?php foreach ( WC()->cart->get_tax_totals() as $code => $tax ) : ?> <tr class="tax-rate tax-rate-<?php echo sanitize_title( $code ); ?>"> <th><?php echo esc_html( $tax->label ); ?></th> <td><?php echo wp_kses_post( $tax->formatted_amount ); ?></td> </tr> <?php endforeach; ?> <?php else : ?> <tr class="tax-total"> <th><?php echo esc_html( WC()->countries->tax_or_vat() ); ?></th> <td><?php wc_cart_totals_taxes_total_html(); ?></td> </tr> <?php endif; ?> <?php endif; ?>
Thank you
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Tax calculation not workingI have retested with no success.
I tried Chrome incognito mode, firefox and internet explorer.
all have the same result, only the BC tax is pulled up….
any thoughts?
Thank you!
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Tax calculation not workingHello!
Thank you for the quick reply. I am using the same browser as the admin. I will try redoing tests in incognito mode and a different browser and report back.
Thanks
- This reply was modified 5 years, 10 months ago by nickroch.