Skip to content

Transients Cache doesn't update upon user_exemption_type update. #243

Description

@ghost-writer-727

If a user builds a cart while is Non Exempt then realizes they should be exempt and calls my company to have it fixed, we can change them to a valid exempt type ('other'). However, the cart remains taxed as long as the address, products and quantities remain the same.

We have tried updating the quantities and then putting them back. We have tried clearing the cart, all cookies and all browser cache, then logging back in and when any previous combination of address, products and quanities return the previous tax calculation is also returned.

I believe the cleanest solution would be to include the user's tax status in the $request_body property of the Tax_Calculator class. This way when when the transient key is set, it is unique based on whether or not the user is exempt or not.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions