ePages 6.13.2 - DE_EPAGES/Product/API/Shop.pm

Package DE_EPAGES::Product::API::Shop

This package provides shop functions of Customer.

@EXPORT_OK
GetProduct
GetProductImageSizes

Functions

GetProduct
GetProductImageSizes

GetProduct

Checks if there is a product for a given product alias and returns it. If 'UseMaster' is set then also super-products are returned, else the default sub-product is returned. If the alias doesn't clearly identify one product, e.g. in the case of sub-products, the first sub-product with this alias which is found will be returned. In case of entering the product number of a master product the default sub product will be returned. This function returns also termin resources (e.g. for cross-selling).

Syntax
$Product = GetProduct($Shop, $Alias);
Input
$Shop (object)
shop
$Alias (string)
alias string for product
$UseMaster (boolean)
(optional) if true then super-products are returned
Return
$Product (object)
product

GetProductImageSizes

Returns the size values for the different image variations of the product image.

Syntax
$hSizes = GetProductImageSizes($Shop);
Input
$Shop (object)
shop
Return
$Sizes (hash.ref)
image sizes