ePages 6.11.0 - DE_EPAGES/ShippingOption/API/TLE/ShippingOptionHandler.pm

Package DE_EPAGES::ShippingOption::API::TLE::ShippingOptionHandler

Implements TLE functions for shipping options.

Functions

ShippingOptionPrice

ShippingOptionPrice

Returns the price of a shipping option for a given currency and tax model.

Syntax
#FUNCTION("ShippingOptionPrice", #ShippingOption, #Currency, #TaxModel, $ExtraPrecision)
Example
#LOCAL("CurrencyID", #INPUT.Currency)
  #LOCAL("Price", #FUNCTION("ShippingOptionPrice", #Object, #INPUT.Currency, #Shop.TaxModel, $ExtraPrecision))
    #IF(#DEFINED(#Price))
      #Price[money]
    #ENDIF
  #ENDLOCAL
#ENDLOCAL
Input
#ShippingOption (object)
shipping option object
#Currency (string)
currency code, e.g. "EUR"
#TaxModel (int)
tax calculation model (0=net, 1=gross)
#ExtraPrecision (int)
extra precision (0=no, 1=yes)