lunarphp / lunar

An open-source package that brings the power of modern headless e-commerce functionality to Laravel.
https://lunarphp.io
MIT License
2.71k stars 357 forks source link

Support selection of the highest tax rate in the basket for shipping #1937

Closed ryanmitchell closed 4 hours ago

ryanmitchell commented 2 months ago

Currently the shipping tables add-on only supports returning the default tax class/rate.

However countries can have different requirements for how tax should be calculated on shipping depending on what is in the basket, for example in the UK shipping should take the most expensive tax rate in the basket.

This PR updates the add-on with a new config option (lunar.shipping-tables.shipping_rate_tax_calculation) which currently has two options: default for selecting the default rate, or highest for selecting the highest rate in the basket.

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lunar-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 5, 2024 2:45pm
ryanmitchell commented 1 month ago

Any thoughts on this one?