Code Monkey home page Code Monkey logo

Comments (2)

daigo75 avatar daigo75 commented on July 24, 2024

Standard tax class was deliberately removed in commit 2203f42](2203f42), because it was not working properly.

Why Standard Tax Rate doesn't work

There is a design flaw in how the "Fees Tax" option was handled. The "don't apply tax" option is given a tax class ID equal to an empty string. Such ID is already reserved by WooCommerce, for the Standard Rates (in the plugin it was assumed, incorrectly, that the Standard tax class had the "standard" ID).
The same issue affects the tax calculation: when the tax class ID is empty, the plugin assumes that no tax should be applied, while the Standard rate should be used instead.

How to fix the issue

I prepared a patch that handles tax rates correctly. Pull request coming shortly.

from woocommerce-product-fees.

WPprodigy avatar WPprodigy commented on July 24, 2024

Fixed here d49ea61

And added additional feature here: d49ea61

from woocommerce-product-fees.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.