我创建了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方面的事情?
这是content catalog/catalog
# -----------------------------------------------------------------------
# [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发布于 2018-05-18 19:58:26
您发送的impex实际上不会更改任何项目。Impex使用一个标头,您可以在其中定义操作(INSERT、INSERT_UPDATE、UPDATE、REMOVE)、要更改的数据类型以及要更改的属性。在接下来的几行中,需要有一行或多行csv数据。
考虑这个例子:
UPDATE PointOfService;name[unique=true];features(code);
;myPointOfService;feature1,feature2;此impex脚本更改由其名称(myPointOfService)标识的服务点,并将属性features设置为由特征代码feature1和feature2标识的两个特征。第一行是标题,第二行是数据。由于您的脚本只包含头文件,因此不会有任何更改。
如果要创建目录,请考虑更改以下文件:
/mystoreinitialdata/resources/mystoreinitialdata/import/coredata/contentCatalogs/catalogName/catalog.impex
/mystoreinitialdata/resources/mystoreinitialdata/import/coredata/productCatalogs/catalogName/catalog.impexhttps://stackoverflow.com/questions/50410431
复制相似问题