ePages 6.17.39 - DE_EPAGES/Shop/API/TLE/ShopHandler.pm

Package DE_EPAGES::Shop::API::TLE::ShopHandler

Implements system-wide TLE variables for shops

Functions

FeaturedActionAvailable
SuggestNextNo
VATID_EXAMPLE

FeaturedActionAvailable

Returns the feature status for the action

Syntax
#FeaturedActionAvailable(#ShopObject, #ActionObject, #FeatureObject)
Example
#IF( #FeaturedActionAvailable(#Shop.Object, #Action.Object) EQ "Allowed" ) ... #ENDIF
#IF( #FeaturedActionAvailable(#Shop.Object, #UNDEF, "ProductRating") NE "NotVisible") ... #ENDIF
Input
#ShopObject (object)
shop object
#ActionObject (object)
action object
#FeatureObject (object or string)
feature object (default: Action.Feature) or feature name
Return
#Status (string)
'NotAllowed' action not allowed for feature
or 'NotVisible' action not visible for feature
or 'Allowed' action allowed for feature
or 'LimitReached' feature limit reached for this action
or 'NotAssigned' action not assigned to a feature

SuggestNextNo

Returns a suggestion for a new alias.

Syntax
#SuggestNextNo(#ShopObject, #ClassName)
#SuggestNextNo(#ShopObject, #ClassName, #Object)
Example
#LOCAL("NewAlias", #SuggestNextNo(#Shop.Object, "Invoice", #Order.Object))
  #NewAlias
#ENDLOCAL
Input
#ShopObject (DE_EPAGES::Shop::API::Object::Shop)
shop object
#ClassName (String)
class name
#Object (DE_EPAGES::Object::API::Object::Object)
parent object (optional)
Return
#NewAlias (String)
new alias suitable for given class name

VATID_EXAMPLE

Returns an example for a valid vatid for the given country.

Syntax
#VATID_EXAMPLE(#CountryID)
Example
#LOCAL("VATID", #VATID_EXAMPLE(#Shop.Address.Country.CountryID))
  #VATID
#ENDLOCAL
Input
#CountryID (integer)
country identifier
Return
#VATID (string)
vatid example