hybris

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

柔情痞子 提交于 2019-12-06 02:58:17
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 for another XML file " beans.xml " ? Please provide some clarification on this. Thanks. As we know Hybris

ABAP Netweaver和Hybris Enterprise Commerce Platform的登录认证

不羁的心 提交于 2019-12-06 02:25:21
ABAP Netweaver 在我的博客 Learn more detail about Standard logon procedure 里有详细介绍。 Hybris ECP Hybris Administration Console的登录界面: 点login button后, 观察到一个HTTP Post请求: j_spring_security_check 这个请求定义在一个form action里,还有两个字段用于存储用户登录输入的用户名和密码: 在tomcat的日志里也能观察到这个HTTP post请求: 在hac文件夹的config子文件夹下有一个配置文件spring-security-config.xml: 里面定义了用class de.hybris.platform.spring.security.CoreAuthenticationProvider来做authentication: 来源: https://www.cnblogs.com/homehtml/p/11956936.html

Hybris订单价格的折扣维护

非 Y 不嫁゛ 提交于 2019-12-06 00:55:14
backoffice里创建一个新订单,维护一个行项目,添加一个产品: 在行项目的SubTotal界面,维护Base Price,在Discount values字段里,输入折扣信息:discount: 10.00%: 回到order界面,点击重新计算价格的按钮,就能看到1 * 10 = 9 美元的信息了,说明折扣已经生效。 参考了这个SAP帮助文档: 帮助文档路径:Commerce Platform Module->Commerce Platform Module Implementation->Ordering, Payment and Pricing Standards->Price, Tax and Discount Calculation->europe1 Extension->Editing Tax and Discount Values of an Order in Backoffice 要获取更多Jerry的原创文章,请关注公众号"汪子熙": 来源: https://www.cnblogs.com/sap-jerry/p/11954312.html

自定义hybris生成订单的ID格式

爱⌒轻易说出口 提交于 2019-12-06 00:53:02
在项目local.properties里做出如下定义: keygen.order.code.digits=8 keygen.order.code.start=00000000 keygen.order.code.numeric=true keygen.order.code.template=$ core-spring.xml: <bean id="orderCodeGenerator" class="de.hybris.platform.servicelayer.keygenerator.impl.PersistentKeyGenerator"> <property name="key" value="${keygen.order.code.name}"/> <property name="digits" value="${keygen.order.code.digits}"/> <property name="start" value="${keygen.order.code.start}"/> <property name="numeric" value="${keygen.order.code.numeric}"/> <property name="template" value="${keygen.order.code.template}"/> 效果如下: 修改定义后

Hybris: cannot find CMSSite associated with current URL

心不动则不痛 提交于 2019-12-05 21:09:58
问题 I created a new Hybris extension using one of the given templates. The build was successful and I am able to start the server, too. But when opening the weblink from the HAC I get the error "Cannot find CMSSite associated with current URL" . Are there suggestions to solve or investigate this issue? 回答1: You need to use hosts file mappings or use the site-ID parameter to avoid a 500 error. Please follow these link https://wiki.hybris.com/display/accdoc/Just+One+Storefront https://help.hybris

help.hybris.com和help.sap.com网站的搜索实现

白昼怎懂夜的黑 提交于 2019-12-05 19:27:53
help.hybris.com 我使用help.hybris.com时,发现每次在搜索栏输入文字时,没有发出任何HTTP请求,那么这个自动完成的下拉框里的记录从哪里来的?我看了下实现,发现所有自动完成下拉框里的记录都是硬编码在searchsuggestion.js里: Hybris help网站只用了bootstrap框架: help.sap.com 在搜索框里输入字符后,会发起HTTP请求,通过AJAX取回匹配的记录,渲染在UI上实现自动完成功能。 用的angular框架, 在我测试时(2018年1月12日)版本号v1.4.8 来源: https://www.cnblogs.com/homehtml/p/11941543.html

How to direct localhost to mystorefront in hybris?

[亡魂溺海] 提交于 2019-12-04 14:41:48
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? 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 to /hac hac.webroot=/hac mystorefront.webroot= storefrontContextRoot= 2) To open your site without passing

Disable search for the products on the Hybris front end having a specific attribute value

拥有回忆 提交于 2019-12-04 06:38:34
问题 Suppose I have a requirement whereby I don't want to search the products on the Hybris frontend having a specific attribute value. Even if the following products are present in the Hybris SOLR index . How to go about this? 回答1: Which products should be indexed are defined by flexible search queries. You find them in hmc/backoffice by navigating to System/Facet Search/Indexed Types . Select your indexed type. There you find full and update queries. The full query is used by a Full SolR Indexer

Hybris: cannot find CMSSite associated with current URL

ε祈祈猫儿з 提交于 2019-12-04 04:44:48
I created a new Hybris extension using one of the given templates. The build was successful and I am able to start the server, too. But when opening the weblink from the HAC I get the error "Cannot find CMSSite associated with current URL" . Are there suggestions to solve or investigate this issue? You need to use hosts file mappings or use the site-ID parameter to avoid a 500 error. Please follow these link https://wiki.hybris.com/display/accdoc/Just+One+Storefront https://help.hybris.com/6.3.0/hcd/8ae0711f86691014877ae05249b2f5ac.html (Hybris 6) If you have administrator rights, it is a good

CRM, C4C和SAP Hybris的数据库层设计

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 01:05:38
SAP的product都是DB provider无关的。 CRM大家都很熟悉了,application developer最多用Open SQL直接操作表。 Netweaver里支持的DB provider在这张表的DBMS里能看到: C4C的application developer 在ABAP后台的workbench里指定BO node的persistence table。 Hybris Hybris里也有和CRM WebUI里的API layer起同样作用的layer - API layer, 封装了对DB的操作。 Hybris里类似的layer实现是很多以DAO( Data Access Object)结尾的java class实现的,相当于我们CRM的function module. 随便点开一个看实现,里面也是拼SQL然后fire到DB去: Hybris支持下列的DB: 目前成都开发team使用的是HSQLDB: 一个轻量级的纯Java开发的开放源代码的关系数据库系统 要获取更多Jerry的原创文章,请关注公众号"汪子熙": 来源: https://www.cnblogs.com/sap-jerry/p/11826371.html