Skip to main content

Customize Order Headers

Learning Objectives

After completing this unit, you’ll be able to:

  • Explore the order page header for an advanced order.
  • Sign up for a Developer Edition org with Consumer Goods Cloud.
  • Customize the order page header of an advanced order record.
  • Customize the order details page.

Get Ready to Start

To recap, advanced orders in CG Cloud and Online Order Extensibility give you a way to customize order pages. By tailoring the ordering experience so it’s just right, you can improve usability, enhance productivity, and foster stronger customer relationships.

Fatima’s all set to explore the advanced orders feature of CG Cloud and optimize the order pages for NTO store managers. To follow along with Fatima and get hands-on practice, you need a Developer Edition org.

Sign Up for a Developer Edition Org with CG Cloud

To complete this module, you need a special Developer Edition org that contains CG Cloud and our sample data. Get the free Developer Edition and connect it to Trailhead now so you can complete the challenges in this module. This Developer Edition is designed to work with the challenges in this badge, and may not work for other badges.

Always check that you’re using the Trailhead Playground or special Developer Edition org that we recommend.

  1. Sign up for a free Consumer Goods Cloud Developer Edition org.
  2. Fill out the form:
    • For Email, enter an active email address.
    • For Username, enter a username that looks like an email address and is unique, but it doesn’t need to be a valid email account (for example, yourname@example.com).
  3. After you fill out the form, click Sign me up. A confirmation message appears.
  4. When you receive the activation email (this might take a few minutes), open it and click Verify Account.
  5. Complete your registration by setting your password and challenge question. Tip: Save your username, password, and login URL in a secure place—such as a password manager—for easy access later.
  6. You’re logged in to your Developer Edition.

Now connect your new Developer Edition org to Trailhead.

  1. Make sure you’re logged in to your Trailhead account.
  2. In the Challenge section at the bottom of this page, click the org name and then click Connect Org.
  3. On the login screen, enter the username and password for the Developer Edition you just set up.
  4. On the Allow Access? screen click Allow.
  5. On the Want to connect this org for hands-on challenges? screen click Yes! Save it. You’re redirected back to the challenge page and ready to use your new Developer Edition to earn this badge.

Now that your Developer Edition org is ready, follow along with Fatima as she proceeds with configuring the order pages.

The Order Page Header

The Order Page Header is the first section in an order record, making it a critical touchpoint for key order details.

An advanced order screen showing the Order Page Header.

This panel provides an at-a-glance view of basic details, including the customer name, order ID, type of order template, the user who initiated the order, and the order value.

Fatima learns that NTO store managers need more visibility into the order-capture phase to track the current status of their orders. To this end, she adds a Phase field to the Order Page Header so it’s easier for store managers to monitor progress without digging into additional tabs or details.

Here’s how she customizes the Order Page Header in the template to add the Phase field. For practice, sign into your Developer Edition org and follow along.

  1. From the App Launcher, find and select Field Sales Execution.
  2. Go to the Advanced Orders tab.
  3. Change the list view to All.

List View options for Advanced Orders.

  1. Find and select order O-00141 to open the Advanced Order record. It may take a few seconds for the record to open.
  2. In the Order Page Header, Order Template field, click Standard. The Standard Order template opens in a new tab. You can also open the Standard Order template from the App Launcher, Order Templates app.
  3. In the Identification section, find the Custom JSON for Order Page Header field, and click Edit.
  4. Scroll down to the end of the JSON code. You can expand the field to enlarge it using the corner expansion icon.
  5. At the end of the last line of code, place your cursor right after "Order__c"} so that the cursor is between the second-to-last curly bracket and the square bracket.
  6. Type a comma and press Enter to place the square bracket and the last curly bracket on a new line.
  7. Copy and paste the following code in front of the square bracket:{"fieldApiName":"Phase__c","objectApiName":"Order__c"}The final code should be as follows: {"fieldApiName":"Phase__c","objectApiName":"Order__c"}]}

The image shows the final code line, which specifies the addition of the Phase field to the order template.

Customizing the Order Page Header JSON to add the Phase field.

  1. Save the template changes.
  2. Show the Advanced Orders tab, and return to the O-00141 order record.
  3. Refresh the browser page, and in the Order Page Header, confirm that the Phase field is visible. This order is in the Initial phase, which is helpful for tracking the order progress.

Order Page Header after changing the JSON to add the Phase field.

Once the order template is saved, the change becomes visible in any new or pending orders based on this template. To verify the update, you can open a pending order or create a new advanced order.

By adding the Phase field, Fatima helps NTO store managers track orders, making their workflow smoother and more efficient.

Next, you’ll explore additional customizations for other advanced order components.

Modify the Order Details Page

After customizing the Order Page Header to include the Phase field, Fatima turns her attention to another critical area: the Details section of the Order Header tab.

The Order Header page showing the order details in the Details section.

This section provides detailed information about an advanced order, such as delivery dates, notes, and the person responsible for the order.

During her collaboration with NTO store managers, Fatima learns that managers rely heavily on the Delivery Note field in the Order Details tab, while they rarely use the Invoice Note field. To simplify the interface and remove unnecessary elements, Fatima removes the Invoice Note field from the Order Details tab.

Here’s how she does it. Complete the steps in your Developer Edition org to follow along.

  1. From the App Launcher, open the Field Sales Execution app, and show the Advanced Orders tab.
  2. Open the order record O-00141.
  3. Show the Order Header tab, and notice the Invoice Note field, which is blank. You remove this field in the next few steps.
  4. Click Standard on the Order Page Header.
  5. Find the section Custom JSON for Order Details, and click Edit .
  6. Locate and delete this JSON code for the Invoice Note field:{"fieldApiName":"Invoice_Note__c","isRequired":false,"isEditable":true,"occupyFullRow":true,"objectApiName":"Order__c"},
  7. Delete this line from the JSON code. Be sure to remove the trailing comma to maintain valid syntax.

The image shows the field you need to remove.

JSON code for the Invoice note.

  1. Save your work.
  2. Return to the O-00141 order record, and refresh the browser tab.
  3. Show the Order Header tab, and confirm that the Invoice Note field is no longer there.

The Order Header page after the custom JSON field is updated.

Voila! By removing the unused Invoice Note field, Fatima keeps the order details relevant, ensuring they align more closely with NTO’s business model.

In this unit, you explored how to customize the Order Page Header and Order Details. Next, dive into other advanced order pages, including those for managing order items and product details.

Resources

Share your Trailhead feedback over on Salesforce Help.

We'd love to hear about your experience with Trailhead - you can now access the new feedback form anytime from the Salesforce Help site.

Learn More Continue to Share Feedback