I am using a third-party shipping plugin. Sometimes, this plugin somehow acts up, and only charges the client something like 1$.
I’d like to add a sanity check before the order is accepted, that the shipping amount should at least be e.g. 3$.
It seems that I should hook into woocommerce_after_checkout_validation
to do this there.
But the shipping amount doesn’t seem to be in $_POST
– the only thing of interest is maybe ‘shipping_method’, but there’s no amount to be seen (i just used flat rate as a test):
How can I look up how much shipping is planned to being charged on the order that has just been submitted?
- Hiện tại chúng tôi có hơn 25 nghìn bài văn mẫu các thể loại.
- Kho tài liệu, đề thi học sinh giỏi các lớp vô cùng phong phú.
- Mỗi ngày cập nhật hơn 100 đề thi chất lượng từ các website bán tài liệu lớn.
Tải đề thi VIP với giá siêu rẻ tại Vip.Dethihsg247.Com