Running uCommerce in Sitecore with Habitat, Unicorn and Synthesis.

sitecore-ucommerce-blog

We are currently working on a new Sitecore uCommerce build, that we have built on Habitat. In the build we are also making use of Unicorn and Synthesis.

This build is using Sitecore 8.2 rev. 170407, with a clean install of Habitat and we have installed Unicorn and Synthesis through NuGet. Everything was sitting nicely until we need to introduce uCommerce.

uCommerce is installed through a Sitecore package and can be found here - https://ucommerce.net/product/download. We had previously installed this package into a test environment, so we knew that everything worked.

The problem came when we tried to install the package. The installer would crash, and the site would then never respond, causing a stack overflow exception which would kill w3p process, a get stuck in a infinite loop.

You would then see this error in the Event Viewer – here’s our example;

sitecore-ucommerce-blog1

A video of this exception during installation can be viewed here:

 

There was nothing in the Sitecore logs, and uCommerce logs stated several “Initializing the System Data Provider data” that should only happen once. It was becoming a tricky issue to resolve, until we finally had a break through.

When talking with uCommerce we thought it might be because of the Sitecore's SiteManager.GetSites() getting overwritten by some of the services we were adding to the Sitecore solution (even though at first glance it seems strange if it could be e.g. Synthesis).

So in uCommerce GetSites() gives us a list of hostnames:

sitecore-ucommerce-blog2

So we tried to extend SitecoreDomainService with an empty implementation and see if this could resolve the issue as a work around.

We created a class, SitecoreDisabledDomainService that implements IDomainService, but doesn't do anything. It looks like this;

using System.Collections.Generic;

using UCommerce.Content;

namespace SitecoreDisabledDomainService

{

public class SitecoreDisabledDomainService : IDomainService

{

public IEnumerable GetDomains()

{

return new List();

}

public Domain GetDomain(string domainName)

{

return null;

}

public Domain GetCurrentDomain()

{

return null;

}

}

}

You can overwrite SitecoreDomainService yourself (in your own solution), by adding the SitecoreDisabledDomainService.cs. Then we added a config patch;

<configuration>
<!-- Configuration for SiteCore specific implementations -->
<components>

<component id="DomainService"
service="UCommerce.Content.IDomainService, UCommerce"
type="SitecoreDisabledDomainService.SitecoreDisabledDomainService, SitecoreDisabledDomainService" />

</components>
</configuration>

So the steps you would use to apply this fix (right from the start are);

Setup SiteCore (Habitat + Unicorn + Synthesis)

  1. Try to install Ucommerce. I assume it'll crash as in your video. Let it crash!
  2. Add the attached .dll and .config-file patch (mentioned above) to: [path]\Website\sitecore modules\Shell\uCommerce\Apps
  3. Do an "iisreset"
  4. In your browser go to the website, does the site spin up now? You’re welcome!
  5. Go to "Content Editor"
  6. If you expand to System > uCommerce > Hostnames, you'll now only see "Default" being listed.

Whatever your business, be it a regional or global brand, the content you produce plays a vital role in your success. You know that… hence you’re reading this.

A well formulated and executed content strategy not only drives more traffic, at the core, it defines what your business is and helps build a strong connection between you and your audiences.

So let's quickly look at why developing a coherent content strategy is important and how setting clear goals and understanding your audience will elevate your online performance. 

What is a Content Strategy?

It's basic right? Content is at the core of how you define the way your business presents itself and an effective strategy should look to ensure that tone of voice, messaging and the core values are surfaced across all channels, from service or product pages on your website, to blog posts, through social media updates blah blah blah.

But let's keep it simple - your content strategy should be a clear roadmap that connects your marketing activities to your business goals. Align to your customer’s wants and needs and engage them at every interaction point and boom, you're in business. 

Who are my Audience?

You likely start all your projects with this chalked on the wall because your business knows “exactly” who its customers are right? Sounds obvious but we often find its not been done forensically enough (not based on data), is too old (more than 12 months ago - forget it) or its a spin off from some brand work that was legitimately aspirational but doesn’t face the reality of who you your business is actually engaging today.

So start (or circle back) with audience research, building out those personas to understand their ambitions, their lifestyle, their pain points or concerns, and crucially their wants and needs - in your context. 

Do I need to tailor content?

As part of your research find out where your audiences spend their time online and how they interact with content: Some may spend time thoroughly researching a product or service, whereas other audiences may want their content to be quick, snappy or easily digestible in the form of a video, infographic or short blog posts.

 

Ultimately, the key is to produce a strategy that creates the type of content your customers want to see:

  • What are the problems that your product or service will help them solve?

  • Who are they most influenced by?

  • What voices influence their behaviour?

  • What type of content do they consume?

  • Where do they consume content and engage with brands?

Different Content, Different Objectives

 All content is not born equal: When producing your strategy, it is important that the objectives for each individual piece are defined, that these fulfil your marketing objectives and tie to the overarching goals for your business.

There are various content frameworks that exist to aid content development in this way, but one that is popular and effective is Google’s hero, hub and hygiene method: It provides a framework on developing content to achieve different goals and gives guidance on the effort needed to create each type of content.

Hero Content

Hero content is essentially campaign content, it is big splash ideas designed to appeal to a large audience with the aim of telling your brand’s story at scale. 

Ways of measuring hero include the amount of PR mentions or links from authoritative domains plus social interactions and mentions of your brand across all channels. 

Considering the scale of hero campaigns, this content is not regularly produced and is reserved for peak promotional times where it’s important for a business to stand out from their competitors.

Hub Content

Hub content is the stuff that keeps your audience engaged, it expands on the themes of product or service level content, educates users and helps create a connection between themselves and your brand.

Hygiene Content

Hygiene content is the bread and butter of any website, it is the BAU content for products and services, it is SEO focused and targets important keywords at a product, service or guide level.

How do I manage all this?

Content development is only one part of the ongoing work needed when working with an effective content strategy. We call it “feeding the beast” because it really is the fuel in your brand vehicle and once you start you really can’t stop (if it’s delivering results) but that’s where performance measurement comes in.

Your greatest gift in managing the outputs from your hero/hub/hygiene style efforts is to understand If your content is working. To truly deliver results your business must first understand the objectives and goals of each piece of content to effectively measure its success. That as a guiding light from day 1 will let you slow down, speed up, stop or start new content briefs and projects.

Remember - content strategies are not set in stone. They are living breathing things and should adapt and pivot as insights become available and your brand naturally evolves.

If ever you want to chat content and explore new initiatives we’re always here to help.

want to speak to one of our experts?

 
sag-author100x100
Sagittarius
sag-author100x100

Sagittarius

09 Oct 2017 - 10 minute read
share this

stay in the know, stay ahead.

Get the latest from the agency, including news, events and expert content.
explore services in the article
find out what we can do for you
read some of our case studies