Thursday, September 3, 2020

Sitecore Experience Commerce (Steps to configure a new currency)

 


Here are simple steps to configure new currency in Sitecore commerce (XC) -

Setup currency in XP -

Go to this path - /sitecore/Commerce/Commerce Control Panel/Shared Settings/Currency Settings/Currency Sets



Create a new currency item and choose the correct configuration, so here we have done the master configuration, Now we need to configure this currency at the store level -

Go to /sitecore/Commerce/Commerce Control Panel/Storefront Settings/Storefronts/YourStoreName/Currencies Display Adjustments/AddNewCurrencyhere



We are done with XP settings now - Let's configured the Sitecore commerce now.

Go to this path -

C:\inetpub\wwwroot\yousite.dev.local\App_Config\Include\Y.Commerce.Engine

Create patch file for below settings

 <defaultShopCurrency>USD</defaultShopCurrency>

Update the BizFx solution and update below configuration-

  "Language": "en",  
  "Currency": "USD",  
Good so here are the final steps - Need to configure the commerce engine environment policies

    {  
     "$type": "Sitecore.Commerce.Core.GlobalCurrencyPolicy, Sitecore.Commerce.Core",  
     "DefaultCurrencySet": "0F65742E-317F-44B0-A4DE-EBF06209E8EA"  
Update the Id for new items created in step first -
 CommerceAuthoring-1.0.0.json  
 CommerceMinions-1.0.0.json  
 CommerceShops-1.0.0.json   
 CommerceAuthoring-1.0.0.json  
 Don't forget to bootstrap as we have changed the configuration here. It's that much easy!

Let me know if you have any questions.

No comments:

Post a Comment