Sitecore Experience Commerce - InvalidShopCurrency

Sitecore Experience Commerce - InvalidShopCurrency

Code":"Error","Text":"Currency 'AUD' for Shop 'Storefront' was not found.","CommerceTermKey":"InvalidShopCurrency"}

Root Cause of this issue is:

Some where in the sitecore and Commerce Engine the Currency settings DO NOT match. It could be becuase site name do not match or currecny config do not match.

Solution(s):

  1. Update default Currency as 'AUD' under following path in 'Sitecore Content tree'.
    /sitecore/Commerce/Commerce Control Panel/Shared Settings/Currency Settings/Currency Sets/Default

  2. Goto c:\inetpub\wwwroot\CommerceAuthoring\wwwroot\data\Environments\PlugIn.Content.PolicySet-1.0.0.json

    Ensure these settings are correct in Content PolicySet


    if you don't see bizfx (https://localhost:4200) this is the fix for that.


                    
                            "$type": "System.Collections.Generic.List`1[[Sitecore.Commerce.Core.Policy, Sitecore.Commerce.Core]], mscorlib",
                            "$values": [
                              {
                                "$type": "Sitecore.Commerce.Plugin.Management.SitecoreConnectionPolicy, Sitecore.Commerce.Plugin.Management",
                                "Host": "sxa.storefront.com", 
                                "SitecoreDatabase": "master",
                                "UserName": "admin",
                                "Domain": "sitecore",
                                "Password": "xxxx",
                                "ConnectionLeaseTimeout": 60000,
                                "AuthRequestUrl": "sitecore/api/ssc/auth/login",
                                "Protocol": "https"
                              },
                            
                    
  3. Check the Configuration in follow connect confg

    C:\inetpub\wwwroot\sc9.local\App_Config\Include\Y.Commerce.Engine\Sitecore.Commerce.Engine.Connect.config

    OR any other patch file which might be overriding this settting


                    
                            <shopsServiceUrl>https://localhost:5000/api/</shopsServiceUrl>
                            <commerceOpsServiceUrl>https://localhost:5000/commerceops/</commerceOpsServiceUrl>
                            <commerceRequestTimeout>120</commerceRequestTimeout>
                            <enforceSsl>true</enforceSsl>
                            <defaultEnvironment>HabitatAuthoring</defaultEnvironment>
                            <defaultShopName>CommerceEngineDefaultStorefront</defaultShopName>
                            <defaultShopCurrency>USD</defaultShopCurrency>
                
                


Let me know which one worked for you.

Comments