1
お客様のご注文があった場合は、無料配送をご利用の場合はremove shipping info
までお客様に注文確認メールからお願いします。WooCommerceの電子メール通知で無料配送方法の配送情報を削除します
これは可能ですか?
お客様のご注文があった場合は、無料配送をご利用の場合はremove shipping info
までお客様に注文確認メールからお願いします。WooCommerceの電子メール通知で無料配送方法の配送情報を削除します
これは可能ですか?
これは、このカスタムフック機能(ただし、すべての電子メール通知から)で可能です:いずれかにも
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ファイルに行きますかプラグインファイル。
このコードはテスト済みであり、動作します。