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:
-
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
-
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>
-
Save and close the file
-
Restart IIS.