Setting Up uCommerce on a Content Delivery Server

Posted 4 March 2016 12:00 AM by Vicent Galiana

Installing uCommerce on a content delivery server is pretty simple, nothing new, just install the package on Sitecore and done.

Perfect! Everything is up and running, but what if now you follow the standard procedure of "security hardening" for a CD server?

One of the usual steps is to remove any link to the master database. You do it, and nothing happens. Sometimes uCommerce must read items directly from the Sitecore tables and by default it reads it from the master database. One example is the confirmation emails; uCommerce will fail with the error: Could not find configuration node: databases/database[@id='master']

You can control the particular database uCommerce reads the items from by changing the property "nameofcontentdatabase" of the component "SitecoreContext". By default, this configuration is stored in the configuration file shell.config. However, uCommerce recommends to apply those changes in the custom.config file instead of modifying any uCommerce file directly.

How to install uCommerce? Simple:

  • Copy the following code into custom.config

<!-- Services --> <component id="SitecoreContext" service="UCommerce.Sitecore.ISitecoreContext, UCommerce.Sitecore" type="UCommerce.Sitecore.SitecoreContext, UCommerce.Sitecore"> <parameters> <backEndDomainName>sitecore</backEndDomainName> <nameOfContentDatabase>web</nameOfContentDatabase> </parameters> </component>

  • Restart your application

In my opinion, we should always apply this change as our users are expecting to be able to edit in the master database without those changes being applied on the front-end. Additionally, in scenarios such as this, the email will be generated with the content from master which is not the expected behaviour.


Add your comment





intranet Modern SharePoint teamwork employee engagement digital workspace SharePoint JavaScript Windows Azure Digital Transformation staff satisfaction productivity Microsoft Teams Office 365 Yammer cms content management system agile GDPR Microsoft Graph collaboration Microsoft sharepoint 2016 upgrade migration SharePoint Online 2016 Tech Trends Digital Disruption Context marketing marketing SharePoint 2010 SharePoint 2013 TFS Git security kentico Analytics jquery QA Quality Assurance testing content management websites Sitecore sitecore marketplace sitecore module cloud Microsoft Cloud Storage digital strategy technical consulting sitecore modules Experience database Sitecore 7 Sitecore 8 support account management customer experience Data Storage cms integration front end front end development prototype Cloud Storage StorSimple Front-end Development Layout SharePoint 2013 colour palette UI design website design log viewer sitecore cms website Azure big data business-critical sharepoint accessibility android apple chrome clear people clearpeople debug emulator ios mobile testing opera resize adobe desktop flash ie10 internet explorer 10 metro windows 8 bcsp Advanced System Reporter reporting framework ControlMode form control master page placeholder publishing console SharePoint 2007 SharePoint error search search results search values software testing testing scenario audit content information architecture retention schedules PowerShell QuickLaunch scripts SharePoint server 2010 business solutions metalogix replication replicator storagepoint stena technet UK Technet picture library slideshow web part RTM released to manufacturing caml caml query MOSS 2007 query infopath