duncanmcclean / simple-commerce

A simple, yet powerful e-commerce addon for Statamic.
https://statamic.com/addons/duncanmcclean/simple-commerce
Other
143 stars 37 forks source link

Shipping Tax #874

Closed duncanmcclean closed 1 year ago

duncanmcclean commented 1 year ago

This pull request closes #856 by allowing for tax to be applied to shipping amounts. This was only made possible by changes to the calculator in #873.

By default, calculating tax for shipping methods is disabled (in both the Basic & Standard tax engines), however you may choose to enable them:

Basic Tax Engine:

To enable, you may simply flick the toggle in your Simple Commerce config:

// config/simple-commerce.php

'tax_engine_config' => [
    // ...
    'shipping_taxes' => true,
],

Then, the tax rate you set for all other products will be applied to shipping too.

Standard Tax Engine:

  1. Upon upgrade, you'll find a new 'Default - Shipping' tax category
  2. Configure tax zones & tax rates associated with the newly created category
  3. Shipping taxes will be based on the rates entered

To Do

github-actions[bot] commented 1 year ago

Released as part of v5.1.0.