craftcms / commerce-taxjar

TaxJar integration for Craft Commerce.
https://plugins.craftcms.com/commerce-taxjar
MIT License
2 stars 7 forks source link

Product tax category changes should invalidate the order tax data cache #11

Closed codyjames closed 7 months ago

codyjames commented 3 years ago

Description

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

This would simply involve changing: https://github.com/craftcms/commerce-taxjar/blob/556f1c45d07e2ec2b8e90e87012973930c492182/src/adjusters/TaxJar.php#L127

to

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