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?
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?
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.
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):
This is the Tax rules list:
This is the product after adding to the basket:
Hi Roberto,
And the alias of your tax class picker property is
taxClass
(exact casing)?Matt
Hey Matt,
Yeah it is.
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).
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
Hi Matt,
Could be that. will try clearing out the cache and everything and will report back.
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:
But i guess if the price is the price without tax and the tax is 0 it should work anyway.
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 customProductAdapter
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 🤔
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.
Hi Matt,
Just wanted to reply. There is a custom calculator in place, so will step through that and see what it is doing.
is working on a reply...