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

Package DE_EPAGES::Shop::API::Shop

This package provides the shop functions.

@EXPORT_OK
GetNextNo
SaveShopLogo

Functions

GetNextNo
SaveShopLogo

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