• Resolved bozzobrain

    (@bozzobrain)


    There appears to be an issue with tax calculation. The issue I have found arises with variable products with more than one attribute in the same cart. A variable product with a single attribute does not appear to cause this issue from what I am seeing.

    Problem Description

    I discovered this issue when adding two of the same variable product, with different variation attributes selected, in two separate cart line items, i.e:

    Line Item 1 – Qty 1: Variable Product A [$10]

    • Attribute 1 = 1a
    • Attribute 2 = 2a

    Line Item 2 – Qty 1: Variable Product A [$10]

    • Attribute 1 = 1a
    • Attribute 2 = 2b

    The sales tax calculations seem to be incorrectly assigned to the line items and the cart tax and total are incorrect.

    My expected tax rate is 8% and the total tax assigned should be $1.6 on a $20 order. But instead it shows $3.2. This extends to other erroneous calculations when the quantities vary. I captured the issue in the video link here: https://streamable.com/lncbit

    I believe it doesn’t have anything to do with Woocommerce tax as I have removed all tax table line items and have attempted all variations of the available settings to try to understand the issue and came up with this analysis. All other plugins that I am using have been disabled temporarily to see if they were interfering without any impact.

    Please ask for any additional information.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello @bozzobrain ,

    Thank you for your feedback! We are releasing v.2.0.0 of Stripe Tax for WooCommerce. We included various improvements, among others, how line items are calculated too.

    Please update your plugin and let us know if you are still experiencing the issue.

    Best regards,
    Robert

    • This reply was modified 1 month, 1 week ago by rjozsastripe.
    • This reply was modified 1 month, 1 week ago by rjozsastripe. Reason: typo
    Thread Starter bozzobrain

    (@bozzobrain)

    The variations are now being calculated correctly, however it would seem that if shipping is set to non-taxable, the shipping costs themselves are not included in the cart/checkout total.

    As an example, a cart item makes a subtotal of $70 with $4.99 shipping. This would be a subtotal + shipping charge of $74.99. With my 8% tax, and the shipping settings configured to make the shipping fee taxable, the cart/checkout total calculates at $80.99 = $74.99 subtotal ($70 cart value + $4.99 shipping) + $6 tax (8%) which is accurate. However, if I disable tax calculation on shipping by setting the shipping to non-taxable, the total moves to $75.60 = ($70 cart value) + ($5.60 tax) + ($0 shipping costs). The cart and checkout pages show $70 Subtotal + $4.99 Shipping + $5.60 Tax = $75.60 which is incorrect.

    Also if I set the shipping costs to inclusive of tax, it does include the shipping cost in the final total, but still calculates tax on the shipping fee.

    Hey @bozzobrain,

    Thank you for confirming the initial issue is solved!

    I will open a ticket regarding the shipping issue you described and we will investigate.

    Best regards,
    Robert

    Thread Starter bozzobrain

    (@bozzobrain)

    Thank you for the continued support!

    Camilo

    (@camiloluna)

    Since the original issue was related to something else, I missed it and created a new Topic related to this same issue here:
    https://wordpress.org/support/topic/non-taxable-shipping-method-issue/

    I wished there was a public repo for the plugin so we could help fix it with a PR.

    Edit: This has been fixed in 2.0.1. I was still on 2.0.0.

    • This reply was modified 1 week, 1 day ago by Camilo. Reason: Issue already fixed
Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.