Site Builder > Remove the Payment Method Section in the Review and Submit Page

Written by
Ryan
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.
    1. Navigate to Commerce > Site Builder > Tags > New
    2. 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
    3. Click Save
  • Step B: Add the code snippet to hide the Payment Method section.
    1. Navigate to Commerce > Site Builder > Themes
    2. Webstore Theme: Click Edit
      • Note: To check the Theme used: Navigate to Commerce > Web Site List > Edit Web Site > Appearance tab
    3. In the Body tab, look for the Footer Template section
    4. 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
    5. Click Save
  • Step C: Set the Tag Substitution in the Checkout.
    1. Navigate to Commerce > Site Builder > Tabs
    2. Checkout tab: Click Edit
    3. Click on the Tag Substitution tab
    4. Select the tag created in Step A
    5. Use the following sample script snippet as the Substitution Value:
if(document.getElementById('paymentmethodtable')!=null){document.getElementById('paymentmethodtable').style.display ="none";}//end if