craftcms/commerce-taxjar

Product tax category changes should invalidate the order tax data cache

Closed this issue · 0 comments

Description

If a product's tax category changes, it should likely invalidate the order tax data cache.

This would simply involve changing:

$lineItems = $count . ':' . $item->getOptionsSignature() . ':' . $item->qty . ':' . $item->getSubtotal();

to

$lineItems = $count . ':' . $item->getOptionsSignature() . ':' . $item->qty . ':' . $item->getSubtotal() . ':' . $item->taxCategoryId;