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!

TaxTotal is ZERO

Vote:
 

Hi,

I have set up a UK TAX with a rate of 20 and then attached this Tax category to my product variants but on the Basket page my TaxTotal is always ZERO.

Is this a bug in Commerce or have I missed something?

 

Jon

#80934
Feb 05, 2014 11:39
Vote:
 

You may need to run CardValidate Workflow once.

#80946
Feb 05, 2014 15:06
Vote:
 

Hi K Khan,

WHere can I find the CardValidate Workflow?

#81157
Feb 11, 2014 9:37
Vote:
 

CartHelper.RunWorkflow("CartValidate")

Regards

/K

#81160
Feb 11, 2014 9:51
Vote:
 

The CartValidate doesn't include tax calculations. Use the CartPrepare workflow if you want to calculate taxes on a cart. The code for that could be:

CartHelper.RunWorkflow("CartPrepare")

or

Cart.RunWorkflow(OrderGroupWorkflowManager.CartPrepareWorkflowName)

The OrderGroupWorkflowManager contains static string variables for each of the three workflows used for carts out of the box.

Here's more documentation on the workflows to better understand them:

http://world.episerver.com/Documentation/Items/Developers-Guide/EPiServer-Commerce1/751/Workflows/Workflows/

 

#82101
Mar 05, 2014 14:10
Vote:
 

The other thing to remember is that Tax calculations can only ever calculate a non-zero tax value for Line Items that

  • have a Shipping Address attached to them
  • have a valid Tax category associated
  • the tax category has rates associated for the jurisdiction of the Shipping Address
  • and the rates are non-zero.
#82223
Mar 07, 2014 15:49
* 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.