In woocomerce, how to get the tax rate used in an order for one product ? And the tax rate For shipping ?
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
You can get the tax data used for an item (product) through
WC_Order_Item_Product
object and methods:Also you can get Tax data (like shipping) through
WC_Order_Item_Tax
object and methods