Crinsane / LaravelShoppingcart

A simple shopping cart implementation for Laravel
MIT License
3.68k stars 1.73k forks source link

Tax should be calculated by location #588

Open Nazalas opened 5 years ago

Nazalas commented 5 years ago

You are only required to charge taxes if the item being purchased is shipped within a state in which your business has nexus, Can you please add a nexus states array in the config and only have the tax calculate if the end user is within one of those states. You would probably need a way to define the state that the user is in. If this is not possible, can we check the state ourselves and enable/disable tax on the fly?

bumbummen99 commented 5 years ago

Well you can let your user define his state or obtain it from the shipping address and then apply the tax rate to the CartItem's.