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

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

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
#CANAddToBasket(#LineItemContainer, #Element)
#IF( #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