- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-25-2023 06:23 AM
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.
Can anyone please help me.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2023 03:18 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2023 02:56 AM
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.
Regards,Sushant Malsure