ePages 6.13.1 - DE_EPAGES/MultiStore/API/Object/AffiliateProduct.pm

Package DE_EPAGES::MultiStore::API::Object::AffiliateProduct

object interface for AffiliateProduct.

Base
DE_EPAGES::Product::API::Object::Product

Functions

className
cloneToSubShop
featureName
getDirectListPrice
getSite
incrementFeature

className

Returns the class name, used for DAL access.

Syntax
$ClassName = $Product->className;
Return
$ClassName (String)
class name

cloneToSubShop

Clones an affiliate product to a sub shop

Syntax
cloneToSubShop( $SubShopParent );
Return
$SubShopProduct (object)
subshop product

featureName

Returns the feature name.

Syntax
$FeatureName = $Product->featureName;
Return
$FeatureName (String)
feature name (undef means no feature count)

getDirectListPrice

Returns the list price that is defined on directly on this product object. Returns undef if $Product is a sub product that does not have its own price and inherits its price from the super product. HAD TO BE OVERWRITTEN because the method was directly accessing the price map instead of calling get('ListPrices').

Syntax
$Value = $Product->getDirectListPrice($CurrencyID, $TaxModel);
Example
$Value = $Product->getDirectListPrice('EUR', 1);
Input
$CurrencyID (string)
currency code
$TaxModel (int)
tax model (1=gross/including tax, 0=net/without tax)
(optional, default=Product.Shop.InputTaxModel)
$ExtraPrecision (int)
extra precision
Return
$Value (float)
price

getSite

Returns the site of the current session, and if not set, use default implementation and get the site of this object

Syntax
$Site = $Object->getSite;
Return
$Site (object)
site object, see DE_EPAGES::Object::API::Object::Site

incrementFeature

Do not increment a feature on AffiliateProducts.

Syntax
incrementFeature()