ePages 6.14.0 - DE_EPAGES/MultiStore/API/CloneMasterShop.pm

Package DE_EPAGES::MultiStore::API::CloneMasterShop

Clone MasterShop into slave Stores

Base
Exporter
@EXPORT_OK
CloneMasterShop
CloneMasterShopFeatures
CreateCacheShop
RegisterCacheShopAtSubShop

Functions

CloneMasterShop
CloneMasterShopFeatures
CreateCacheShop
RegisterCacheShopAtSubShop

$PRINT_OUTPUT (boolean)

set to true to enable printing of output

@SYNC_PRODUCT_ATTTRIBUTE_LIST (array.string)

push scalar attribute names here to synchronize them

@SYNC_CATEGORY_ATTTRIBUTE_LIST (array.string)

push scalar attribute names here to synchronize them

CloneMasterShop

Clone master shop into cache shop

Syntax
CloneMasterShop( $CacheShop );
Input
$CacheShop (DE_EPAGES::Shop::API::Object::Shop)
cache shop

CloneMasterShopFeatures

Copy the features max values from master to cache shop.

Syntax
CloneMasterShopFeatures( $CacheShop );
Input
$CacheShop (DE_EPAGES::Shop::API::Object::Shop)
cache shop

CreateCacheShop

Creates a new cache shop.

Syntax
CreateCacheShop( $hMasterShopInfo );
Input
$hMasterShopInfo (ref.hash)
Info hash. used keys:
  • MasterStore - master storename - string
  • MasterShop - path to master shop - string
  • CacheShop - path to cache shop - string
$RegisterShop (boolean)
Set to true, if the created shop should be registered at system level
Return
$CacheShop (DE_EPAGES::Shop::API::Object::Shop)
cache shop

RegisterCacheShopAtSubShop

Assigns a cacheshop to a subshop

Syntax
RegisterCacheShopAtSubShop( $CacheShop, $SubShop );
Input
$CacheShop (DE_EPAGES::Shop::API::Object::Shop)
cache shop
$SubShop (DE_EPAGES::Shop::API::Object::Shop)
sub shop