hybris

Orbeon form localization using current site's session language

六眼飞鱼酱① 提交于 2019-12-11 07:49:35
问题 I'm using ORBEON 2018.2.3.201905172253 PE within SAP Commerce (Hybris). From Orbeon documentation and the tests I've run, I understand forms localization works through a language dropdown selector within each form. The thing is, I already have a language selector for my entire website, as usual. So, let's say a user gets into my site, which default language is English. Afterwards, he changes the site's language to Chinese. He is browsing my site in Chinese and navigates to a form which

Hybris - B2C and B2B as different modules in the same project

安稳与你 提交于 2019-12-11 07:45:54
问题 I need to have 2 accelerators, B2C and B2B, in the same project, both working like a separate module with different webroot. Is that possible ? I have already working B2C accelerator with custom extensions in one module. What I'm trying to achieve is to create another module (used for B2B) that will have same capabilities to use custom extensions and have different storefront on different URL. I tried creating new customized B2B accelerator following this SAP tutorial and I got the correct

Block or disable init url in Hybris

偶尔善良 提交于 2019-12-11 04:41:28
问题 Is there a way we can redirect /hac/platform/init to a Hybris 404 like how it happens for /hac/platform/init/execute ? Also guide me with the ant targets that I must use to see the changes that I make on init.jsp and init.js (they don't go live on fly). 回答1: I hope you want to protect the initialization trigger, which could be accidental. Hybris OOTB you can lock the HAC system initialization. To lock the system for initialization and update add the unlocking ( system.unlocking.disabled=true

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-

How to set TO ADDRESS while sending an email in Hybris?

99封情书 提交于 2019-12-08 07:33:58
问题 When user replies on a mail that he has received that should go to particular email id. I tried to give in DefaultEmailGenerationService.java but it didn't reflect. Could any one suggest how it can be achieved? 回答1: Scenario 1: How to change fromEmail Address of an email in Hybris? As I mentioned in the comment if you want to set from emailAddress you can do that using Impex. Just find out what is your emailPage and set fromEmail and fromName . Scenario 2: How to set fix toAdress in Hybris

hybris's maven doesn't download transitive dependencies

故事扮演 提交于 2019-12-07 13:01:11
问题 I am trying to set my dependencies in the external-dependencies.xml in Hybris extension. The problem is it just load the libraries I specified in there and doesn't load the dependencies that the libraries need to work with at run-time. For example Aixs2-kernel loads Axiom-api and impl and adb and so on. And in a normal maven project I don't need to specify each of them one by one. Is there any way to make Hybris understand to fetch the rest of them? 回答1: SAP Hybris 6.4+ Yes, you can do this

Why there are two separate xml files - <extension>-beans.xml & <extension>-spring.xml in Hybris?

做~自己de王妃 提交于 2019-12-07 12:27:29
问题 I am new to Hybris and was little confused about the structure of an extension in it. Whenever we create any extension, it contains two XML files : -beans.xml and -spring.xml <extension>-beans.xml file contains definition for beans and their attributes or in other words, the DTOs. <extension>-spring.xml also contains definition for some beans and their attributes. This is what I understood so far. Please correct me if I am wrong. When we can define beans in spring.xml , why there is a need

HYBRIS - How components and slots work in JSP file?

梦想与她 提交于 2019-12-06 10:22:03
问题 Recently I am working with Hybris, and I can not understand how the components work. I know how to create and define one, how to add them to the page I want, etc. But I do not understand how to use the tag <cms: component> in the jsp file. In the slot AddToCartSlot from the product detail page, I added more components. I tried to call my component as does the standard and comment his lines. By default, it is called the component as follows: <cms:pageSlot position="AddToCart" var="component">

How to direct localhost to mystorefront in hybris?

喜欢而已 提交于 2019-12-06 08:43:17
问题 Now when I go to https://localhost:9002/ it opens hac (hybris admin console). When I go to https://powertools.local:9002/nystorefront/powertools/en/USD/cart I can reach my storefront . I want to reach mystore when I go to localhost:9002 . What should I do? 回答1: You have to configure webroot and storefrontContextRoot in local.properties file. 1) Add properties to your config/local.properties, change mystorefront (mystorefront.webroot) with your storefront name. Also, need to change hac webroot

hybris's maven doesn't download transitive dependencies

巧了我就是萌 提交于 2019-12-06 03:06:27
I am trying to set my dependencies in the external-dependencies.xml in Hybris extension. The problem is it just load the libraries I specified in there and doesn't load the dependencies that the libraries need to work with at run-time. For example Aixs2-kernel loads Axiom-api and impl and adb and so on. And in a normal maven project I don't need to specify each of them one by one. Is there any way to make Hybris understand to fetch the rest of them? SAP Hybris 6.4+ Yes, you can do this in by overwriting the maven.download.options parameter in an extension project.properties file. It's default