ePages 7.26.0 - DE_EPAGES/Shop/API/Shop.pm

Package DE_EPAGES::Shop::API::Shop

This package provides the shop functions.

@EXPORT_OK
GetNextNo
SaveShopLogo
SynchronizeUnityShop

Functions

GetNextNo
SaveShopLogo
SynchronizeUnityShop

GetNextNo

Returns the next number alias for this shop.

Syntax
$NextNo = GetNextNo($Shop, $ClassName, $Parent, $IncNo);
Example
$FormNo = GetNextNo($Shop, 'Invoice', $Order, 0);
Input
$Shop (DE_EPAGES::Shop::API::Object::Shop)
shop
$ClassName (string)
class name
$Parent (DE_EPAGES::Object::API::Object::Object)
parent object (optional)
$IncNo (boolean)
increment number (optional, default: true)
Return
$NextNo (string)
new number alias suitable for given class name

SaveShopLogo

Saves the shop logo.

Syntax
my $CurrentLogo = SaveShopLogo($Shop, $Form);
Input
$Shop (DE_EPAGES::Shop::API::Object::Shop)
shop
$Form (object)
form object
Return
$CurrentLogo (string)
the actual shop logo path relative to the shops publicpath

SynchronizeUnityShop

Synchronizes all given shop attributes with the related Unity shop, which are relevant for the latter.

Syntax
SynchronizeUnityShop($Shop, $aShopAttributes);
Input
$Shop (object)
shop
$aShopAttributes (ref.array.string)
list of shop attribute names