You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ot_get_customer_tax_class() return user tax class by user meta 'ot_tax_class'.
product and cost tax by client role, there are 21% for standard company, 21%+5.2% for client autonomus, 0% for company european in my case.
@otao-github Thanks for the pull request, but I still don't quite understand, why you need to hack the tax settings this way...
What is the use case? How you reproduce not having an "inherit" tax option?
I just don't get it I would like to understand the way you think you need that filter in my plugin. What does the ot_get_customer_tax_class function in the example at https://wordpress.org/support/topic/payment-fee-tax-class-based-on-product-tax-class-2/#post-14536763 do?
eg_cod_cost = 2; // fixed
by 'inherit' option, hook get gateway settings and dynamic calculate tax final
tax_standard = 2 * 21%
tax_autonomus = 2 * (21+5.2)%
tax_european = 2 * 0%
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
if woocommerce official no offer a 'inherit' tax class opcion, give us a hook to return dynamic $settings['pay4pay_includes_taxes'].