Site Builder > Remove the Payment Method Section in the Review and Submit Page
Published on
July 31, 2023 at 4:50:50 AM PDT July 31, 2023 at 4:50:50 AM PDTst, July 31, 2023 at 4:50:50 AM PDT
Scenario
Users can remove or hide the Payment Method section in the Review and Submit page of a NetSuite classic web store when desired.
Solution
- Step A: Create a Custom Tag for the code snippet.
- Navigate to Commerce > Site Builder > Tags > New
- Set these for the new tag:
- Tag = CODETOHIDEPAYMENTSECTION
- Description = This tag is used to hide the Payment Method section in the Review and Submit page
- Click Save
- Step B: Add the code snippet to hide the Payment Method section.
- Navigate to Commerce > Site Builder > Themes
- Webstore Theme: Click Edit
- Note: To check the Theme used: Navigate to Commerce > Web Site List > Edit Web Site > Appearance tab
- In the Body tab, look for the Footer Template section
- Add a call for the custom tag created in Step A (e.g. <CODETOHIDEPAYMENTSECTION> ) and make sure it is not in between a script tag
- Click Save
- Step C: Set the Tag Substitution in the Checkout.
- Navigate to Commerce > Site Builder > Tabs
- Checkout tab: Click Edit
- Click on the Tag Substitution tab
- Select the tag created in Step A
- Use the following sample script snippet as the Substitution Value:
if(document.getElementById('paymentmethodtable')!=null){document.getElementById('paymentmethodtable').style.display ="none";}//end if