LaravelShoppingcart
LaravelShoppingcart copied to clipboard
Tax Queries
Dear Sir, I need some help please.
- Can the tax be dynamic since not all products are charged with the same tax amount.
- I would like to display the tax amount in the cart row, can it be done?
Thank you
-
Yes but not with the trait, got to do it manually on the CartItem https://github.com/Crinsane/LaravelShoppingcart/blob/f460ab7312cce32cb428cf39a500a2d16600b1d6/src/CartItem.php#L238
-
Just display the
taxRate
property of the CartItem available trought the magic __get method or use formattedtax()
method.