Class ShippingEstimateWrapper
java.lang.Object
org.apache.ofbiz.order.shoppingcart.shipping.ShippingEstimateWrapper
-
Constructor Summary
ConstructorDescriptionShippingEstimateWrapper
(LocalDispatcher dispatcher, ShoppingCart cart, int shipGroup) -
Method Summary
Modifier and TypeMethodDescriptionGets all estimates.getShippingEstimate
(GenericValue storeCarrierShipMethod) Gets shipping estimate.Gets shipping methods.getShippingTimeEstimateInDay
(GenericValue storeCarrierShipMethod) Gets shipping time estimate in day.Gets shipping time estimates.static ShippingEstimateWrapper
getWrapper
(LocalDispatcher dispatcher, ShoppingCart cart, int shipGroup) protected void
loadEstimates
(BigDecimal totalAllowance) Load estimates.protected void
Load shipment time estimates.protected void
Load shipping methods.
-
Constructor Details
-
ShippingEstimateWrapper
-
-
Method Details
-
getWrapper
public static ShippingEstimateWrapper getWrapper(LocalDispatcher dispatcher, ShoppingCart cart, int shipGroup) -
loadShippingMethods
protected void loadShippingMethods()Load shipping methods. -
loadEstimates
Load estimates.- Parameters:
totalAllowance
- the total allowance
-
loadShipmentTimeEstimates
protected void loadShipmentTimeEstimates()Load shipment time estimates. -
getShippingMethods
Gets shipping methods.- Returns:
- the shipping methods
-
getAllEstimates
Gets all estimates.- Returns:
- the all estimates
-
getShippingEstimate
Gets shipping estimate.- Parameters:
storeCarrierShipMethod
- the store carrier ship method- Returns:
- the shipping estimate
-
getShippingTimeEstimates
Gets shipping time estimates.- Returns:
- the shipping time estimates
-
getShippingTimeEstimateInDay
Gets shipping time estimate in day.- Parameters:
storeCarrierShipMethod
- the store carrier ship method- Returns:
- the shipping time estimate in day
-