The atg.commerce.pricing.FixedPriceShippingCalculator
class is a shipping calculator that sets the shipping amount to a fixed price.
The FixedPriceShippingCalculator
also contains the following properties:
addAmount
: If the propertyaddAmount
istrue
, instead of setting the price quote amount to the value of theamount
property, the calculator adds the amount to the current amount in the price quote. This behavior can be used to configure a “surcharge” calculator, which increases the shipping price.shippingMethod
: TheshippingMethod
property is set to the name of a particular delivery process. For example: ground, 2-day or next day.ignoreShippingMethod
: Setting theignoreShippingMethod
property totrue
prevents this calculator from exposing the shipping method name (throughgetAvailableMethods
). In addition, this calculator always attempts to perform pricing. This option is useful for situations in which you do not want to give customers a choice of different shipping methods.