Help with Vendr shop tax percentages
i
Hi all, we have an site we inherited from another company that uses Vendr on Umbraco 8. We had this site for a while but left Vendr alone. Now they want us to make it so that they can choose a tax percentage per product. In house we have basically no knowledge of Vendr and how it works under the hood. Can somebody give us some clues? The docs are really not helping me so far. Thanks in advance!
We are on vendr 1.7.3 by the way.
Anybody who has knowledge of this? Im completely in the dark how to implement this. Also can't figure out from the docs what the diference between a Tax Class and Tax Rate is
s
From memory you just add the Tax Class to the product doc type. if you have any custom models that get the product then just calculate the price using htis tax class
I can't quite remember how I set all this up but I have a products service that "gets" all the products and adds more content and stuff in a view model.
Copy code
` PriceFormatted = x.Price.GetPriceFor(currencyId).Value.ToCurrency(), 
PriceWithTax = x.Price.GetPriceFor(currencyId).Value * ((curProductNode.TaxClass?.DefaultTaxRate ?? 0) + 1),
PriceWithTaxFormatted = (x.Price.GetPriceFor(currencyId).Value * ((curProductNode.TaxClass?.DefaultTaxRate ?? 0) + 1)).ToCurrency(),
They have zero rated vat items and some at 20%.
You may have to create a custom shipping calculator if the vat rate affects shipping costs.
If you've inheritted a site though I'd probably start by just building a vanilla test shop yourself to familiarise yourself with Vendr. Picking someone else's insanity up is never good - always handy to know exactly what they "should" have done before you try to change what they "did" do
i
Thanks!
I'll see if I've got time to set up a Vendr site, preferably in the same version this site uses.
We only got 8 hours to work on the feature so it's gonna be tight. But this will help!
@SiempreSteve Currently working on this and noticed something. I have a base composition for all products which have a price and SKU, I added the store entity picker for Tax class. But in the order controller I don't really see it reflected. The orderreadonly also has a taxclass, how does this differ from the one I added to the product?
Documentation is really lacking in my opinion
I currently set the order.SetTaxClass(), but it doesnt affect the order.TaxRate, really puzzling.
Pinging @Matt Brailsford