Support a way to mark an order tax exempt with hook_commerce_taxjar_tax_request_alter()

Created on 29 January 2022, over 3 years ago
Updated 14 May 2025, 8 days ago

Problem/Motivation

From hook_commerce_taxjar_tax_request_alter() I don't have a clean way to have an order skip a call to TaxJar if it has been flagged as tax exempt in my system. The way I'm currently doing that is to pass a bogus 'to_country' so that it fails the tax nexus check and returns $0.

Proposed resolution

Add logic to support something like $request['tax_exempt_order'] that could be set in hook_commerce_taxjar_tax_request_alter() and would be checked at the same spot where there are nexus checks, so that one could conditionally bypass that call and get a $0 tax amount.

✨ Feature request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States cYu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024