• Resolved anil.n

    (@aniln)


    Hi Team,

    I have added custom tax in woocommerce and we are using ajax(jQuery(document.body).trigger(“update_checkout”)) to update the Checkout.

    On checkout page everything works well all custom taxes is displaying and calculating correctly Please see screenshot:- https://prnt.sc/kw32er

    But the problem is when I am not logged in then there is no tax is displaying. its calculating but not displaying. Please see screenshot : https://prnt.sc/kw33cc

    As I checked the in deeply then I found that this function WC()->cart->get_fees() is empty during the ajax call there is no any tax

    All problem occured after woocommerce updation with latest version. its working with when I logged in but non logged in user its not displaying.

    Hope, you understand my concern. Please advise as soon as possible.

    Thanks

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there,

    This is a fairly complex development topic. To break it down, are taxes showing correctly if you remove the custom code?

    I can also recommend the following places for more development-oriented questions:

    1. WooCommerce Slack Community: https://woocommerce.com/community-slack/
    2. Advanced WooCommerce group on Facebook: https://www.facebook.com/groups/advanced.woocommerce/
    Thread Starter anil.n

    (@aniln)

    As you can see that its working with logged in user but not working for guest user.
    If custom code have problem then it should not be worked before.
    Now the only problem is WC()->cart->get_fees() empty for guest user

    Plugin Support John Coy a11n

    (@johndcoy)

    Automattic Happiness Engineer

    Hi @aniln

    Do you have this issue after switching back to a default theme like Twenty Seventeen and disabling all plugins except for WooCommerce? If not, then re-enable each one at a time until you find the one that’s causing the conflict and then reach out the appropriate plugin or theme author.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Tax is not displaying’ is closed to new replies.