2017-09-01 54 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文件或也以任何插件文件。

此代碼已經過測試並可正常工作。

相關問題