Documentation

Ucommerce includes full API reference documentation and lots of helpful articles to help you build your e-commerce site as effortlessly as possible.

Topics Payment Providers
v7.18

Checklist for Updating Ucommerce

The basic process of updating Ucommerce from one version to another is straightforward when you’re running a default setup: You install the new package on top of the existing one and Ucommerce will figure out what needs to be migrated.

Database updates are handled automatically and will roll you forward without incident. XML files on the other hand are a little more tricky to merge so instead of trying to merge them Ucommerce will overwrite existing config files with newer versions to ensure that the config matches the rolled out binary version of Ucommerce; exactly as Umbraco does. This means that If you customized any of the Ucommerce configuration files you will have to reapply those changes.

Not to worry though Ucommerce will back up the files before resetting them. You’ll find the older versions sitting next the orignal file with a .backup extension.

Most of the time getting your settings back is a simple matter of copying back the backed up version of your configuration files and you’re done. The steps for manually reregistering your settings are outlined below.

image

Web.config

Web.config is an interesting file because it’s used by Umbraco and Ucommerce itself. During installation Ucommerce merges its configuration with the existing web.config contents preserving any settings not owned by Ucommerce, i.e. Umbraco, .NET, basically anything not known by Ucommerce.

Connection Strings

During install the Umbraco connection string is picked up and added to the Ucommerce configuration section to enable running Ucommerce in a separate database. If you’re running with a separate database you need to point Ucommerce at the other database once the update is complete.

image

Payment Method Services

Any custom payment method services for integrating payment gateways need to be registered in web.config. If you’ve created your own payment method service you’ll have to remember to reregister it once the update is complete. If you’re using the built-in ones you can omit this step. It’s important that you use the same name for your custom payment method service when you reregister it.

Payment method services are found in the section in web.config.

image

Individual Payment Method Service Configurations

Each payment method service built into Ucommerce comes with a configuration file. As these files are rolled out as part of the standard package install process they’re overwritten when you install a newer version of Ucommerce. As with any other file you’ll find your old version of the file sitting next to the new one with a .backup extension.

image

Pipelines

Pipelines are basically XML configuration files which control the tasks executed in each pipeline and the order of execution as well. If you’ve added your own pipeline tasks to the standard Ucommerce pipelines Basket, Checkout, ToCompletedOrder, ToCancelled, or SaveOrder you’ll have to add your custom tasks again after updating.

You’ll find the pipelines in the /umbraco/ucommerce/pipelines folder.

image

Components.config, Presenters.config, and XmlRenderings.config

All major components of Ucommerce are configured in a central XML file, which lets you override any of the default Ucommerce behavior by configuring your own components. While this is not the most common extension point used you’ll still have to reregister your custom components if you’ve extended Ucommerce in this fashion.

Also web.config contains a reference to components.config in the which has to point at the correct file.

Presenters.config and XmlRenderings.config are referenced by Components.config and contains config for the UI pieces of Ucommerce. Specically the backend (Presenters) and the frontend (XmlRenderings).

Wrap Up

Ucommerce makes it very easy to update an existing installation provided that you’re running with a standard configuration. There are a couple of things you need to be aware of if you’ve customized the standard configuration files. This check list will make it easy to ensure that you didn’t miss anything when you update your existing site with a newer version of Ucommerce.