Thursday, July 4, 2019

Reference My Account > Choose what to display on Overview page's My Settings for Shipping, Payment and Profile

*Applicable to all Reference My Account bundle versions

Reference My Account's Overview displays a section for My Settings. This section shows information for Profile, Shipping and Payment along with their respective Edit links.

Users may opt to hide any of the portlets, or change their order by editing the home.txt file.

 

Requisites:


1. Custom My Account folder is already populated with files copied from the Reference My Account folder.
2. Setup > Site Builder > Set Up Web Site > Touch Points tab:
Name: View Customer Center
SSP Application: Custom My Account


Steps:


1. Navigate to Setup > Site Builder > Web Site Hosting Files.
2. Navigate to SSP Applications > NetSuite Inc. - My Account > Custom My Account > templates > home folder.
3. Edit home.txt.
4. Find homeItems variable. This declares the macros for homeProfile, homeShipping, and homePayment.
5. To remove, for example, the Profile portlet, simply comment the homeProfile section of the code like below:


 <% var homeItems = [];
   <!-- homeItems.push(SC.macros['homeProfile'](view)); -->
  homeItems.push(SC.macros['homeShipping'](view));
  homeItems.push(SC.macros['homePayment'](view));
 %>


6. Users can also switch the order in which the portlets are called to change which portlets are loaded first. For example:



 <% var homeItems = [];
   <!-- To display homePayment first -->
    homeItems.push(SC.macros['homePayment'](view));
   homeItems.push(SC.macros['homeProfile'](view));
  homeItems.push(SC.macros['homeShipping'](view));
 
 %>

7. Save.

No comments:

Post a Comment