I want to be able to check a variable that I have set in a users session, and based on that make the users cart tax exempt. How can I do this?
I think that messing around with the customer type is going to be too complicated. Is there another way to vary the tax that is applied? Or away to change the customer group on the fly.
I’ve done something very similar to this, I’ve overridden app/code/core/Mage/Tax/Model/Calculation.php as app/code/local/Mage/Tax/Model/Calculation.php and added the statement shown below the comment to set tax rate to 0 based on a session value. This is calculated on the fly at checkout.