WebSphere Commerce EnterpriseWebSphere Commerce Professional

Removing a preference page

You can set preferences in the IBM Sales Center user interface to make working with orders, customers, and stores easier. This page explains how to remove a preference page.

About this task

To remove a preference page, you need to associate it with an activity that is never enabled. All of the IBM Sales Center preference pages are associated with activities. These activities are defined in the com.ibm.commerce.telesales.ui.impl.activities fragment manifest file (fragment.xml). The activities are enabled if they belong to an activity set that is included in the active role. Sales Center activity sets and roles are declared in the com.ibm.commerce.telesales.ui.impl.roles fragment manifest file.

To remove one of the IBM Sales Center preference pages:

Procedure

  1. Create a new plug-in to contain your customizations (in our examples, called 'extensions').
  2. Locate the extension definition in the Eclipse platform extension point org.eclipse.ui.preferencePages and note its ID. The IBM Sales Center preference pages declarations are in the plugin.xml file in the com.ibm.commerce.telesales.ui.impl plug-in.
  3. To prevent a preference page activity from being enabled, it must be removed from all of the activity sets that include it. For example, to remove the communication preference page activity com.ibm.commerce.telesales.communicationsPreferencePageActivity, add the following extension definitions to your plug-in's plugin.xml file:
    
    <extension point="com.ibm.commerce.telesales.activitySets">
    <activitySet
    id="extensions.activitySet.adminPreferencePages"
    label="%adminPreferencePagesActivitySetName">
    <activity
    activityId="com.ibm.commerce.telesales.autologonPreferencePageActivity">
    </activity>
    <!-- Remove the communication preference page activity
    <activity
    activityId="com.ibm.commerce.telesales.communicationPreferencePageActivity">
    </activity>
    -->
    <activity
    activityId="com.ibm.commerce.telesales.productImagesPreferencePageActivity">
    </activity>
    <activity
    activityId="com.ibm.commerce.telesales.osgiAgentPreferencePageActivity">
    </activity>
    <activity
    activityId="com.ibm.commerce.telesales.installUpdatePreferencePageActivity">
    </activity>
    </activitySet>
    </extension>
    
  4. In the system configurator, assign the base activity set ID to the customized activity set ID:
    
    com.ibm.commerce.telesales.activitySet.adminPreferencePages=extensions.activitySet.adminPreferencePages