Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Hide price column in order guide checkout

Nandini DM
Tera Contributor

Hi All,

I would like to hide the Price column in order guide check out.

NandiniDM_0-1691002476712.png

I tried the way ,Press ctrl +right click on the widget and then select "instance Options".
When I open the Instance option I'm not getting  price column in that.

NandiniDM_1-1691002646387.png

NandiniDM_2-1691002691512.png


kindly help me to Hide price column in order guide checkout.

Thank you!

2 REPLIES 2

Kit Cheong
Giga Guru

OOTB option: To hide the prices and leave the column in place change the property glide.sc.price.display value to never.

 

Custom widget option: To hide the column you'll need to clone and modify the widget-sc-order-guide-v2 widget.
1. Clone the widget name it something like widget-sc-order-guide-v3

2. Edit the portal page esc_sc_cat_item_guide, modify the existing widget instance and point it to your new widget.

3. Create a system property to configure when you want the column to be hidden.

4. Make the following changes to the widget:

ng-if="::data.ShowPriceColumn"

data.ShowPriceColumn = gs.getProperty('acme.sc.pricecolumn.show', 'true') == 'true';

KitCheong_0-1691036697188.png

KitCheong_1-1691036910315.png

 

You'll need to enhance this to only hide the column(s) for certain order guides.

You could store this config in a new Script Include that would house constants.

 

Hi Kit,

 

How did you configure the system property, if you wouldn't mind sharing?