impex

Hybris : How to import media which is in the zip file in impex?

瘦欲@ 提交于 2019-12-24 11:31:25
问题 I know we can import images which are not zipped like this $siteResource=jar:com.project.initialdata.constants.ProjectInitialDataConstants&/projectinitialdata/import/sampledata/images/brand INSERT_UPDATE Media ; code[unique=true] ; mediaFormat(qualifier) ; realfilename ; @media[translator=de.hybris.platform.impex.jalo.media.MediaDataTranslator] ; mime[default='image/jpeg'] ; catalogVersion(catalog(id),version)[unique=true,allownull=true] ; logo-molinard.jpg ; ; Molinard_logo.jpg ;

How to add Hybris Solr By for Boolean value

我的未来我决定 提交于 2019-12-12 20:17:08
问题 I have a Solr indexed property called isNewProduct (boolean) and I want to create a new Solr By option for this attribute. (the products with isNewProduct==true must appear first). Any hint about how can I achieve this ? 回答1: All you have to do is run below Impex (change it with your actual values) and you are done. $lang=en $solrIndexedType=YourProductType INSERT_UPDATE SolrSort ; indexedType(identifier)[unique=true] ; code[unique=true] ; name[lang=$lang] ; useBoost ; $solrIndexedType ;

How to get config data from local.properties to impex?

青春壹個敷衍的年華 提交于 2019-12-09 18:36:00
问题 Is it possible to get a value from the environment variables defined at local.properties configuration file and access it via the impex file? Ex. $someMacro=<some variable from config> Thank you! 回答1: You can add this to your impex: # Import config properties into impex macros UPDATE GenericItem[processor=de.hybris.platform.commerceservices.impex.impl.ConfigPropertyImportProcessor];pk[unique=true] All your configurations from local.properties, etc. are now loaded and can be used via $config-