Interim fix JR54177 fixes an issue where a business user cannot activate promotions that
have public codes if the promotions were edited within the promotion list
view.
To enable this fix, you must implement and deploy changes to code that is reserved for client
customization.
Before you begin
Ensure that the latest cumulative
interim fix is installed:
For information about
how to install an interim fix, see
Procedure
-
Start WebSphere Commerce.
-
Open the J2EE perspective and select the Enterprise
Explorer view.
-
Go to the folder.
-
Open the PromotionPrimaryObjectDefinition.def file.
-
Search for the "storeId", "promotionCodes", and
"parentStoreID"
ServiceParam
nodes that are under the
SavePromotion
update service.
For
example,
<UpdateService sendMultiValues="true" url="/cmc/SavePromotion">
<ServiceParam name="storeId" parameterName="storeId">
<EnablementCondition checkObjectDefinition="true" conditionId="promotionCondition" enablementValue="Promotion" propertyName="objectType"/>
</ServiceParam>
<ServiceParam name="parentStoreId" parameterName="storeId" propertyName="objectStoreId">
<EnablementCondition checkObjectDefinition="true" conditionId="promotionCondition" enablementValue="InheritedPromotion" propertyName="objectType"/>
</ServiceParam>
...
<ServiceParam name="promotionCodes" objectPath="PromotionCode" optional="true" propertyName="code"/>
-
Delete the code that is in bold.
-
Update the storeId and promotionCodes nodes to
resemble the following code:
<UpdateService sendMultiValues="true" url="/cmc/SavePromotion">
<ServiceParam name="storeId" parameterName="storeId" propertyName="objectStoreId"/
>
...
<ServiceParam name="promotionCodes" objectPath="PromotionCode" optional="true" propertyName="code" loadChildren="true"
/>
Summary of changes:
- Add the propertyName="objectStoreId" attribute to the storeId node, and
then close the ServiceParam tag.
- Add the loadChildren="true" attribute to the promotionCodes node.
-
Save the file.
-
Open a new browser window and open the Management Center.
-
Test your changes in Management Center to
ensure that you can now activate promotion codes.
-
Export and deploy the changes to your runtime environment. For more information, see Deploying a WAR module.