ePages 6.11.0 - DE_EPAGES/TrustedRating/API/TrustedRating.pm

Package DE_EPAGES::TrustedRating::API::TrustedRating

This package provides the main trusted rating functions.

@EXPORT_OK
UpdateRatingState
GetWidget
GetTrustedRatingShops
RatingInfoMail

Functions

GetTrustedRatingShops
GetWidget
RatingInfoMail
UpdateRatingState

GetTrustedRatingShops

Returns all shops with min. one active trusted rating account.

Syntax
$aShops = GetTrustedRatingShops();
Return
$aShops (ref.array.object)
array of shop objects

GetWidget

Gets the widget image from trusted shops.

Syntax
GetWidget($Shop, $TrustedRatingID);
Input
$Shop (object)
shop object
$TrustedRatingID (string)
trusted rating identifier

RatingInfoMail

Sends mail to user of order with is dispatched or shipped on given date.

Syntax
RatingInfoMail($Shop);
Input
$Shop (object)
shop object

UpdateRatingState

Checks the trusted rating ID via webservice and sets the activation state.

Syntax
UpdateRatingState($TrustedRatingID, $Activation);
Input
$TrustedRatingID (string)
trusted rating identifier
$Activation (boolean)
activation state: 0 - deactivated, 1 - activated