ePages 6.17.43 - 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
getOptionAttributeMandatory
getOptionAttributeNames
getOptionAttributeParameterType
new
verifyOptionAttributeContent

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

getOptionAttributeMandatory

get parameter type of option attribute name

Syntax
$Mandatory = $self->getOptionAttributeMandatory($AttributeName);
Input
$AttributeName (string)
name of option attribute
Return
$Mandatory (bool)
true if product attribute option is mandatory

getOptionAttributeNames

get all existing option attribute names

Syntax
$aAttributeNames = $self->getOptionAttributeNames();
Return
$aAttributeNames (ref.array)
allexisting option attribute names

getOptionAttributeParameterType

get parameter type of option attribute name

Syntax
$ParameterType = $self->getOptionAttributeParameterType($AttributeName);
Input
$AttributeName (string)
name of option attribute
Return
$ParameterType (string)
parameter type of product attribute option

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

verifyOptionAttributeContent

verify parameters of product attribute options, throws error if verification fails

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