首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在WCMS/catalog上看不到mystore目录(hybris)

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

Stack Overflow用户
提问于 2018-05-18 19:33:43
回答 1查看 389关注 0票数 0

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

代码语言:javascript
复制
# -----------------------------------------------------------------------
# [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方面的事情?

这是content catalog/catalog

代码语言:javascript
复制
# -----------------------------------------------------------------------
# [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
EN

回答 1

Stack Overflow用户

发布于 2018-05-18 19:58:26

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

考虑这个例子:

代码语言:javascript
复制
UPDATE PointOfService;name[unique=true];features(code);
;myPointOfService;feature1,feature2;

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

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

代码语言:javascript
复制
/mystoreinitialdata/resources/mystoreinitialdata/import/coredata/contentCatalogs/catalogName/catalog.impex
/mystoreinitialdata/resources/mystoreinitialdata/import/coredata/productCatalogs/catalogName/catalog.impex
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50410431

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档