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

Package DE_EPAGES::Shop::API::Shop

This package provides the shop functions.

@EXPORT_OK
GetNextNo
SaveShopLogo
UnityDeleteLogo
UnityUpdateLogo

Functions

GetNextNo
SaveShopLogo
UnityDeleteLogo
UnityUpdateLogo

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

UnityDeleteLogo

Deletes the Shop Logo in Unity via the Unity REST API.

Syntax
UnityDeleteLogo($Shop);
Input
$Shop (DE_EPAGES::Shop::API::Object::Shop)
The Shop

UnityUpdateLogo

Updates the Shop Logo in Unity via the Unity REST API.

Syntax
UnityUpdateLogo($Shop, $LogoURL);
Input
$Shop (DE_EPAGES::Shop::API::Object::Shop)
The Shop
$LogoURL (string)
New Shop Logo URL