• Resolved tgsadm

    (@tgsadm)


    I have a variable subscription product, still in test mode.
    WooCommerce is configured to insert prices with 23% VAT. The first order works fine, but when I create a renewal for test (Create Renewal Order) the tax is applied to the price, which already has tax included… Can you help me solve this?

    https://prnt.sc/EJrcsu2RQqbS

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Remi Corson

    (@corsonr)

    Automattic Happiness Engineer

    Hi,

    Found it. On stores that enter prices with tax included, the subscription was storing the price as if it were pre-tax. First order came out fine, but on renewal WooCommerce added the tax on top again. That’s how you ended up with 30,75 € instead of 25,00 €.

    Fixed for 1.8.28. Update, spin up a fresh test subscription, and the renewal should land at 25,00 €.

    One thing to flag: existing subscriptions keep whatever amount they were saved with, so your current test one will still misbehave even after the update. Easiest fix is to create a new subscription once you’re updated. If you’d already gone live with real subscribers, get in touch and we’ll fix those up with you directly.

    Thanks again for flagging this.

    Thread Starter tgsadm

    (@tgsadm)

    After updating to 1.8.28 and cleaning all cache… it stills adding the tax! 🙁

    Screenshot: https://prnt.sc/jV9IwhOAES_k

    Plugin Author Remi Corson

    (@corsonr)

    Automattic Happiness Engineer

    Hey

    I was able to replicate locally. Your store has update prices on renewal switched on, which re-prices each renewal from the product. What I fixed in 1.8.28 was the path that creates subscriptions; this one had the same mistake and was still adding the tax twice. It was also overwriting your recurring total with the inflated amount each time, which is why it kept coming back.

    Fixed in 1.8.29. This time I checked every place a product price becomes a line amount, found a third one, and covered all of them with tests.

    Good news for your test subscription: since that setting always takes the price from the product, it will correct itself at its next renewal. Nothing to recreate.

    Sorry for the round trip, and thank you for coming back rather than giving up.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.