ePages 6.17.52 - DE_EPAGES/MultiStoreConnector/API/ProductTypeAttributeSynchronization.pm

Package DE_EPAGES::MultiStoreConnector::API::ProductTypeAttributeSynchronization

hard core synchronization module regarding multistores it is possible to add or update product types to shops, using direct sql connection

Functions

addProductTypeAttributes
getPreDefAttributeAttributeMandatory
getPreDefAttributeAttributeNames
getPreDefAttributeAttributeParameterType
getProductTypeAttributesContent
new
verifyPreDefAttributeContent

addProductTypeAttributes

Function to add product types attributes to a specific subshop.

Syntax
$Result = $Synchronization->addProductTypeAttributes($ShopAlias, $ahProductTypeAttributesInfo);
Input
$ShopAlias (string)
alias of shop
$ahProductTypeAttributesInfo (ref.array.hash)
array with attribute information
Return
$Success (boolean)
returns true if everything is correct

getPreDefAttributeAttributeMandatory

get mandatory value for predefattribute parameter

Syntax
$Mandatory = $self->getPreDefAttributeAttributeMandatory($AttributeName);
Input
$AttributeName (string)
name of predefattribute parameter
Return
$Mandatory (bool)
true if predefattribute parameter is mandatory

getPreDefAttributeAttributeNames

get all existing predefattribute parameter names

Syntax
$aAttributeNames = $self->getPreDefAttributeAttributeNames();
Return
$aAttributeNames (ref.array)
allexisting predefattribute parameter names

getPreDefAttributeAttributeParameterType

get type of a predefattribute parameter

Syntax
$ParameterType = $self->getPreDefAttributeAttributeParameterType($AttributeName);
Input
$AttributeName (string)
name of predefattribute parameter
Return
$ParameterType (string)
parameter type

getProductTypeAttributesContent

Returns the product type attributes for product types which are specified by their GUIDs

Syntax
$Result = $self->getProductTypeAttributesContent($aGUIDs);
Input
$aGUIDs (ref.array)
global unique id's of product types to check
Return
$hProductTypes (ref.hash)
product types

new

Creates a new synchronization object of DE_EPAGES::MultiStoreConnector::API::ProductTypeAttributeSynchronization.

Syntax
$Synchronization = DE_EPAGES::MultiStoreConnector::API::ProductTypeAttributeSynchronization->new(%options);
Input
%options (hash)
options for synchronization
Return
$Synchronization (object)
synchronization object

verifyPreDefAttributeContent

verify parameters of predefattributes, throws error if verification fails

Syntax
$self->verifyPreDefAttributeContent($hContent);
Input
$hContent
ref.hash