Calculation framework customization
In the WebSphere Commerce calculation framework, all calculation commands use the com.ibm.commerce.order.calculation.Item to access OrderItemAccessBean. To customize calculation commands, use the Item object, a wrapper class of the OrderItemAccessBean, instead of directly using the OrderItemAccessBean.
To customize calculation commands, for example, if you have shipping charges from an external
system, you must set the result back to the original supplied calculation framework. Extend the
supplied shipping calculation command and apply the result to the
ORDERITEMS
database table with the following code:
iItems[i].setShippingTotal(orderItemShippingCharges);
iItems[i}.commit();