Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/shell/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法在WCMS/catalog(hybris)上查看mystore目录_Hybris - Fatal编程技术网

无法在WCMS/catalog(hybris)上查看mystore目录

无法在WCMS/catalog(hybris)上查看mystore目录,hybris,Hybris,我创建了b2b商店。我将mystoreinitialdata/impex商店名称更改为我的商店名称 # ----------------------------------------------------------------------- # [y] hybris Platform # # Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved. # # This software is th

我创建了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]
像那样的弹射

然后我让ant初始化,当我转到
backoffice/catalog/catalogs

我没有看到我的商店。(这是mystore)

我看到默认的服装,电动工具等,就像以前一样

我应该怎么做,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

你发送的弹劾实际上没有改变任何一项。Impex使用一个标头,在其中定义操作(插入、插入、更新、删除)、要更改的数据类型以及要更改的属性。在接下来的几行中,需要有一行或多行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

我已经将
$contentCatalog
$classificationCatalog
更改为mystore,但它没有创建一个java类:de.hybris.mystore.initialdata.setup.InitialDataSystemSetup,特别是方法createProjectData(…)。注释准确地告诉您如何编写该方法,因此将导入数据。您在此处添加的名称需要与/mystoreinitialdata/resources/mystoreinitialdata/import/coredata/contentCatalogs/和/mystoreinitialdata/resources/mystoreinitialdata/import/coredata/productCatalogs/和/mystoreinitialdata/resources/mystoreinitialdata/import/coredata/stores/及其对应的sampledata中的文件夹名称匹配。是的他们是匹配的。没有错误。每个名称都像这里一样进行了更改,但我没有添加该部分
INSERT\u UPDATE basestore2deliveryModere;源(uid)[unique=true];目标(代码)[唯一=真];海布里斯;premium net
它有
插入\u更新BaseStore2DeliveryModel;源(uid)[unique=true];目标(代码)[unique=true]