在WCMS / catalog(hybris)上看不到mystore目录

时间:2018-05-18 11:33:43

标签: hybris

我创建了b2b商店。我将mystoreinitialdata / impex商店名称更改为我的商店名称。

# -----------------------------------------------------------------------
# [y] hybris Platform
#
# Copyright (c) 2018 SAP SE or an SAP affiliate company.  All rights reserved.
#
# This software is the confidential and proprietary information of SAP
# ("Confidential Information"). You shall not disclose such Confidential
# Information and shall use it only in accordance with the terms of the
# license agreement you entered into with SAP.
# -----------------------------------------------------------------------
# ImpEx for Points of Service

# Macros / Replacement Parameter definitions
$storeUid=mystore
$productCatalog=mystoreProductCatalog

$catalogVersion=catalogversion(catalog(id[default=$productCatalog]),version[default='Staged'])[unique=true,default=$productCatalog:Staged]
$storeImage=storeImage(qualifier, $catalogVersion)

INSERT_UPDATE OpeningSchedule;code[unique=true];

INSERT_UPDATE WeekdayOpeningDay;openingSchedule(code)[unique=true];dayOfWeek(code)[unique=true];openingTime[dateformat=hh:mm];closingTime[dateformat=hh:mm];

INSERT_UPDATE SpecialOpeningDay;openingSchedule(code)[unique=true];date[unique=true,dateformat=dd.MM.yyyy];closed;openingTime[dateformat=hh:mm];closingTime[dateformat=hh:mm]

INSERT_UPDATE Address;&addrID;streetname;streetnumber;postalcode[unique=true];town[unique=true];country(isocode);region(isocode);phone1;owner(PointOfService.name)[unique=true]

INSERT_UPDATE StoreLocatorFeature;code[unique=true]

INSERT_UPDATE PointOfService;name[unique=true];type(code);address(&addrID);latitude;longitude;geocodeTimestamp[dateformat=dd-MM-yyyy];$storeImage;openingSchedule(code);basestore(uid)[default=$storeUid];features(code)

UPDATE PointOfService;name[unique=true];features(code);

INSERT_UPDATE PoS2WarehouseRel;source(name)[unique=true];target(code)[unique=true]

就是这样的。

然后我做了蚂蚁初始化,当我去backoffice/catalog/catalogs

我没看到我的商店。 (mystore

我看到默认的服装,powertools等就像以前一样。

我该怎么办,java方面的东西?

这是内容目录/ catalogimpex

# -----------------------------------------------------------------------
# [y] hybris Platform
#
# Copyright (c) 2018 SAP SE or an SAP affiliate company.  All rights reserved.
#
# This software is the confidential and proprietary information of SAP
# ("Confidential Information"). You shall not disclose such Confidential
# Information and shall use it only in accordance with the terms of the
# license agreement you entered into with SAP.
# -----------------------------------------------------------------------
#
# Import the Content Catalog
#
$contentCatalog=mystoreContentCatalog
$languages=ja,en,de,zh

# Content catalog for CMS contents
INSERT_UPDATE ContentCatalog;id[unique=true]
;$contentCatalog

# Catalog versions for content catalogs
INSERT_UPDATE CatalogVersion;catalog(id)[unique=true];version[unique=true];active;languages(isoCode)
;$contentCatalog;Staged;false;$languages
;$contentCatalog;Online;true;$languages

1 个答案:

答案 0 :(得分:0)

您实际发送的impex不会更改单个项目。 Impex使用标头来定义操作(INSERT,INSERT_UPDATE,UPDATE,REMOVE),要更改的数据类型以及要更改的属性。在接下来的行中,需要有一行或多行csv数据。

考虑这个例子:

UPDATE PointOfService;name[unique=true];features(code);
;myPointOfService;feature1,feature2;

此impex脚本更改由其名称(myPointOfService)标识的服务点,并将属性功能设置为功能代码feature1和feature2标识的两个功能。第一行是标题,第二行是数据。由于您的脚本只包含标题,因此不会有任何更改。

如果要创建目录,请考虑更改以下文件:

/mystoreinitialdata/resources/mystoreinitialdata/import/coredata/contentCatalogs/catalogName/catalog.impex
/mystoreinitialdata/resources/mystoreinitialdata/import/coredata/productCatalogs/catalogName/catalog.impex