ディスカッション
NetSuiteの保存検索やレポートをマスターするための究極のガイドである分析センターを使用して、データの力を最大限に活用しましょう。複雑さを単純化し、組織の真の可能性を解き放ちます。今すぐ分析センターに参加して、新たな高みを目指しましょう!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Update: Narrative Insights has been restored and is now available.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
SuiteCommerceでクレジットカード支払い方法を削除する
適用
製品: 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>
タグ付けされた:
0