Catalog names are not created (hybris)

≡放荡痞女 提交于 2019-12-24 18:34:53

问题


I want to create a new catalog.

I followed that steps

https://stackoverflow.com/a/50414933/9708984

//resources/mystoreinitialdata/import/sampledata/contentCatalogs/mystoreContentCatalog/cms-content.impex 

here despite I made

$contentCatalogName=mystoreContent Catalog', on backoffice/catalogs,

I only see mystore catalog with id, name is empty.

for powertools it has name, Powertools Content Catalog.

I did ant initialize' , it created 3 catalogs mystorecontent catalog, mystoreclassfication,mystoreprductcatalog but they dont have name.

$contentCatalog=electronicsContentCatalog $contentCatalogName=Electronics Content Catalog

this contentcatalogname is not used anywhere for any of the stores; mystore electronic,powertools or apparel .

but other 3 has name. why mystore does not have? what is that contentcatalogname for? the path is

electronicsstore/import/sampledata/contentCatalogs/electronicsContentCatalog/cms-responsive-content.impex for electronics


回答1:


The name is a localized attribute. For localized attributes, the accelerator has its own files. Check the files named catalog_XX.impex in the directory

resources/mystoreinitialdata/import/sampledata/contentCatalogs/mystoreContentCatalog/

The XX represents the isocode of the language. So en means English, de German etc. In the file, set the name like this:

$lang=en
$contentCatalog=mystoreContentCatalog

UPDATE ContentCatalog;id[unique=true];name[lang=$lang]
;$contentCatalog;"mystore Content Catalog"


来源:https://stackoverflow.com/questions/50430469/catalog-names-are-not-created-hybris

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!