Need to show prices of catalog items in specific currency on Service portal instead of users' local currency

tirtha1
Tera Contributor

Hello All,

I needed some insights on how to show the prices of cat items on service portal on defined currency on the item instead of users' local language. The client instance has localization enabled. Currently on the service portal checkout screen the item prices are shown in SEK (defined on the item) but once the user reaches portal Request Summary page the price changes to user's local currency. This has to be achieved without updating the single currency model localization parameters as it's a platform level change. Let me know if anyone has customized this on the portal or though some code on the backend.

Thanks,

Tirtha Chowdhury

1 ACCEPTED SOLUTION

Alex Coope - SN
ServiceNow Employee
ServiceNow Employee

@tirtha,

Ok, so typically the currency displayed in the Service Portal is derived by the "Country Code" and the "Language" of the user. You may need to add the "Country Code" field to your user form if it's not already there,

So, for example, if I have a user with "United Kingdom" as their Country, and "English" as the Language then I will see the Catalog Items with a Currency of £, like this:
find_real_file.png
 
If I have another user with Japan as their "Country Code" and "Japanese" as their language, then I would see this:
find_real_file.png

As you mention "SEK" as the currency, do you already have the Swedish language pack installed?

Also side note, you'll notice that the currency calculation is already taken into account based on the previous nights currency conversion rates.
- Second side note, if you want to test it on a user you are already logged in with you will either need to fully log out and back in again ensuring the correct language for that country is selected or perform a cache.do, this is because the browser session might get confused and so need to be flushed, 

If you want to take this one step further, you can even go down the "locale" route (predetermining currency, price and date formats to a given location) but I might save that for a blog post in the future as it's a big topic,

If you want to learn more about what I mean check this Docs article,

Many thanks,
Kind regards

--------------------------------------------------------------------
Director of Globalization Deployment, Internationalization

View solution in original post

13 REPLIES 13

@Alex Coope ,

We already had a ServiceNow case raised , CS5698382 but didn't get any resolution and was instructed to raise this here on the community. 🙂

Regards,

Tirtha Chowdhury

tirtha1
Tera Contributor

@Alex Coope ,

 

Could you assist us with the ServiceNow case raised:  CS5698382?

Regards,

Tirtha Chowdhury

@tirtha,

So looking through everything, I don't think this is a defect. In that if it behaved as you would like then potentially there could be an item in the basket showing in $ (USD) and another item in € and another in £ (as an example) which would almost certainly confuse the end-user as well as complicating the "total" at the bottom. Which is almost certainly why it's an all or nothing scenario, meaning everything is as the user preference or it's the system preference on that page.

It's a long way of me saying, I'm not sure it would be a good User Experience to introduce this,

Many thanks,
Kind regards 

--------------------------------------------------------------------
Director of Globalization Deployment, Internationalization

@Alex Coope 

Could we create two new fields on the Requested Item table like Price (SEK) and Recurring Price (SEK) to always display the SEK specific prices? Could you guide how this could be done?

Regards,

Tirtha Chowdhury