• Resolved Scott

    (@sstracy)


    Hello WC community!

    I have products in my store that are shipped/created from different states so I cannot use the automated tax option for WC – I must use the manual tax calculations tables and they are pretty large database tables!

    I do not display or want to try and calculate product taxes until a customer gets to the cart or checkout page(s). However, WC seems to call my slow tax database tables with WC_Tax on every page load.

    I’m wondering if there is a way to disable this tax function on specific pages? I am trying to speed up my landing page and the WC_Tax function is flagged as a slow query on every single page in my store which seems very unnecessary.

    Thanks in advance for any help I can get!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support mouli a11n

    (@mouli)

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    We’ve not seen any activity on this thread for a while, so I’m marking this thread as resolved.

    Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WC_Tax queried on every page – too slow’ is closed to new replies.