Tuesday, March 5, 2019

Change the Number of Recent Orders Shown on the Homepage of Reference My Account

The Recent Orders section of the My Account homepage shows only 3 recent order by default. To control the number of orders to be shown, the Profile.Router.js file contains the code to be edited to set the preferred number of recent orders.

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. Go to Documents > Files > File Cabinet.
  2. Navigate to Web Site Hosting Files > Live Hosting Files > SSP Applications > NetSuite Inc. - My Account > Custom My Account > js > src > app > modules > Profile.Router.js.
  3. Edit the file and look for the code snippet below:



  4. Change the number 3 in "view.recentOrders = orderCollection.models.slice(0, 3);" to your preferred number. For example, view.recentOrders = orderCollection.models.slice(0, 10); will change the number of recent orders shown to 10.
  5. Save.

You may need to close all browser sessions and start a new one to ensure if the changes have taken effect.

No comments:

Post a Comment