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

sushantmalsure
Mega Sage
Mega Sage

This must be coming from 'Recurring price frequency' from the related catalog item.

If you do not have 'Recurrning price' then set that to 0 and test.

 

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

Hi Sushant,
Thanks for your reply
I attached code which is present in my SP portal widget , Please find the below code and guide me where i can change for removing "yearly" word in the price value.
<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 + ' ' + data.sc_cat_item.recurring_price_frequency}}</em>
</div>

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

Thank you , The solution is worked for me.