APAR status
Closed as program error.
Error description
After a promotion code is applied, attempting to view the promotion details might result in an error, such as: Error: The URL of the Marketing Ad Copy has no code specified, or has the wrong code. The DiscountDetailsDisplay.jsp file in the Aurora starter store contains a call to the AssociatedPromotionHandler by default to look up the promotion code by its name. The value of the qIncludePromotionCode parameter was incorrectly set to false. The correct value for this scenario is true.
Local fix
Customers can modify the DiscountDetailsDisplay.jsp file in the Aurora starter store so that the qIncludePromotionCode value is set to true, instead of false. 1) Open the <STORE_DIR>/ShoppingArea/DiscountSection/DiscountDetailsDisplay. jsp file for editing. 2) Locate the following code snippet in the JSP file: <wcf:rest var="calculationCodeList" url="/store/{storeId}/associated_promotion"> <wcf:var name="storeId" value="${WCParam.storeId}" encode="true"/> <wcf:param name="profileName" value="IBM_catalogEntryDetailed"/> <wcf:param name="q" value="byName"/> <wcf:param name="qCalculationUsageId" value="-1"/> <wcf:param name="qCode" value="${WCParam.code}"/> <wcf:param name="qIncludePromotionCode" value="false"/> </wcf:rest> 3) Update the value of the qIncludePromotionCode parameter to true: <wcf:rest var="calculationCodeList" url="/store/{storeId}/associated_promotion"> <wcf:var name="storeId" value="${WCParam.storeId}" encode="true"/> <wcf:param name="profileName" value="IBM_catalogEntryDetailed"/> <wcf:param name="q" value="byName"/> <wcf:param name="qCalculationUsageId" value="-1"/> <wcf:param name="qCode" value="${WCParam.code}"/> <wcf:param name="qIncludePromotionCode" value="true"/> </wcf:rest> 4) Save your changes and close the file. 5) Open the <STORE_DIR>/mobile30/ShoppingArea/DiscountSection/DiscountDetail sDisplay.jsp file. 6) Locate the following code snippet in the JSP file: <wcf:rest var="calculationCodeList" url="/store/{storeId}/associated_promotion"> <wcf:var name="storeId" value="${WCParam.storeId}" encode="true"/> <wcf:param name="profileName" value="IBM_catalogEntryPromotionDetailed"/> <wcf:param name="q" value="byName"/> <wcf:param name="qCalculationUsageId" value="-1"/> <wcf:param name="qCode" value="${WCParam.code}"/> <wcf:param name="qIncludePromotionCode" value="false"/> </wcf:rest> 7) Update the value of the qIncludePromotionCode parameter to true: <wcf:rest var="calculationCodeList" url="/store/{storeId}/associated_promotion"> <wcf:var name="storeId" value="${WCParam.storeId}" encode="true"/> <wcf:param name="profileName" value="IBM_catalogEntryPromotionDetailed"/> <wcf:param name="q" value="byName"/> <wcf:param name="qCalculationUsageId" value="-1"/> <wcf:param name="qCode" value="${WCParam.code}"/> <wcf:param name="qIncludePromotionCode" value="true"/> </wcf:rest> 8) Save your changes and close the file.
Problem summary
USERS AFFECTED: WebSphere Commerce Version 7 Feature Pack 8 customers. PROBLEM ABSTRACT: An error occurs when promotion details are displayed by default in the Aurora starter store discount details page. BUSINESS IMPACT: Shoppers cannot view the details of the promotion from the DiscountDetailsDisplay.jsp file. RECOMMENDATION:
Problem conclusion
The DiscountDetailsDisplay.jsp file in the Aurora starter store contains a call to the AssociatedPromotionHandler by default to look up the promotion code by its name. The value of the qIncludePromotionCode parameter was updated to true.
Temporary fix
Comments
APAR Information
APAR number
JR53382
Reported component name
WC BUS EDITION
Reported component ID
5724I3800
Reported release
700
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2015-05-19
Closed date
2015-06-15
Last modified date
2015-06-15
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
WC BUS EDITION
Fixed component ID
5724I3800
Applicable component levels
R700 PSY
UP
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSYSYL","label":"WebSphere Commerce Enterprise"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Line of Business":{"code":"LOB31","label":"WCE Watson Marketing and Commerce"}}]
Document Information
Modified date:
12 December 2021