Did you get a chance to digg further? Jacques
biletnikov wrote:
Hello, you know that the shipment cost estimation can be specified via "Shipping Estimates" module by using simple formulas and conditions , or by entering a custom shipment method. There is the *calcShipmentCostEstimate* service which is responsible for the shipment cost estimation. The interface for this service has (since OFBiz 11.04): <attribute name="shipmentCustomMethodId" type="String" mode="IN" optional="true"/> <attribute name="shipmentGatewayConfigId" type="String" mode="IN" optional="true"/> attributes, but they are not used in this service. This custom method logic for shipments is out of this service and can be found in: org.ofbiz.order.shoppingcart.shipping.ShippingEvents.java there is getExternalShipEstimate method which has the implementation. But actually, this logic is placed in the event class. I think it should be moved to *calcShipmentCostEstimate* service, to do not split it via the service and event. Also, these not used attributes (shipmentCustomMethodId, shipmentGatewayConfigId) say me that this refactoring was not finished. And I do not see any obstacles to do that now. Am I right? ----- Kind regards, Sergei