ePages 7.28.0 - DE_EPAGES/Order/API/Shop.pm

Package DE_EPAGES::Order::API::Shop

This package provides the shop functions of order.

@EXPORT_OK
GetLatestOrderCreationDate
GetNextOrderNo
ProcessOrderDocumentTextAttributes
ProcessOrderDocumentTextAttributesByLanguageID
ShouldSplitShippingAndPaymentTax

Functions

GetLatestOrderCreationDate
GetNextOrderNo
ProcessOrderDocumentTextAttributes
ProcessOrderDocumentTextAttributesByLanguageID
ShouldSplitShippingAndPaymentTax

GetLatestOrderCreationDate

Returns the datetime of the latest created order of the given shop

Syntax
$LatestOrderCreationDate = GetLatestOrderCreationDate($Shop);
Input
$Shop (object)
shop object
Return
$LatestOrderCreationDate (datettime)
latest oder creation date

GetNextOrderNo

Returns the next order alias for this shop.

Syntax
my $OrderNo = GetNextOrderNo($Shop);
my $OrderNo = GetNextOrderNo($Shop, $Object);
Input
$Shop (DE_EPAGES::Shop::API::Object::Shop)
shop
$Object (DE_EPAGES::Object::API::Object::Object)
object; used if OrderNo shall contain this objects alias
Return
$OrderNo (string)
alias string for order

ProcessOrderDocumentTextAttributes

set shop attributes for order documents by the given PageType alias

Syntax
ProcessOrderDocumentTextAttributes($Shop, $PageTypeAlias, $Update);
Input
$Shop (DE_EPAGES::Shop::API::Object::Shop)
shop
$PageTypeAlias (string)
PageType to be processed
$Update (boolean)
attributes are always updated

ProcessOrderDocumentTextAttributesByLanguageID

set shop attributes for order documents by the given PageType alias and language id

Syntax
ProcessOrderDocumentTextAttributesByLanguageID($Shop, $PageTypeAlias, $Update, $LanguageID);
Input
$Shop (DE_EPAGES::Shop::API::Object::Shop)
shop
$PageTypeAlias (string)
PageType to be processed
$Update (boolean)
attributes are always updated
$LanguageID (string)
language id

ShouldSplitShippingAndPaymentTax

Returns, if the taxes for shipping and payment should be splitted for the given shop (address)

Syntax
my ($SplitShippingTaxes, $SplitPaymentTaxes) = @{ ShouldSplitShippingAndPaymentTax($Shop) };
Input
$Shop (object)
shop object
Return
$SplitShippingTaxes (boolean)
split shipping taxes
$SplitPaymentTaxes (boolean)
split payment taxes