Có quá nhiều nghịch lý với Woocommerce và đây là một ví dụ điển hình. Xem hình nào ↓

Đơn hàng đã được Free Shipping rồi mà ông lại còn để Phí Shipping nữa. Trêu nhau à 😂
Cách xử lý như sau:
Anh em tìm đền file functions.php
trong theme của anh em đang sử dụng và thêm đoạn code sau vào:
/**bunnywp.com*/
function my_hide_shipping_when_free_is_available( $rates ) {
$free = array();
foreach ( $rates as $rate_id => $rate ) {
if ( 'free_shipping' === $rate->method_id ) {
$free[ $rate_id ] = $rate;
break;
}
}
return ! empty( $free ) ? $free : $rates;
}
add_filter( 'woocommerce_package_rates', 'my_hide_shipping_when_free_is_available', 100 );
Đấy, chỉ có vậy. Tiếp đến anh em vào WooCommerce > System Status > Tools > WooCommerce Transients và chọn Clear transients
Và đây là kết quả:

Ngon lành nhé! Chúc anh em thành công.