Package DE_EPAGES::MultiStoreConnector::API::ProductSynchronization
hard core synchronization module regarding multistores
it is possible to add or update products to shops, using direct sql connection
Functions
- addProductsToShop
- deleteProducts
- new
- updateProductsContentToShop
- verifyContentForUpdate
addProductsToShop
Function to add products to a specific subshop.
Syntax |
$Result = $Synchronization->addProductsToShop($ShopAlias, $hProductsInfo);
|
Input |
- $ShopAlias (string)
- alias of shop
- $hProductsInfo
- products information hash :
- product - hash
- alias - object alias - string
- taxclass - taxclass name - string
- isnew - value - bool
- isdailyprice - value - bool
- orderunit - string
- pricequantity - float
- minorder - float
- intervalorder - float
- weightunit - string
- weight - float
- refunit - string
- refamount - int
- refcontentamount - float
- stocklevel - float
- length - float
- height - float
- width - float
- isavailable - bool
- imagemediumsmall - string
- imagemediumlarge - string
- imagelarge - string
- imagehotdeal - string
- hassubownprices - bool
- upcean - string
- isdownloadproduct - bool
- position - int
|
Return |
- $Success (boolean)
- returns true if everything is correct
|
deleteProducts
delete product entries in tables product,contentobject and object
Syntax |
$Result = $self->getProductsContent($aGUIDs);
|
Input |
- $aGUIDs (ref.array)
- global unique id's from products to check
|
Return |
- (
- delete product result - hash
- GUID - object guid - string
- status - delete status - string
)
- $hDeleteProductsResult
|
new
Creates a new synchronization object of DE_EPAGES::MultiStoreConnector::API::ProductSynchronization.
Syntax |
$Synchronization = DE_EPAGES::MultiStoreConnector::API::ProductSynchronization->new(%options);
|
Input |
- %options (hash)
- options for synchronization
|
Return |
- $Synchronization (object)
- synchronization object
|
updateProductsContentToShop
Function to add products to a specific subshop.
Syntax |
$Result = $Synchronization->updateProductsContentToShop($ShopAlias, $hProductsInfo);
|
Input |
- $ShopAlias (string)
- alias of shop
- $hProductsInfo
- products information hash :
- product - hash
- alias - object alias - string
- taxclass - taxclass name - string
- isnew - value - bool
- isdailyprice - value - bool
- orderunit - string
- pricequantity - float
- minorder - float
- intervalorder - float
- weightunit - string
- weight - float
- refunit - string
- refamount - int
- refcontentamount - float
- stocklevel - float
- length - float
- height - float
- width - float
- isavailable - bool
- imagemediumsmall - string
- imagemediumlarge - string
- imagelarge - string
- imagehotdeal - string
- hassubownprices - bool
- upcean - string
- isdownloadproduct - bool
- position - int
|
Return |
- $Success (boolean)
- returns true if everything is correct
|
verifyContentForUpdate
verify product attributes parameter for update, throws error if verification fails
not every attribute have to be listed here
Syntax |
$self->verifyContentForUpdate($hProductContent);
|
Input |
- $hProductContent
- product - hash
- alias - object alias - string
- taxclass - taxclass name - string
- isnew - value - bool
- isdailyprice - value - bool
- orderunit - string
- pricequantity - float
- minorder - float
- intervalorder - float
- weightunit - string
- weight - float
- refunit - string
- refamount - int
- refcontentamount - float
- stocklevel - float
- length - float
- height - float
- width - float
- isavailable - bool
- imagemediumsmall - string
- imagemediumlarge - string
- imagelarge - string
- imagehotdeal - string
- hassubownprices - bool
- upcean - string
- isdownloadproduct - bool
- position - int
|