How to show subtotal in catalog item while ordering a item in Service Portal

Mohan raj
Mega Sage

Hi all,

Help me to show the subtotal in portal page while ordering the catalog item 

Mohanraj_0-1697364497185.png

in above screen shot,  below price i need to show subtotal,

I try with the below community post still no luck

https://www.servicenow.com/community/developer-forum/total-on-service-catalog-checkout-page/m-p/1680....

 

5 REPLIES 5

arasn
Tera Contributor

navigate to cart layout and enable Total under components 

Hi Arasn, I tried this but not working do you any ideas on this?

Dileep Prasath
Tera Contributor

In SC catalog item widget,

 

HTML under Line 183 add the below

 

<div class="m-b" ng-if="data.showPrices && (data.sc_cat_item.price) || data.sc_cat_item.recurring_price">
<b>${subtotal}:</b> {{c.quantity * data.sc_cat_item.price}}<em ng-if="data.sc_cat_item.recurring_price" class="cat_item_price"> {{data.sc_cat_item.price ? '+' : ''}} {{data.sc_cat_item.recurring_price_display + ' ' + data.sc_cat_item.recurring_price_frequency}}</em>
</div>

Dileep Prasath
Tera Contributor

In SC catalog item widget,

 

HTML under Line 183 add the below

 

<div class="m-b" ng-if="data.showPrices && (data.sc_cat_item.price) || data.sc_cat_item.recurring_price">
<b>${subtotal}:</b> {{c.quantity * data.sc_cat_item.price}}<em ng-if="data.sc_cat_item.recurring_price" class="cat_item_price"> {{data.sc_cat_item.price ? '+' : ''}} {{data.sc_cat_item.recurring_price_display + ' ' + data.sc_cat_item.recurring_price_frequency}}</em>
</div>