Display delivery time on catalog items included in order guide

Harsha Pappala
Kilo Sage

The delivery shown on the catalog item which is part of the a order guide is coming from the flow designer which is connected to it, but we want to show the delivery time from the delivery time present on the catalog item itself

 

We are prepared to customise the order guide widget which shows the catalog item

In this case the widget is "SC Order Guide"

 

HTML part of the widget 

 

<div class="m-b" ng-if="!data.hideDeliveryTime && item.sys_class_name != 'sc_cat_item_producer' && item.sys_class_name != 'sc_cat_item_guide' && (!item.no_delivery_time && item.estimated_delivery_time)">
<b>${Delivery Time}</b>
<div>
{{::item.estimated_delivery_time}}
</div>
</div>

 

But i could not find the "item.estimated_delivery_time" anywhere, item is the glide object of the catalog item but could find the field with name "estimated_delivery_time". 

 

Server side script 

 

item = $sp.getCatalogItem(itemData);
i want to change the server side code such that the delivery time comes from delivery time of the catalog item rather than the flow. 

 

Please help or advise if you have faced this before. 

Catalog item in the order guide

HarshaPappala_0-1781007196776.png

 

1 REPLY 1

Ankur Bawiskar
Tera Patron

@Harsha Pappala 

so what did you start with and where are you stuck?

Unless you do some trial and error you won't learn

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader