hybris

FlexibleSearchQuery response no data

这一生的挚爱 提交于 2020-01-05 08:18:15
问题 I am trying to get some data using FlexibleSearchQuery but it is responding empty result. If I set this query hac>Console>Flexible Search I can get the data I am looking for. Here is how I am writing query in java file. sb.append(" SELECT {p:pk} "); sb.append(" FROM {" + ProductModel._TYPECODE + " AS p} "); sb.append(" WHERE {p:" + ProductModel.PK + " } IN ({{"); sb.append(" SELECT DISTINCT {pro:" + ProductModel.PK + "} "); sb.append(" FROM {CategoryProductRelation AS cp},{" + ProductModel.

How to access Backoffice in Junit Tenant

南笙酒味 提交于 2020-01-05 07:34:29
问题 We can access HMC in JUnit tenant by hitting the below URL https://localhost:9002/hmc_junit/hybris which is defined in tenant_junit.properties like this hmc.webroot=/hmc_junit But I havn't seen anywhere URL to access Backoffice in JUnit Tenant. Can anybody help me please to access Backoffice in JUnit Tenant ? 回答1: I was looking for it everywhere as well, couldn't find any documentation in the wiki... It doesn't seem to be officially supported but here is what I found. Under Hybris 6.3 there

How to rename an existing Hybris extension

北城以北 提交于 2020-01-05 04:38:15
问题 I am working on Hybris and I generated a new extension using hybris command (ant extgen) with default settings. During extension generation, I did not change default values like I let the project name be "training". I started developing some code just for the sake of trying it but now I wrote quite a lot of code and instead of generating a new extension, I am trying to rename "training" to a new name which is more suitable for my project. My question is - Is there any shortcut to rename

What is the Difference between system initialization and update in hybris?

三世轮回 提交于 2020-01-04 17:34:10
问题 I suppose it runs essentialdata.impex. I am not sure of the difference. Any inputs from hybris experts highly appreciated. 回答1: Initalization: Droping old and create new empty system. Creating schema and type system. Reloading persistences Clearing cache. Initialize media storages. Setting licence. Restarting internals. Clearing hMc configuration from database. creating essential data. Localizing types and creating project data. Updating Updating schema. Reloading persistences Clearing cache.

How to export states in hybris?

百般思念 提交于 2020-01-03 05:13:10
问题 Please, Could help me? I'd like exporting states registered in hybris and what is default to export anything? I always need export something inside him, but I haven't a base other export. In Stack site I got about access right, I tried use the same model but it did not work. 回答1: I'm not sure to understand well your question but I might have a tips. If you need to export something using Impex. You can connect to your hMC or backoffice. Go to System -> Tools -> Script generator. In the popin

Reading collection type data using Flexible search

删除回忆录丶 提交于 2020-01-03 04:57:27
问题 How to view the list of data stored in Collection type in Hybris using Flexible search? I have read somewhere that it is stored as PKs so is it possible to parse it somehow? 回答1: "CollectionTypes are based on the Java Collection class." The maximum length of CollectionType database field is limited, so there may be a chance of getting its values truncated due to many records. In addition, the values of CollectionTypes are written in a CSV format and not in a normalized way. Hybris recommends

How can I use a custom configured RememberMeAuthenticationFilter in spring security?

一个人想着一个人 提交于 2020-01-03 03:25:12
问题 I want to use a slightly customized rememberme functionality with spring security (3.1.0). I declare the rememberme tag like this: <security:remember-me key="JNJRMBM" user-service-ref="gymUserDetailService" /> As I have my own rememberme service I need to inject that into the RememberMeAuthenticationFilter which I define like this: <bean id="rememberMeFilter" class="org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter"> <property name="rememberMeServices"

In Hybris, how to create b2b and b2c storefronts in the same code base?

不羁的心 提交于 2019-12-25 08:57:43
问题 I created b2c storefront using ant modulegen command. Now I want to create b2b storefront in the same code base. At the end b2b and b2c storefronts should run on the single hybris instance. Please provide the step by step process to achieve this. Thanks in advance. 回答1: You can install b2c_b2b_acc recipe. Install Setup On Windows: install.bat -r b2c_b2b_acc On Linux or Mac: ./install.sh -r b2c_b2b_acc Initialize Setup On Windows: install.bat -r b2c_b2b_acc initialize On Linux or Mac: .

Hybris Solr Sort

淺唱寂寞╮ 提交于 2019-12-24 18:52:55
问题 I modified my code to add new solr sort for price. INSERT_UPDATE FieldSolrSort;sort(indexedType(identifier),code)[unique=true];fieldName[unique=true];descending[unique=true];$IndexedType:price;priceValue;true I have currently two solr sort Name Ascending Name Descending I added new solr sort for price Price Ascending Price Descending But I want my new solr sort to only show when the user has logged in. Anyone know? Thanks 回答1: Step 1: Import impex to enable price sort option If you refer any

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/catalog s, 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