Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • RM 33 posts 95 karma points
    Mar 02, 2022 @ 22:46
    RM
    0

    Zero rated tax class still showing the default store tax class

    We have a requirement for certain products to be zero rated for VAT. Just setting this up to test, and have followed the instructions here to add a TaxClass picker to this specific product.

    Version of Vendr is older (v1.3.3) and not sure if i am missing something obvious?

    https://vendr.net/docs/core/2.1.0/umbraco-v8/key-concepts/umbraco-properties/

    The property shows up, i am able to select the zero rated Tax options, but adding to the basket it is still showing as 20% VAT:

    So here is the tax option selected (product published):

    enter image description here

    This is the Tax rules list:

    enter image description here

    This is the product after adding to the basket:

    enter image description here

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Mar 03, 2022 @ 09:10
    Matt Brailsford
    0

    Hi Roberto,

    And the alias of your tax class picker property is taxClass (exact casing)?

    Matt

  • RM 33 posts 95 karma points
    Mar 03, 2022 @ 13:07
    RM
    0

    Hey Matt,

    Yeah it is.

    enter image description here

    Could this be some sort of index issue do you think? as in the field has not been added to the index (I did publish the product I added to the cart).

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Mar 03, 2022 @ 13:52
    Matt Brailsford
    0

    Hey Roberto,

    Did you happen to add the item to the cart prior to adding the tax class? Once an item is added to the cart, it's price is frozen. Maybe try removing the item from the cart completely and re-adding it?

    Matt

  • RM 33 posts 95 karma points
    Mar 03, 2022 @ 15:37
    RM
    0

    Hi Matt,

    Could be that. will try clearing out the cache and everything and will report back.

  • RM 33 posts 95 karma points
    Mar 03, 2022 @ 21:07
    RM
    0

    Hi Matt,

    Unfortunately that hasn't worked. The VendrCheckoutMaster.cshtml file (this is an inherited project so its a little new to me) the prices are currently being served with code like this:

    orderLine.TotalPrice.Value.Formatted().WithoutTax
    

    But i guess if the price is the price without tax and the tax is 0 it should work anyway.

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Mar 04, 2022 @ 09:10
    Matt Brailsford
    0

    Hi Roberto,

    Hmm, very strange,

    The displaying of the price without tax shouldn't be a concern as like you say, this should just have a tax value of 0 so I'm not sure why it's not.

    Do you happen to have any OrderLineCalculators or custom ProductAdapter that may be ignoring the tax class maybe?

    I've looked through the changelog for Vendr and I can't see any period when the product taxClass hasn't worked 🤔

  • RM 33 posts 95 karma points
    Mar 04, 2022 @ 09:15
    RM
    0

    Hi Matt,

    I will take a look, there may be some custom code at play. will keep you up to date. Thanks for sticking with it.

  • RM 33 posts 95 karma points
    Mar 10, 2022 @ 17:49
    RM
    0

    Hi Matt,

    Just wanted to reply. There is a custom calculator in place, so will step through that and see what it is doing.

Please Sign in or register to post replies

Write your reply to:

Draft