- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-08-2021 05:20 AM
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
Solved! Go to Solution.
- Labels:
-
Service Catalog
-
Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-08-2021 06:55 AM
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:
If I have another user with Japan as their "Country Code" and "Japanese" as their language, then I would see this:
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-09-2021 12:52 AM
Ok, so I think I see what's happening. In your Catalog Item the price entered is specifically in "Kr", the user's locale is showing "€", but for some reason it's showing "Kr" in the Catalog Item itself (in the portal) but it's not in the Summary page of the basket.
So, there's a few things to double check:
- Is the instance in multi-currency mode? - If it's not, you will need assistance from NowSupport due to some back-end activities that may need to be performed if the property needs to be changed.
- Is the price field on sc_cat_item (and the "recurring price" and "list price" fields) set to "calculated" as it's price type?
- If you click the pencil icon to the right of the field, it should take you to this form and note where my arrow is:
- If you click the pencil icon to the right of the field, it should take you to this form and note where my arrow is:
I've also checked it with entering a value on a catalog item not in $'s, just to be sure.
Then when the user's "country code" is set to a value that has a Currency with it, e.g. in my example Japan (and note it's agnostic to the language value of the user), after a quick log out and log back in, the user sees "Â¥" on the summary page:
Many thanks,
Kind regards
Director of Globalization Deployment, Internationalization
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-09-2021 06:56 AM
The instance is on multi-currency mode.
The catalog item has all the prices in SEK with Fixed (single currency) setup on the fx_price table.
Regards,
Tirtha Chowdhury
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-09-2021 07:01 AM
Ok, have you tried changing the price field type to "calculated" as described here and above and re-tested it?
Many thanks,
Kind regards
Director of Globalization Deployment, Internationalization
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-09-2021 07:20 AM
Just changed all the prices for the catalog item to Calculated (dynamically determined on display) and for that even the check out screen now has the price in Euros instead of SEK for the specific user. But we actually want to have SEK on all the portal screens irrespective of user's locale currency
Thanks,
Tirtha Chowdhury
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-09-2021 07:31 AM
Thanks, I just wanted to see if the behaviour followed in the opposite scenario, and indeed I can replicate the same as you,
Could you raise a case on NowSupport (the artist formally known as Hi),
- I suspect this is as intended so that the "total" can be calculated via one currency should there be more than one item in the Cart, so just something to be mindful of,
Many thanks,
Kind regards
Director of Globalization Deployment, Internationalization