Remove "yearly" word in Price field in Service portal.

bhargavi143
Tera Contributor

Hi ,
I need to remove only "yearly" word from Price field in Service portal without disturbing the price value for one of my catalog item.
Please find the below screenshot for your reference.

bhargavi143_0-1698239871893.png

Can anyone please help me.

1 ACCEPTED SOLUTION

Hi @bhargavi143 

Just remove the part data.sc_cat_item.recurring_price_frequency, it should do the trick.

Sample below.

<div class="m-b text-right" ng-if="c.showPrice()">
  <b>${Price}:</b> {{data.sc_cat_item.price_display}}
  <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}}</em>
</div>

 

Let me know if it works for you.

 

Cheers,

Tai Vu

View solution in original post

5 REPLIES 5

Hello @bhargavi143 

Updated code:

<div class="m-b text-right" ng-if="c.showPrice()" >
<b>${Price}:</b> {{data.sc_cat_item.price_display}} <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}}</em>
</div>

Doing this will remove this price_frequency for all the items which will be using this widget.

If you need it just to happen with some catalog items then worth trying my above suggestion.

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,Sushant Malsure