London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Tax for a Particular Catagory or Catalog

Vote:
 

Hi,

I am trying to create Tax for a particular catalog in Episerver commerce.Is possible to create Tax for a particular catalog or catagory?

Thanks in advance.

#193780
Jun 05, 2018 9:25
Vote:
 

No, it is not, at least not out of the box. Tax is per SKU, so technically you can have all SKUs in a category or catalog to have same tax category, but there is no way to enforce that.

#193782
Jun 05, 2018 9:34
Vote:
 

Thanks for your reply.How can I apply tax for different countries(which has diffrent Tax) with same SKUs.

For Example,

In my site,I have dealer from different countries.I need to apply different tax value for same SKU.

#193788
Edited, Jun 05, 2018 10:19
Vote:
 

For each tax category you can define multiple tax jurisdictions for multiple address. So it's not really limited to a specific market 

#193789
Jun 05, 2018 10:40
Vote:
 

Thanks.I tried to create Tax for different countries.But retrieving tax value using address returns null.How can I achieve this..

TaxValue[] taxess = OrderContext.Current.GetTaxes(gid, taxCategory, market.DefaultLanguage.Name, "USA", "AL", "35006", string.Empty, "United States", "Adger");   ////it returns null value.


var taxes = TaxManager.GetTax(variationRows[0].TaxCategoryId); ///this code works for me...but I have different counties.but its retrieve default country value
#193839
Edited, Jun 05, 2018 18:12
Vote:
 
TaxValue[] taxess = OrderContext.Current.GetTaxes(gid, taxCategory, market.DefaultLanguage.Name, "USA", "AL", "35006", string.Empty, "United States", "Adger");   ////it returns null value.

Are you sure that there is a tax defined for this exact address? Can you try with a less specific one? 

And I think you need full name for the state - I'm not so sure ...

#193841
Jun 05, 2018 19:12
Vote:
 

Yes, I use Same Address.But It doesn't work.Is there any Configuration problem ?(web.config)

#193854
Jun 06, 2018 9:07
Vote:
 

There's no configuration in web.config affect tax settings.

Can you try with a simpler tax define? For example, just match country = 'USA'.

#193860
Jun 06, 2018 12:18
Vote:
 

I tried.It does not working..

TaxValue[] taxess = OrderContext.Current.GetTaxes(contactId, taxCategory, market.DefaultLanguage.Name, "USA", string.Empty, string.Empty, string.Empty, "", string.Empty);


var testtax = TaxManager.GetTaxes(contactId, taxCategory, market.DefaultLanguage.Name, "USA", "", "", string.Empty, "", "");

////both yields no results
#193861
Jun 06, 2018 12:57
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.