• Resolved drofwarc2

    (@drofwarc2)


    Hi,

    I’m having a problem with taxes not being applied to purchases. It’s a head-scratcher because the problem seems to be intermittent.

    The website is Canadian based and does business in every province and territory. It has had WooCommerce installed for several years, and the taxes have always been added to purchases correctly.

    However, on March 10, a purchase was made by a customer on the site and the tax was not applied. Prior to this purchase, no changes had been made to the WooCommerce plugin settings that I’m aware of.

    Subsequently, several more purchases were made on the site by customers, the most recent on March 29, and each time, the tax was not recorded.

    I said the problem is a head-scratcher and seems to be intermittent. That’s because I have made about a dozen test purchases (real purchases done for testing purposes) on the site since March 10, and each time the tax WAS recorded correctly.

    When making these test purchases, I have been both logged in and logged out of the webiste, I’ve made them from different browsers, and I’ve had an associate who lives in a different city make several test purchases while logged out. For every one of these test purchases, WooCommerce applied the tax correctly.

    Can you give me any insight into what could be causing this problem?

    Here is my system status report:

    
    ### WordPress Environment ###
    
    Home URL: https://www.fanshoppe.com
    Site URL: https://www.fanshoppe.com
    WC Version: 3.5.2
    Log Directory Writable: ?
    WP Version: 5.1.1
    WP Multisite: –
    WP Memory Limit: 1 GB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.1.14 - We recommend using PHP version 7.2 or above for greater performance and security. How to update your PHP version
    PHP Post Max Size: 64 MB
    PHP Time Limit: 6000
    PHP Max Input Vars: 1000
    cURL Version: 7.19.7
    NSS/3.27.1
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.41-84.1
    Max Upload Size: 64 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 3.5.2
    WC Database Prefix: n4s_
    MaxMind GeoIP Database: ?
    Total Database Size: 100.33MB
    Database Data Size: 87.05MB
    Database Index Size: 13.28MB
    n4s_woocommerce_sessions: Data: 12.03MB + Index: 0.32MB
    n4s_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB
    n4s_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.01MB
    n4s_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB
    n4s_woocommerce_order_items: Data: 0.10MB + Index: 0.06MB
    n4s_woocommerce_order_itemmeta: Data: 0.59MB + Index: 0.46MB
    n4s_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB
    n4s_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB
    n4s_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB
    n4s_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB
    n4s_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB
    n4s_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB
    n4s_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB
    n4s_woocommerce_log: Data: 0.00MB + Index: 0.00MB
    mdf_query_cache: Data: 0.00MB + Index: 0.00MB
    n4s_bp_activity: Data: 0.00MB + Index: 0.01MB
    n4s_bp_activity_meta: Data: 0.00MB + Index: 0.00MB
    n4s_bp_notifications: Data: 0.00MB + Index: 0.00MB
    n4s_bp_notifications_meta: Data: 0.00MB + Index: 0.00MB
    n4s_bp_xprofile_data: Data: 0.00MB + Index: 0.00MB
    n4s_bp_xprofile_fields: Data: 0.00MB + Index: 0.01MB
    n4s_bp_xprofile_groups: Data: 0.00MB + Index: 0.00MB
    n4s_bp_xprofile_meta: Data: 0.00MB + Index: 0.00MB
    n4s_commentmeta: Data: 0.11MB + Index: 0.08MB
    n4s_comments: Data: 0.45MB + Index: 0.17MB
    n4s_eum_logs: Data: 0.00MB + Index: 0.00MB
    n4s_failed_jobs: Data: 0.00MB + Index: 0.00MB
    n4s_gallery_bank: Data: 0.02MB + Index: 0.00MB
    n4s_gallery_bank_meta: Data: 0.39MB + Index: 0.00MB
    n4s_inbound_events: Data: 0.01MB + Index: 0.00MB
    n4s_inbound_page_views: Data: 0.00MB + Index: 0.00MB
    n4s_inbound_tracked_links: Data: 0.00MB + Index: 0.00MB
    n4s_links: Data: 0.00MB + Index: 0.00MB
    n4s_mailchimp_carts: Data: 0.00MB + Index: 0.00MB
    n4s_ngg_album: Data: 0.00MB + Index: 0.00MB
    n4s_ngg_gallery: Data: 0.00MB + Index: 0.00MB
    n4s_ngg_pictures: Data: 0.00MB + Index: 0.00MB
    n4s_options: Data: 11.60MB + Index: 1.15MB
    n4s_postmeta: Data: 16.40MB + Index: 5.03MB
    n4s_posts: Data: 24.48MB + Index: 0.59MB
    n4s_queue: Data: 0.00MB + Index: 0.00MB
    n4s_rg_form: Data: 0.00MB + Index: 0.00MB
    n4s_rg_form_meta: Data: 0.01MB + Index: 0.00MB
    n4s_rg_form_view: Data: 0.71MB + Index: 0.26MB
    n4s_rg_incomplete_submissions: Data: 0.00MB + Index: 0.00MB
    n4s_rg_lead: Data: 0.12MB + Index: 0.02MB
    n4s_rg_lead_detail: Data: 0.19MB + Index: 0.13MB
    n4s_rg_lead_detail_long: Data: 0.15MB + Index: 0.01MB
    n4s_rg_lead_meta: Data: 0.00MB + Index: 0.01MB
    n4s_rg_lead_notes: Data: 0.00MB + Index: 0.00MB
    n4s_signups: Data: 0.00MB + Index: 0.00MB
    n4s_social_users: Data: 0.00MB + Index: 0.00MB
    n4s_tcb_api_error_log: Data: 0.00MB + Index: 0.00MB
    n4s_termmeta: Data: 0.14MB + Index: 0.11MB
    n4s_terms: Data: 0.15MB + Index: 0.31MB
    n4s_term_relationships: Data: 0.55MB + Index: 1.20MB
    n4s_term_taxonomy: Data: 0.10MB + Index: 0.16MB
    n4s_tve_leads_contacts: Data: 0.00MB + Index: 0.00MB
    n4s_tve_leads_contact_download: Data: 0.00MB + Index: 0.00MB
    n4s_tve_leads_event_log: Data: 0.09MB + Index: 0.11MB
    n4s_tve_leads_form_variations: Data: 0.08MB + Index: 0.01MB
    n4s_tve_leads_group_options: Data: 0.00MB + Index: 0.00MB
    n4s_tve_leads_saved_group_options: Data: 0.00MB + Index: 0.00MB
    n4s_tve_leads_split_test: Data: 0.00MB + Index: 0.00MB
    n4s_tve_leads_split_test_items: Data: 0.00MB + Index: 0.00MB
    n4s_usermeta: Data: 0.46MB + Index: 0.29MB
    n4s_users: Data: 0.02MB + Index: 0.04MB
    n4s_wc_download_log: Data: 0.00MB + Index: 0.00MB
    n4s_wc_webhooks: Data: 0.00MB + Index: 0.00MB
    n4s_wfBadLeechers: Data: 0.00MB + Index: 0.00MB
    n4s_wfBlockedCommentLog: Data: 0.00MB + Index: 0.00MB
    n4s_wfBlockedIPLog: Data: 0.00MB + Index: 0.00MB
    n4s_wfBlocks: Data: 0.00MB + Index: 0.00MB
    n4s_wfBlocks7: Data: 0.00MB + Index: 0.00MB
    n4s_wfBlocksAdv: Data: 0.00MB + Index: 0.00MB
    n4s_wfConfig: Data: 1.74MB + Index: 0.01MB
    n4s_wfCrawlers: Data: 0.01MB + Index: 0.00MB
    n4s_wfFileChanges: Data: 0.00MB + Index: 0.00MB
    n4s_wfFileMods: Data: 2.41MB + Index: 0.48MB
    n4s_wfHits: Data: 3.28MB + Index: 0.93MB
    n4s_wfHoover: Data: 8.89MB + Index: 0.86MB
    n4s_wfIssues: Data: 0.00MB + Index: 0.01MB
    n4s_wfKnownFileList: Data: 1.28MB + Index: 0.15MB
    n4s_wfLeechers: Data: 0.06MB + Index: 0.10MB
    n4s_wfLiveTrafficHuman: Data: 0.01MB + Index: 0.01MB
    n4s_wfLockedOut: Data: 0.00MB + Index: 0.00MB
    n4s_wfLocs: Data: 0.00MB + Index: 0.00MB
    n4s_wfLogins: Data: 0.16MB + Index: 0.04MB
    n4s_wfNet404s: Data: 0.00MB + Index: 0.00MB
    n4s_wfNotifications: Data: 0.03MB + Index: 0.00MB
    n4s_wfPendingIssues: Data: 0.00MB + Index: 0.00MB
    n4s_wfReverseCache: Data: 0.00MB + Index: 0.00MB
    n4s_wfScanners: Data: 0.00MB + Index: 0.01MB
    n4s_wfSNIPCache: Data: 0.00MB + Index: 0.00MB
    n4s_wfStatus: Data: 0.13MB + Index: 0.06MB
    n4s_wfThrottleLog: Data: 0.00MB + Index: 0.00MB
    n4s_wfTrafficRates: Data: 0.00MB + Index: 0.00MB
    n4s_wfVulnScanners: Data: 0.00MB + Index: 0.00MB
    n4s_yith_wcwl: Data: 0.00MB + Index: 0.00MB
    n4s_yith_wcwl_lists: Data: 0.00MB + Index: 0.01MB
    n4s_yoast_seo_links: Data: 0.07MB + Index: 0.01MB
    n4s_yoast_seo_meta: Data: 0.03MB + Index: 0.04MB
    woof_query_cache: Data: 0.00MB + Index: 0.00MB
    wp_woo_debug: Data: 0.00MB + Index: 0.00MB
    
    ### Post Type Counts ###
    
    advgb_profiles: 1
    attachment: 2161
    blocks: 2
    bp-email: 15
    custom_css: 1
    customize_changeset: 4
    display_type: 7
    feedback: 71
    inbound-forms: 2
    jetpack_migration: 2
    jp_img_sitemap: 6
    jp_img_sitemap_index: 3
    jp_sitemap: 3
    jp_sitemap_master: 3
    landing-page: 1
    ml-slide: 7
    ml-slider: 2
    n4s_faq: 1
    nav_menu_item: 45
    nivoslider: 1
    page: 38
    post: 6
    product: 1331
    product_variation: 235
    revision: 885
    shop_coupon: 2
    shop_order: 764
    shop_order_refund: 23
    slide: 5
    tcb_lightbox: 1
    tve_form_type: 4
    tve_lead_group: 4
    tve_lead_shortcode: 2
    wooframework: 281
    wp_block: 1
    wp-call-to-action: 1
    wp-lead: 1
    wpcf7_contact_form: 1
    yith-wcbm-badge: 11
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (18) ###
    
    Akismet Anti-Spam: by Automattic – 4.1.1
    Gallery Bank - Photo Gallery - Image Gallery - Photo Albums - WordPress Gallery Plugin: by Tech Banker – 4.0.43
    Google Analytics for WordPress by MonsterInsights: by MonsterInsights – 7.4.2
    Insert Headers and Footers: by WPBeginner – 1.4.3
    Jetpack by WordPress.com: by Automattic – 7.1.1
    Perfect WooCommerce Brands: by Alberto de Vera Sevilla – 1.7.1
    Really Simple SSL: by Rogier Lankhorst
    Mark Wolters – 3.1.5
    
    Easy Updates Manager: by Easy Updates Manager Team – 8.0.3
    Thrive Leads: by <a href="https://thrivethemes.com">Thrive Themes</a> – 2.1.5
    Thrive Product Manager: by Thrive Themes – 1.2.1
    Thrive Architect: by <a href="https://www.thrivethemes.com">Thrive Themes</a> – 2.1.12
    UpdraftPlus - Backup/Restore: by UpdraftPlus.Com
    DavidAnderson – 1.16.9
    
    WooCommerce Google Ads Conversion Tracking: by Wolf+B?r Agency – 1.4.17
    WooCommerce: by Automattic – 3.5.2
    WooSidebars: by WooCommerce – 1.4.5
    Wordfence Security: by Wordfence – 7.2.3
    Yoast SEO: by Team Yoast – 10.0.1
    YITH WooCommerce Badge Management Premium: by YITH – 1.3.19
    
    ### Settings ###
    
    API Enabled: ?
    Force SSL: –
    Currency: CAD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    ### WC Pages ###
    
    Shop base: #4 - /shop/
    Cart: #5 - /cart/
    Checkout: #6 - /checkout/
    My account: #8 - /my-account/
    Terms and conditions: ? Page not set
    
    ### Theme ###
    
    Name: Flatsome Child
    Version: 3.0
    Author URL: 
    Child Theme: ?
    Parent Theme Name: Flatsome
    Parent Theme Version: 3.8.1
    Parent Theme Author URL: https://www.uxthemes.com/
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: flatsome/woocommerce/archive-product.php
    flatsome/woocommerce/cart/cart-empty.php
    flatsome/woocommerce/cart/cart-shipping.php
    flatsome/woocommerce/cart/cart.php
    flatsome/woocommerce/checkout/form-checkout.php
    flatsome/woocommerce/checkout/form-coupon.php
    flatsome/woocommerce/checkout/thankyou.php
    flatsome/woocommerce/content-product.php
    flatsome/woocommerce/content-product_cat.php
    flatsome/woocommerce/content-single-product.php
    flatsome/woocommerce/content-widget-product.php
    flatsome/woocommerce/global/breadcrumb.php
    flatsome/woocommerce/global/quantity-input.php
    flatsome/woocommerce/global/wrapper-end.php
    flatsome/woocommerce/global/wrapper-start.php
    flatsome/woocommerce/loop/loop-end.php
    flatsome/woocommerce/loop/loop-start.php
    flatsome/woocommerce/loop/pagination.php
    flatsome/woocommerce/loop/result-count.php
    flatsome/woocommerce/loop/sale-flash.php
    flatsome/woocommerce/myaccount/form-login.php
    flatsome/woocommerce/myaccount/navigation.php
    flatsome/woocommerce/notices/error.php
    flatsome/woocommerce/notices/notice.php
    flatsome/woocommerce/notices/success.php
    flatsome/woocommerce/product-searchform.php
    flatsome/woocommerce/single-product/photoswipe.php
    flatsome/woocommerce/single-product/price.php
    flatsome/woocommerce/single-product/product-image.php
    flatsome/woocommerce/single-product/product-thumbnails.php
    flatsome/woocommerce/single-product/rating.php
    flatsome/woocommerce/single-product/related.php
    flatsome/woocommerce/single-product/review.php
    flatsome/woocommerce/single-product/sale-flash.php
    flatsome/woocommerce/single-product/share.php
    flatsome/woocommerce/single-product/short-description.php
    flatsome/woocommerce/single-product/tabs/tabs.php
    flatsome/woocommerce/single-product/title.php
    flatsome/woocommerce/single-product/up-sells.php
    flatsome/woocommerce/single-product-reviews.php
    flatsome/woocommerce/single-product.php
    
    

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter drofwarc2

    (@drofwarc2)

    Hi,

    This problem is urgent. Since I submitted this ticket 11 days ago, two more orders have come in. On one, tax was charged, and on the other, it was not.

    I’m really hoping that someone could provide me with some assistance.

    Patrick

    Plugin Support stephjacq a11n

    (@stephjacq)

    Automattic Happiness Engineer

    Hi Patrick, sorry to hear about the trouble! To clarify, you’re unable to reproduce this, and the issue appears intermittent.

    Have you been able to identify any common element between the affected orders? For example, a specific product or particular province that’s affected?

    Are you using automated taxes or have you entered the rates manually?

    You can enable debug for the automated rates at WooCommerce > Status > WooCommerce Services. There you’ll also find logs which may help understand what’s happening there.

    Thread Starter drofwarc2

    (@drofwarc2)

    Hi,

    Thanks for the reply. This problem was resolved after I opened a ticket with the WooCommerce help desk. Following much plugin conflict testing and back-and-forthing with the help desk, I stumbled across the specific point at which some purchases were being made without triggering the tax to be added to the order. The help desk then provide me with a temporary solution, and I’m told there will be permanent fix included in WooCommerce 3.6.0.

    (Please note there were no plugin or theme conflicts at fault here. I was able to replicate the problem with only WooCommerce activated and using the Twenty Seventeen theme.)

    Below is an explanation of the issue. Apologies in advance for the length, but there’s a lot to tell.

    The problem was associated with the “Province” field found under “Billing Details” on the Checkout page (the store sells only in Canada). When a new user arrived on the Checkout page, the Province field did not display a dropdown menu allowing the user to select their province. Instead, the field was a regular text field that you could type in.

    This is the point when the potential arose for the tax to not get added to the order: If the user typed in the province’s short-form name (for example, ON is the short-form you would type for Ontario), the tax got added to the order.

    However, if the user typed in the name of their province in full, the tax did not get added to the order.

    Why it was so hard to troubleshoot

    If the user left the page before completing the order and then returned, or if the user refreshed the page, the Province field would change from a writable field to a field with a dropdown menu. Now the user could no longer type directly into the field. This meant there was no opportunity for them to type in the full name of the province. Instead, in order to complete the Province field, they were forced to first click on the dropdown menu.

    After clicking on the dropdown, the user has two options: either click on the name of their province or start typing the name of their province into the search field. Whichever option they chose, they would be successful in getting the name of the province to display in the field. And once this occurred (and if they had already filled out the other required fields), the tax would get added to the order.

    So you see, the problem only occurred if A) the purchaser was a new visitor to the Checkout page AND if B) they decided to type the name of their province in full, rather than type the short-form name.

    The help desk then traced the issue to the “Default customer location” setting on the main settings page. My Default customer location was set to “Geolocate.” I was asked to change the setting to “No location by default” – and that fixed it!

    Thank you WooCommerce help desk!

    As I wrote earlier, I was told by the help desk that a software fix that is to be included in WooCommerce 3.6.0. I expect this will correct the Geolocate glitch. However, our store doesn’t need the geolocate feature, so we’re fine with using the Default customer location setting.

    I must say that I’m curious why there haven’t been any other complaints about this issue here in the forum (at least none I’ve seen). In any case, if someone else does encounter the problem, they’ll hopefully stumble across this post before pulling out too many hairs.

    Regards,
    Patrick

    @drofwarc2 We’ve been having the same intermittent issues with 2 of our client sites as well – both Canadian sites.

    We were advised to switch settings to “No location by default” and thought the issue was resolved. Sadly, it’s cropped up again on these sites (we’re still pulling our hair out) and the issue has now been escalated to Woo help desk for resolution.

    Thread Starter drofwarc2

    (@drofwarc2)

    @sgauder I’m sorry to hear you’re having the same problem – and that it hasn’t been resolved by switching your settings to “No location by default.” That’s not good news, but this solution is still working so far on our site. I’ll pop back in with an update if anything changes. Good luck!

    Bonjour,
    We just started a new business selling shoes online in Canada and we got the same issue. We are running Woocommerce 3.5.8. I changed the setting to “No location by default”. Hopefully the problem is fixed now. I will update if it occurs again.

    Regards,
    Alain

    Thread Starter drofwarc2

    (@drofwarc2)

    Hi all,

    I can report that, after updating my WooCommerce plugin from 3.5.8 to 3.6.2 (I missed the updates in between), this issue is now resolved. I ran a test in which I changed my “Default customer location” setting from “No location by default” to “Geolocate,” cleared my cache and did a test purchase. The Province field displays correctly as a dropdown menu, not as a text field.

    Here’s hoping it’s gone for good.

    Kind Regards,
    Patrick

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Problem with tax not being applied’ is closed to new replies.