2017-09-01 4 views

答えて

0

これは、このカスタムフック機能(ただし、すべての電子メール通知から)で可能です:いずれかにも

add_filter('woocommerce_get_order_item_totals', function($total_rows, $order, $tax_display){ 

    // Only for "Free Shipping" method 
    if(! $order->has_shipping_method('free_shipping') || is_account_page() || is_wc_endpoint_url('order-received')) 
     return $total_rows; 

    unset($total_rows['shipping']); 

    return $total_rows; 
}, 11, 3); 

コードは、あなたのアクティブな子テーマ(またはテーマ)のfunction.phpファイルに行きますかプラグインファイル。

このコードはテスト済みであり、動作します。

関連する問題