By default ATG won't persists price information for incomplete orders. If you print incomplete order from dyn/admin, you won't get price information.
Incomplete Order without price information :
=========================================================================
------ Printing item with id: o120001
<add-item item-descriptor="order" id="o120001">
<set-property name="description"><![CDATA[o120001]]></set-property>
<set-property name="relationships"><![CDATA[r30001]]></set-property>
<set-property name="commerceItems"><![CDATA[ci3000001]]></set-property
<set-property name="shippingGroups"><![CDATA[sg120001]]></set-property>
<set-property name="profileId"><![CDATA[260000]]></set-property>
<set-property name="siteId"><![CDATA[homeSite]]></set-property>
<set-property name="orderClassType"><![CDATA[default]]></set-property>
<set-property name="creationSiteId"><![CDATA[homeSite]]></set-property>
<set-property name="creationDate"><![CDATA[10/12/2016 22:50:01]]></set-property>
<set-property name="paymentGroups"><![CDATA[pg120001]]></set-property>
</add-item>
=========================================================================
To achieve this update orderStateSaveModes (Order state to save mode mapping) property of /atg/commerce/order/processor/SavePriceInfoObjects/ processor [add mapping for INCOMPLETE order].
Example Mapping :
INCOMPLETE=ALL
The valid save modes are :
- ALL : Saves all PriceInfo types.
- ALL_NO_AUDIT : Saves all PriceInfo types, but does not save audit trail information (pricing adjustments and detailed price info objects).
- ORDER : Saves only the OrderPriceInfo object (not shipping, item, tax).
- ORDER_NO_AUDIT : Saves only the OrderPriceInfo object, with no audit information.
- NONE : Saves no pricing information.
ProcSavePriceInfoObjects also includes a defaultSaveMode to use if the current order state does not have an entry in the orderStateSaveModes map.
Incomplete Order with price information (post above configuration change) :
=========================================================================
------ Printing item with id: o120001
<add-item item-descriptor="order" id="o120001">
<set-property name="description"><![CDATA[o120001]]></set-property>
<set-property name="relationships"><![CDATA[r30001]]></set-property>
<set-property name="commerceItems"><![CDATA[ci3000001]]></set-property>
<set-property name="shippingGroups"><![CDATA[sg120001]]></set-property>
<set-property name="profileId"><![CDATA[260000]]></set-property>
<set-property name="siteId"><![CDATA[homeSite]]></set-property>
<set-property name="orderClassType"><![CDATA[default]]></set-property>
<set-property name="creationSiteId"><![CDATA[homeSite]]></set-property>
<set-property name="taxPriceInfo"><![CDATA[ai10005]]></set-property>
<set-property name="creationDate"><![CDATA[10/12/2016 22:50:01]]></set-property>
<set-property name="priceInfo"><![CDATA[ai10001]]></set-property>
<set-property name="paymentGroups"><![CDATA[pg120001]]></set-property>
</add-item>
=========================================================================
No comments:
Post a Comment