I'm switching over to Avatax from now-defunct Exactor and trying to figure out how to use it to accommodate the following scenario:

Our store has physical products, for which shipping address is obviously the best candidate for calculation basis.

However, we also have memberships / non-shippable products that we need to collect tax on, and we aren't collecting a shipping address for these orders. With Exactor, the rules configuration allowed you to pass in the address profile on a per-config basis (so we could have a rule in place that would calculate based on billing address if there was no shipping), but the address decision is being made higher up the chain with Avatax.

Is there a way to do this out of the box? Do I need to create a custom rule reaction or modify the lookup via the create_transaction_alter hook?

Comments

matthensley created an issue. See original summary.

jsacksick’s picture

Status: Active » Fixed

Hi, I tried to skip using Rules wherever possible for various reasons, so currently the only way for you to do this would be to implement the hook_commerce_avatax_create_transaction_alter(&$request_body, $order).

From there, you could easily alter $request_body['addresses']['shipTo'] with the billing profile information instead.

Please let me know if that helps!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.