我在文档的任何地方都找不到解释。我也查看了源代码,但这也无济于事。非常感谢!
最佳答案
好的,我通过以下设置在我的测试存储中找到了答案:
有了这些设置,我在购物车对象上得到了以下内容:
"cart_contents_total":97.4998,
"total":144.6,
"subtotal":127,
"subtotal_ex_tax":105.8333,
"tax_total":22.1001,
"discount_cart":8.3334,
"discount_cart_tax":1.6667,
"fee_total":13,
"shipping_total":10,
"shipping_tax_total":2,
"fees":[{"id":"extra-fee", "name":"Extra Fee", "amount":13, "tax_class":"", "taxable":true, "tax":2.6, "tax_data":{"1":2.6}
因此,答案是:
关于WooCommerce:购物车总数与小计有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33919859/