ShowConfig for CD and other Roles

This short article is about a neat trick I found to show the whole Sitecore configuration for other roles than CM. You surely already know that the whole complete Sitecore configuration, resulting in the merging of all the *.config files, can be seen at the following URL: As this URL is prefixed by /sitecore, itContinue reading “ShowConfig for CD and other Roles”

Not all countries have State Provinces !

While upgrading a Sitecore 10.0 Commerce solution to the new Sitecore 10.2 version, we found out that Sitecore has written a US-centred piece of code, during the validation of the user of a new shopping cart. So if you live outside the US and have this error message when creating a new shopping cart inContinue reading “Not all countries have State Provinces !”

Use Thunder Client (VS Code) instead of Postman !

For years I have been using Postman in order to get information about my XC environments and data. And for years I have been tired of this memory-hungry elephant where I just needed a simple REST client. It looks like that, unlike U2, I have now found what I’m looking for 🙂 The solution isContinue reading “Use Thunder Client (VS Code) instead of Postman !”

Create Sitecore Commerce items with a script – Part 4 (Sellable Items)

In the previous articles of this serie, we have seen how to script the creation of Catalog and Category items in XC. Now we are taking a step further in the complexity and we’ll create a Sellable Item, with some properties. A SellableItem may have its own properties. You can use Composer Templates or EntityContinue reading “Create Sitecore Commerce items with a script – Part 4 (Sellable Items)”

Create Sitecore Commerce items with a script – Part 3 (Category)

In the previous articles of this serie, I have shown you how to create some utility scripts and how to create a new catalog in your XC database. We’ll create now some categories under our new catalog. Let’s open Business Tools, create two categories and see what request and payload are sent from our clientContinue reading “Create Sitecore Commerce items with a script – Part 3 (Category)”

Create Sitecore Commerce items with a script – Part 2 (Catalog)

In the last article, we created the utility functions to get the authorization token and to build the request headers. Now let the fun begin and let’s create some items. In a new Sitecore Commerce repository, we’ll need a Catalog to begin with. We can check in the Postman API collection if there is aContinue reading “Create Sitecore Commerce items with a script – Part 2 (Catalog)”

Create Sitecore Commerce items with a script – Part 1 (Utils)

Importing and exporting single Sitecore Commerce items is not easy, there is no OOTB serialization of single items as we have for Sitecore CMS items. This is because Sitecore XC items are virtual items which are shown in Content Editor using Commerce Engine Connect Catalog Provider. The provider is defined in Sitecore.Commerce.Engine.DataProvider.config There is aContinue reading “Create Sitecore Commerce items with a script – Part 1 (Utils)”

Using Sitecore.MainUtil – Part 1

Sitecore has a relatively unknown helper class which contains lots of cool functions that are very useful for developers. In this article, I will list those functions that are present in Sitecore 10. Those functions will be later moved to StringUtil and FileUtil classes. Other utilities classes are: Sitecore.StringUtil Sitecore.IO.FileUtil Sitecore.DateUtil Sitecore.Web.HtmlUtil Sitecore.Web.WebUtil Sitecore.Xml.XmlUtil WorkingSetSizeContinue reading “Using Sitecore.MainUtil – Part 1”

La classe Sitecore.MainUtils – Partie 1

Sitecore a une classe d’assistance relativement inconnue qui contient de nombreuses fonctions intĂ©ressantes très utiles pour les dĂ©veloppeurs. Dans cette sĂ©rie d’articles, je vais lister les fonctions prĂ©sentes dans la classe Sitecore.Mainutils de Sitecore 10. Ces fonctions seront plus tard dĂ©placĂ©es vers les classes StringUtil et FileUtil. Les autres classes d’assistance sont: Sitecore.StringUtil Sitecore.IO.FileUtil Sitecore.DateUtilContinue reading “La classe Sitecore.MainUtils – Partie 1”