ディスカッション

NetSuiteの保存検索やレポートをマスターするための究極のガイドである分析センターを使用して、データの力を最大限に活用しましょう。複雑さを単純化し、組織の真の可能性を解き放ちます。今すぐ分析センターに参加して、新たな高みを目指しましょう!
ポップクイズ / Pop Quizをお見逃しなく!午後2:00時2026年2月10日ET までに答えをコメントし、 特典を獲得しましょう!詳しくはこちらをクリックしてください。

SuiteCommerceでクレジットカード支払い方法を削除する 

編集済:Jun 2, 2025 2:47PM ウェブサイト / Eコマース

適用

製品: NetSuite 2021.1
バンドル:  SuiteCommerceおよびSuiteCommerce Advanced

シナリオ

次の回避策は、DOMを介して支払い方法セレクターのクレジットカードオプションを自動的に非表示にし、基本的にクレジットカードの注文を防ぎます。

解決策

  • 1. サイト管理ツール管理者にログインします

2. ログインしたら、買い物客としてログインし、チェックアウト> 支払いページに移動します

3. 上部の編集モード(鉛筆)ボタンをクリックして、編集モードに切り替えます

4. 編集モードで、追加(プラス)ボタンをクリックします

5. CMS HTML()をクリックして、一番上の「すべてのページ」セクションにドラッグします

6. HTMLコードフィールドに、次のスクリプトを入力します

<script type="text/javascript">
$(document).ready(function() {
if (window.location.hash == '#billing'){


var sel = new Array();
$('.order-wizard-paymentmethod-selector-module-options').find('option').each(function() {
	var pymts= $(this).val();
	sel.push(pymts);
});
var ccIndex = sel.indexOf('creditcard');


var selected = document.getElementsByClassName('order-wizard-paymentmethod-selector-module-options')[0].selectedOptions[0].value;


if (selected == 'creditcard'){
document.getElementsByClassName('order-wizard-paymentmethod-selector-module-options')[0].selectedOptions[0].text = '';
}


document.getElementsByClassName('order-wizard-paymentmethod-selector-module-options')[0].options[ccIndex].style.visibility = 'hidden'
document.getElementById('payment-method-selector-content').style.visibility = 'hidden';
document.getElementById('payment-method-selector-content').style.height = '0px';
document.getElementsByClassName('order-wizard-paymentmethod-creditcard-module-selected-card')[0].style.visibility = 'hidden';
document.getElementsByClassName('order-wizard-paymentmethod-creditcard-module-selected-card')[0].style.height='0px';
}
});


</script>


<script type = "text/javascript">
var cc;
$(document).on('click', 'select.order-wizard-paymentmethod-selector-module-options', retrieve);


function retrieve(){
var sel = new Array();
var pymts;


$('.order-wizard-paymentmethod-selector-module-options').find('option').each(function() {
	pymts= $(this).val();
	sel.push(pymts);
});
var ccIndex = sel.indexOf('creditcard');
cc = $('select.order-wizard-paymentmethod-selector-module-options')[0].options[ccIndex];
$(cc).hide();
console.log('cc hidden');
}
</script>
タグ付けされた:

ようこそ!

サインイン

完全な詳細を表示するには、サインインしてください。

登録

アカウントがありませんか?ここをクリックして始めましょう!

リーダーボード

コミュニティの達人

第 1 四半期 (1月~3月 2026)

今週のリーダー

今月のリーダー

歴代リーダー