Return states of orders and items are identified using the ReturnableStates class. The localized values for these states are maintained and defined in the atg.commerce.states.
ReturnStateResources.properties
file.

State

Description

ITEM_RETURNABLE

The item can be returned. Note that this is the only state that is considered returnable. All other states will be considered not returnable.

ITEM_ALREADY_RETURNED

The item cannot be returned as it has already been completely returned.

ITEM_NOT_RETURNABLE

The item cannot be returned for reasons that may have occurred within the order, such as the item never arrived.

ITEM_NON_RETURNABLE

This item’s product or SKU has been flagged in the catalog as non-returnable. Items like Final Sale Items, or food items can be flagged within the catalog as a non-returnable item.

ORDER_RETURNABLE

The order can be returned. Note that this is the only state that is considered returnable. All other states will be considered not returnable.

ORDER_NOT_FULFILLED

The order has not been fulfilled, and as such, cannot be returned.

ORDER_NO_ITEMS_RETURNABLE

There are no items within the order that can be returned.

ORDER_NOT_RETURNABLE

The order cannot be returned.

By modifying the descriptions in the atg.commerce.states.ReturnStateResources.properties resource file, you can configure the site pages to provide more detailed information when presenting returnable states. For example, the site page can display “This order is older than 60 days, and cannot be returned.”

The IsReturnable droplet provides the fully localized description of the returnable state for display on pages. Refer to the Return Servlet Beans section for information on the IsReturnable droplet.


Copyright © 1997, 2016 Oracle and/or its affiliates. All rights reserved. Legal Notices