Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We removed commerce_tax for beta1 because the data model was too slow and there was no other logic.
Taxes are our biggest remaining RC1 blocker, so time to get it (re)done.
Tracking only the data model issues for now cause the calculation logic still needs work.
Comments
Comment #2
bojanz CreditAttribution: bojanz at Centarro commentedCommit that removed the old code: https://github.com/drupalcommerce/commerce/commit/d37fdd9c93bac2db5e08ee...
Comment #3
bojanz CreditAttribution: bojanz at Centarro commentedNo longer a meta. And in-progress.
Folded #2841016: Create the tax data model back into this issue, see the discussion there for historical purposes.
Did the same with #2840688: Add a taxable type setting to product variation types.
The basic architecture will be the TaxType plugin + config entity pair. This allows us to have an Eu plugin that hardcodes the EU tax rates, avoiding the "let's load over 50 rates at once" performance problem unique to the EU. It also allows us to have a "Custom" plugin for defining own tax zones/rates/amounts. Tax type plugins can be local (eu, custom) or remote (avatax, taxamo, etc).
Once this commit lands we can move on to implementing tax overrides, which will be rules-like entities that embed conditions for a specific tax type ("Choose Reduced if product category is X").
Comment #5
bojanz CreditAttribution: bojanz at Centarro commentedMerged. Next stop: #2872190: Create tax rate resolvers.
Note that taxes are not showing up for me on the cart locally right now, need to debug and write additional tests.