Tuesday, November 17, 2015

Adding New Shipping Method in ATG

1.      Create the Shipping Calculator
/com/commerce/shipping/FedEx.properties
$class=atg.commerce.pricing.FixedPriceShippingCalculator
# name of shipping method
shippingMethod=FedEx
# costs
amount=10.0
# pricing tools
pricingTools=/atg/commerce/pricing/PricingTools

2.      Add the shipping calculator to Shipping Engine
/atg/commerce/pricing/ShippingPricingEngine.properties

preCalculators+=/com/commerce/shipping/FedEx

No comments:

Post a Comment