עגלת הקניות שלך ריקה כעת!
PayPlus Item vat_type – Transaction
How do the Woocommerce PayPlus plugin sets product vat_type when a payment occurs?
A few simple rules:
- If we don't know anything OR the user didn't choose anything involving tax in the plugin settings or in the Wooccommerce tax settings? The answer is: Tax Included : which is 0 in the API
- If the customer chose to activate his tax settings in woocommerce:
- If he selected : Tax inclusive and the product type is "Taxabale" then it is : Tax Included: 0. ELSE it is : Tax Excluded 1.
- If he selected: Tax Exclusive OR The proudct type is "None" then it is: Tax Exempt : 2 ELSE it stays as the last step.
And finally if the customer has selected vat for all on the Invoice+ settings it is always 0… 🙂 no matter what.