ePages 7.48.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
#ShippingOptionPrice(#ShippingOption, #Currency, #TaxModel, $ExtraPrecision)
Example
#LOCAL("CurrencyID", #INPUT.Currency)
  #LOCAL("Price", #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)