ePages 6.11.0 - DE_EPAGES/Order/API/TLE/OrderHandler.pm

Package DE_EPAGES::Order::API::TLE::OrderHandler

Implements system-wide TLE functions.

Functions

CANAddToBasket

CANAddToBasket

Returns true if the element (for example payment method, or shipping method) can added to the basket. The element must implement the method canAddToBasket($hVars). like DE_EPAGES::Shipping::API::Object::ShippingMethod::canAddToBasket DE_EPAGES::Payment::API::Object::PaymentMethod::canAddToBasket. TLE function adds Container,CurrencyID and TaxModel to $hVars.

Syntax
#FUNCTION("CANAddToBasket", #LineItemContainer.Object, #Element.Object)
#IF(#FUNCTION("CANAddToBasket", #Basket.LineItemContainer.Object, #ShippingMethod.Object))
  Set shipping to: #ShippingMethod.NameOrAlias
#ENDIF
Input
#LineItemContainer (object)
line item container
#Element (object)
shipping method or payment method