Interim fix IV23778 enhances the Catalogs tool to be able to
view and edit product data that contains offer prices with conflicting or overlapping quantity
ranges or date ranges. You must update some files for Management Center to adapt to the
enhancement.
Before you begin
Install the cumulative interim fix for Feature Pack 5, JR53048.fep.For information about
how to install an interim fix, see
Procedure
-
Start WebSphere Commerce Developer.
-
Open the
LOBTools/WebContent/config/commerce/catalog/listViewDefinitions/PricingObjectGrid.def
file.
-
Under the "
catOfferObjectGrid
" class, add the following code snippet
<GridNumeric editable="true" name="precedence" propertyName="precedence"
text="${catalogResources.precedence_ColumnHeader}" visible="true" width="120"/>
<GridDateTime editable="true" name="startDate" propertyName="startDate"
text="${catalogResources.startDate_ColumnHeader}" visible="false" />
<GridDateTime editable="true" name="endDate" propertyName="endDate"
text="${catalogResources.endDate_ColumnHeader}" visible="false" />
-
Under the "
catInheritedOfferObjectGrid
" class, add the following code
snippet
<GridNumeric editable="true" name="precedence" propertyName="precedence"
text="${catalogResources.precedence_ColumnHeader}" visible="true" width="120"/>
<GridDateTime editable="true" name="startDate" propertyName="startDate"
text="${catalogResources.startDate_ColumnHeader}" visible="false" />
<GridDateTime editable="true" name="endDate" propertyName="endDate"
text="${catalogResources.endDate_ColumnHeader}" visible="false" />
-
Open the
LOBTools/WebContent/config/commerce/catalog/objectDefinitions/CatalogCommonObjectDefinitions.def
file.
-
Under the "
catBaseCatalogEntryOffer
" class, in the
<UpdateService>
element, add new properties
<ServiceParam name="precedence" optional="true" propertyName="precedence"/>
<ServiceParam name="startDate" optional="true" propertyName="startDate"/>
<ServiceParam name="endDate" optional="true" propertyName="endDate"/>
-
Under the "
catBaseCatalogEntryOffer
" class, add new property definitions
<PropertyDefinition
displayName="${catalogResources.catalogEntryOfferPricePrecedence_DisplayName}"
propertyName="precedence" type="number"/>
<PropertyDefinition
displayName="${catalogResources.catalogEntryOfferPriceStartDate_DisplayName}"
propertyName="startDate" type="datetime"/>
<PropertyDefinition
displayName="${catalogResources.catalogEntryOfferPriceEndDate_DisplayName}"
propertyName="endDate" type="datetime"/>
-
Open the
LOBTools/WebContent/config/commerce/price/listViewDefinitions/PriceListListView.def
file.
-
Under the "
prcPriceEntryGrid
" class, add new property definitions
<GridNumeric editable="true" name="precedence" propertyName="precedence"
text="${catalogResources.precedence_ColumnHeader}" visible="true" width="120"/>
<GridDateTime editable="true" name="startDate" propertyName="startDate"
text="${catalogResources.startDate_ColumnHeader}" visible="true" />
<GridDateTime editable="true" name="endDate" propertyName="endDate"
text="${catalogResources.endDate_ColumnHeader}" visible="true" />
-
Open the
LOBTools/WebContent/config/commerce/price/objectDefinitions/PriceListPrimaryObjectDefinition.def
file.
-
Under the "
prcPriceEntryObjectDefinition
" class, add new property
definitions
<PropertyDefinition
displayName="${catalogResources.catalogEntryOfferPricePrecedence_DisplayName}"
propertyName="precedence" type="number"/>
<PropertyDefinition
displayName="${catalogResources.catalogEntryOfferPriceStartDate_DisplayName}"
propertyName="startDate" type="datetime"/>
<PropertyDefinition
displayName="${catalogResources.catalogEntryOfferPriceEndDate_DisplayName}"
propertyName="endDate" type="datetime"/>
-
Under the "
prcPriceEntryObjectDefinition
" class, and under the
<UpdateService>
element, add new properties
<ServiceParam name="startDate" optional="true" propertyName="startDate"/>
<ServiceParam name="endDate" optional="true" propertyName="endDate"/>
<ServiceParam name="precedence" optional="true" propertyName="precedence"/>
-
Find the
definitionName="prcPriceEntryObjectDefinition"
element.
-
Within the element, find the property definition with
propertyName="minimumQuantity"
.
For
example,
<PropertyDefinition displayName="${prcPriceResources.value}" minValue="1" propertyName="minimumQuantity" type="number" required="true"/>
-
Delete the
minValue
attribute.
For
example,
<PropertyDefinition displayName="${prcPriceResources.value}" propertyName="minimumQuantity" type="number" required="true"/>
-
Open the
LOBTools/WebContent/WEB-INF/config/com.ibm.commerce.price/wc-price-clientobjects.xml
file.
-
Under the "
Offer
" class, add new elements
<_config:URLParameter name="precedence" nounElement="/PriceEntry/precedence"/>
<_config:URLParameter name="startDate" nounElement="/PriceEntry/startDate"/>
<_config:URLParameter name="endDate" nounElement="/PriceEntry/endDate" />
-
Under the "
PriceEntry
" class, add new elements
<_config:URLParameter name="startDate" nounElement="/PriceEntry/startDate"/>
<_config:URLParameter name="endDate" nounElement="/PriceEntry/endDate" />
<_config:URLParameter name="precedence" nounElement="/PriceEntry/precedence"/>
-
Under the "
ComponentOffer
" class, add new elements
<_config:URLParameter name="startDate" nounElement="/PriceEntry/startDate"/>
<_config:URLParameter name="endDate" nounElement="/PriceEntry/endDate" />
<_config:URLParameter name="precedence" nounElement="/PriceEntry/precedence"/>
-
Open the
LOBTools/src/com.ibm.commerce.catalog.client.lobtools.properties/CatalogLOB_en_US.properties
file.
-
Add the following properties if the properties do not exist
precedence_ColumnHeader=Precedence
startDate_ColumnHeader=Start
DateendDate_ColumnHeader=End Date
catalogEntryOfferPricePrecedence_DisplayName=Precedence
catalogEntryOfferPriceStartDate_DisplayName=Start Date
catalogEntryOfferPriceEndDate_DisplayName=End Date
-
Open the
LOBTools\WebContent\WEB-INF\src\lzx\commerce\catalog\restricted\CatalogManagementResourceBundle.lzx
file.
-
Add the following properties if the properties do not exist
<wcfResourceBundleKey name="precedence_ColumnHeader"/>
<wcfResourceBundleKey name="startDate_ColumnHeader"/>
<wcfResourceBundleKey name="endDate_ColumnHeader"/>
<wcfResourceBundleKey name="catalogEntryOfferPricePrecedence_DisplayName"/>
<wcfResourceBundleKey name="catalogEntryOfferPriceStartDate_DisplayName"/>
<wcfResourceBundleKey name="catalogEntryOfferPriceEndDate_DisplayName"/>
-
Open the
LOBTools\WebContent\config\commerce\catalog\objectDefinitions\CatalogCommonObjectDefinitions.def
file.
-
Find the
<PropertryDefinition>
for the minimum quantity of the offer. The
property name is propertyName="minimumQuantity"
.
For
example,
<PropertyDefinition displayName="${catalogResources.catalogEntryOfferPriceMinimumQuantity_DisplayName}" minValue="1" propertyName="minimumQuantity" type="number"/>
-
Delete the
minValue
attribute.
For
example,
<PropertyDefinition displayName="${catalogResources.catalogEntryOfferPriceMinimumQuantity_DisplayName}" propertyName="minimumQuantity" type="number"/>
-
Deploy the LOBTools project from WebSphere Commerce Developer to your production
environment.
-
Export the LOBTools WebModule.
-
Deploy the updated LOBTools WebModule.