RequiredShippingCy
Use the RequiredShippingCy pipeline component to verify that the shipping total has been set.
For more information, see Currency Enhancements.
Intended use: Order Processing pipeline, Shipping stage.
The RequiredShippingCy pipeline component returns error level 2 (OPPERRORLEV_WARN) when the handling total is not in the order form. Other errors return error level 3 (OPPERRORLEV_FAIL).
The RequiredShippingCy pipeline component also writes an error message to the _Purchase_Errors collection. The component uses a MessageManager object to retrieve error message text.
|
Constant |
Condition |
|---|---|
|
pur_badshipping |
The shipping total key does not exist in the order. |
The RequiredShippingCy pipeline component verifies that the _cy_shipping_totalkey exists in the order form. If the value does not exist, it uses the pur_badshipping constant to retrieve error message text from the MessageManager object and stores this message in the _Purchase_Errors collection of the Order dictionary.