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

Package DE_EPAGES::Product::API::Shop

This package provides shop functions of Customer.

@EXPORT_OK
GetProduct

Functions

GetProduct

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