Open gullible1 opened 3 years ago
@gullible1 could you help me understand this feature request a bit, please? Is the desired outcome of this issue to:
admin
where a shop admin can toggle Exclude Taxes.Is this correct, or have I misunderstood your example?
@theprivileges When the checkbox is selected, the discount should not apply to the taxes. But the taxes should remain in the cart. In some sense it is very similar to the existing option "Exclude Shipping Fees" but for taxes vs shipping.
Here is an example of a cart, assuming both the "Exclude taxes" and "Exclude Shipping Fees" are selected: Subtotal: $100 Taxes: $8.5 Shipping: $5 Discount 10% off: -$10 => Total: $103.5
Notice how the discount only applied to the subtotal and not to the taxes nor the shipping. Let us know any question! 👍
Hi everyone,
I've implemented the requested feature in separate branch, and am in the process of writing a unit test to confirm that the cart totals are calculated as expected. I do have a concern to bring up at this point:
If a seller chooses to configure Taxes on their UI (from Settings > Checkout), it seems to me like there isn't enough information for them to know how taxes are calculated. For example, how many new sellers would know that in order to generate @franckc's example cart, they would have to set the Tax Rate to 8.5%? In other words, are there places in the world where the norm is that a discount is applied on a product before calculating the tax on that 'final' product price?
@micahalcorn @gullible1 Could you comment on ^^^ ?
@franckc since I haven't yet seen a response on this thread, I've enabled tooltips on the two checkboxes to inform shop admins of their functionality (screeenshots below); tooltips are displayed when the user's mouse pointer hovers over the options.
Does this work for everyone?
All,
I'm submitting a Pull Request for review in relation to this issue. If and when that is approved, all related changes will "go live", and be reflected on the user end.
Best, Rajath
Similar to how we allow users to choose whether to include/exclude shipping price from discounts, we should also let them do the same for taxes.
For example:
Currently if a seller sets a 100% off discount code for a Printful product, the buyer still has to pay the tax amount. The seller should have the option to cover taxes as well and have the buyer pay $0.