Magento – Change customer tax class id dynamically to affect existing order

Is it possible to dynamically update the customer_tax_class_id attribute of an oder being processed – for guest customers.

I have tried setting it via the checkout/session model but it will not update.

The goal is to reset the tax amount based upon a condition to 0. Using the tax_class_id which will have a rule of 0 tax.

One thought on “Magento – Change customer tax class id dynamically to affect existing order”

  1. You should do this before the order is submitted, so that the user pays the correct amount the first time (and has no surprises). Is there a reason that you cannot determine the tax_class in advance?

Leave a Reply

Your email address will not be published. Required fields are marked *