Interim fix JR54936 fixes an issue where shoppers might encounter "Order is
invalid" errors when trying to update the shopping cart that has items that are out of
stock.
To enable the behavior of automatically removing out of stock order items, complete the following
procedure.
Before you begin
Install the interim fix.
Note: If you are on Fix Pack 9, this fix is included
in the cumulative interim fix
JR59483.fp. It is recommended that you install the
cumulative interim fix instead of the individual fix.
For information about
how to install an interim fix, see
Procedure
-
Open the
WC_eardir\xml\config\com.ibm.commerce.order-ext\wc-admin-component.xml
file.
Note: If the path does not exist, complete the following substeps to create a custom path and
configuration file.
-
Create the com.ibm.commerce.order-ext directory to resemble the following
path WC_eardir\xml\config\com.ibm.commerce.order-ext.
-
Go to the default inventory component configuration file at the following path:
WC_eardir\xml\config\com.ibm.commerce.order
-
Copy the wc-admin-component.xml file to the new
WC_eardir\xml\config\com.ibm.commerce.order-ext\
folder.
-
Open the copied wc-admin-component.xml in an editor. This copy becomes the
customized version of the wc-admin-component.xml file.
-
Inside the
<_config:extendedconfiguration>
code, add the following code
sample:
<_config:configgrouping name="RemoveOutOfStockOrderItems">
<_config:property name="enabled" value="true"/>
</_config:configgrouping>
-
To update the changes in a development environment, start, or restart the WebSphere Commerce
server.
-
Export and deploy the changes to your runtime environment. For more information, see Deploying J2EE assets for a single file.