Map a Sitecore Field Type to a Sitecore Commerce 8.0 powered by Commerce Server and Commerce Server 11.2 Property Type

All Sitecore Commerce 8.0 powered by Commerce Server and Commerce Server 11.2 property types are mapped, but you may want to change the Sitecore field control used to edit the value of a Commerce Catalog property type.

Complete the following prerequisites:

In your XML Editor:

  1. Create a new .config file in the Website\App_Config\Include directory of your Sitecore site.
    Note: The system applies the files in alphnumeric order. Ensure the file containing your overrides is named to run after CommerceServer.config, For example zzCommerceServer.config or My.Overrides.CommerceServer.config
  2. Create a configuration section that overrides the sitecorename attribute for the Commerce Catalog type you want to change.
    For example the following configuration changes all Commerce Catalog DateTime properties to be edited using the Sitecore Date control:
    <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
      <sitecore>
        <commerceServer>
          <catalogFieldTypeMapping>
            <field sitecorename="Date" cstypename="DateTime" patch:instead="field[@cstypename='DateTime']"/>
          </catalogFieldTypeMapping>
        </commerceServer>
      </sitecore>
    </configuration>
  3. Save and close the file
  4. Restart IIS.