Skip to Content
0
Jul 23, 2020 at 09:37 AM

Child Catalog is not synchronizing

103 Views

Hi All, we have 2 WCMS sites on our Hybris instance. those are ABC and DEF. both the sites has single content catalog(i.e ABCContentCatalog). Here we have a requirement to have seperate homepage for each site. As you know for one content catalog only one page can set as homepage. we had created child content catalog(ABCContentCatalogDEF) and created new homepage as part of same and assigned new homepage to DEF site and its working fine.

Problem: Catalog ABCContentCatalogDEF is not synchronizing between staged and online versions.

impex:

$contentCatalogDEF=ABCContentCatalogDEF

$masterContentCatalog=ABCContentCatalog

$catalogSyncLanguages=en

INSERT_UPDATE ContentCatalog;id[unique=true];supercatalog(id) ;ABCContentCatalog; ;ABCContentCatalogDEF;ABCContentCatalog $syncJob=sync $contentCatalogDEF:Staged->Online $sourceContentCV=sourceVersion(catalog(id[default=$contentCatalogDEF]),version[default='Staged'])[unique=true,default='$contentCatalogDEF:Staged'] $targetContentCV=targetVersion(catalog(id[default=$contentCatalogDEF]),version[default='Online'])[unique=true,default='$contentCatalogDEF:Online']

INSERT_UPDATE CatalogVersionSyncJob; code[unique=true]; $sourceContentCV;$targetContentCV;syncLanguages(isoCode)[mode=append] ;$syncJob;;; $catalogSyncLanguages $contentDEFCV=catalogVersion(CatalogVersion.catalog(Catalog.id[default=$contentCatalogDEF]),CatalogVersion.version[default=Staged])[default=$contentCatalogDEF:Staged] $masterContentCV=catalogVersion(CatalogVersion.catalog(Catalog.id[default=$masterContentCatalog]),CatalogVersion.version[default=Online])[default=$masterContentCatalog:Online] # Site-wide Homepage

INSERT_UPDATE ContentPage;originalPage(uid,$masterContentCV)[default='homepage'];$contentDEFCV[unique=true];uid[unique=true];name;masterTemplate(uid,$masterContentCV);label;defaultPage[default='true'];approvalStatus(code)[default='approved'];homepage[default='true'];previewImage(code, $contentDEFCV) ;orders;;orders-def;Homepage DEF;AccountPageTemplate;/;;;;

INSERT_UPDATE AccountNavigationComponent; $contentDEFCV[unique = true]; uid[unique = true];∁onentRef ; ; AccountLeftNavigationComponentDEF ;AccountLeftNavigationComponentDEF

INSERT_UPDATE ContentSlot;originalSlot(uid,$masterContentCV);$contentDEFCV[unique=true];uid[unique=true];name;active;cmsComponents(∁onentRef) ;SideContent-orders;;SideContent-orders-def;Side Content Slot for My Account DEF Order History ;true;AccountLeftNavigationComponentDEF ;BodyContent-orders;;BodyContent-orders-def;Body Content Slot for My Account DEF Order History ; true ;DEFAccountOrderHistoryComponentStatic,SearchBoxDEF,DEFAccountOrderHistoryComponent,DEFHomepagecomponent # ContentSlotForPage

INSERT_UPDATE ContentSlotForPage; $contentDEFCV[unique = true]; uid[unique = true]; position[unique = true]; page(uid, $contentDEFCV)[unique = true][default = 'orders-def']; contentSlot(uid, $contentDEFCV)[unique = true];;; ; ; SideContent-orders-def ; SideContent ; ; SideContent-orders-def ; ; ; ; ; BodyContent-orders-def ; BodyContent ; ; BodyContent-orders-def ; ; ;

Please help.