Sitecore uCommerce showconfig

February 7, 2016 at 8:25 PMVicent Galiana

Every Sitecore developer knows (or should know) about the configuration transformation files under the folder app_config/include.

When Sitecore starts, it merges those file into a single xml using custom transformation attributes to then, read its settings from there. We as developers, create new configuration files hoping that Sitecore understands them as we want. To make our life easier Sitecore provides a page to check the results of those transformations, so we can see the final result.

uCommerce follows a similar pattern: uCommerce configuration files are stored under \sitecore modules\Shell\uCommerce\Configuration. Here you'll find several files where uCommerce splits its configuration and where, again, we can introduce changes.

One of the differences is that uCommerce recommends adding any customization to the file custom.config, instead of using our own files.

Another difference is that uCommerce doesn't provide a page to display the combination of all the different xml files in one single view.

To fill this gap, and with a bit of reverse engineering I have created this module available in the marketplace, which does exactly that, display the same xml as uCommerce reads to load its configuration, so you can search in one place within uCommerce configuration.

Simply install the package on top of a Sitecore instance (tested with Sitecore 8) and uCommerce (tested with uCommerce 6.7) and then visit /sitecore/admin/showucommerceconfig.aspx

This is just a PoC I built after the online uCommerce training, maybe using the worst solution possible, but it seems to work and I had fun building it.

I'll try to improve it if anybody finds it useful. Any comments are welcomed!!!

Posted in: SiteCore | uCommerce

Tags: