问题标签 [sap-commerce-cloud]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
123 浏览

hybris - 商务服务器启动后启动作业/事件侦听器

有人知道启动一些在服务器启动后直接运行一次的代码的可能性吗?当然,我可以做一些变通方法,比如运行一个定时 cron 作业,它在第一次之后什么都不做,但这实际上也很丑陋。我也可以编写自己的 spring bean 并使用初始化阶段,但是我不能确定一切都已经启动并运行。

也许有一个事件或我可以参考的spring bean可以使用?

0 投票
1 回答
139 浏览

hybris - Smartedit - 用户组无法上传/替换/删除组件的媒体属性而不是管理组的一部分

混合版本:1811

你好,

我最近创建了一个新的非管理员用户组,它是员工组和 cmsmanagergroup 的成员。我遇到了一个问题,我无法使用 smartedit 上传/替换/删除与组件相关的媒体。

SmartEdit 的屏幕截图

新的用户组对两个内容目录版本(分阶段/在线)具有读/写权限,并对多媒体类型(媒体、媒体文件夹、媒体容器、媒体格式、媒体上下文、转换组)具有读/更改/创建/删除类型权限) 在后台。

新的用户组能够编辑组件中除媒体之外的所有其他内容。

0 投票
1 回答
40 浏览

spartacus-storefront - PDP 中不可更改的属性类别 | 斯巴达克斯电信

我们注意到,当返回有关基本产品属性类别的所有属性时,所有产品变体都"occ/v2/telcospa/products/{{product}}"通过名为 的属性在 API 中返回。"variantMatrix"

但在 Spartacus 中找不到任何组件使用此属性,用于在 PDP 中呈现产品详细信息及其属性类别(存储大小、颜色和任何其他动态属性),可通过 HTML 'select' 选择。

使用户能够根据他们在 PDP 中的选择来更改属性选项,并且每个更改都对应一个产品变体及其 SKU。Spartacus 团队从正在进行的项目中提取的线框非常相似的用户体验,如下所示:

线框

0 投票
1 回答
300 浏览

solr - 如何在 Hybris 的前端显示 facet 值?

我通过item.xml在ProductModel中添加了String类型的品牌属性。我需要为品牌创造一个方面。我有两个品牌——索尼和佳能。创建构面后,我可以在 UI 上看到“Shop by Brand”,但在其下找不到 Sony 或 Canon。

我使用的 impexes 是:

有人可以指出我错过了什么吗?

0 投票
1 回答
200 浏览

hybris - 如何将 Commerce 和 Spartacus 部署到 ccv2

目前我们正在使用CCV2平台,我们能够部署商业。,

我们计划将少数本地开发的 Spartacus 页面移至 CCV2。

请指导我们如何移动 Spartacus 和 Commerce 代码库并执行构建和部署。

0 投票
2 回答
308 浏览

tags - 如何在 hybris 的购物车页面上显示自定义属性?

我有一个自定义属性,我必须在购物车页面上为购物车中的每个项目显示其值。我想在 cartItem.tag 中添加属性。有人可以告诉我应该在哪里添加值吗?我尝试在 CartPageController 中添加它,但找不到合适的位置来添加值。

我对 Hybris 完全陌生,任何帮助将不胜感激。

提前致谢。

0 投票
0 回答
51 浏览

angular - 斯巴达克斯如何删除结帐登录页面

我是斯巴达克斯的新手。我的问题是针对访客用户的。我需要跳过结帐登录页面并直接重定向到送货地址。而且我还自定义了文件checkoutauthguard.ts,这里的问题是canActivate方法被多次调用。

我需要更改任何其他服务还是需要更改任何后端?

0 投票
1 回答
42 浏览

spartacus-storefront - 斯巴达克斯新目录与电子产品模板

我是 Spartacus 的新手,我不确定使用电子页面模板创建新网站的最佳选择是什么,但我自己的目录和产品。我尝试在 /backoffice WCMS 部分创建新网站,然后尝试使用与电子页面相同的属性,但我没有让它工作。

我也试过这个,它对我不起作用:https ://blogs.sap.com/2020/04/07/create-new-page-in-spartacus/

是否有可能给我一些关于如何正确执行它的想法或方法,或者一些基本步骤?

谢谢

0 投票
1 回答
62 浏览

security - How to see the obscured audit blacklisted "encodedpassword" in SAP Commerce 2011?

The code below shows that I am trying to get the "encodedpassword" attribute value from the User type's JsonAuditRecord using the ReadAuditGateway.

After upgrading to CX2011, I found out that the User type's encodedPassword is audit blacklisted. Also, any blacklisted attributes would have their value obscured e.g. ****. I understand the rational behind that (possibly a security enhancement). However, to allow our custom code (that requires the un-obscured value of the encodedPassword) to continue working, I have tried to remove it from the audit blacklist by making sure that the two properties below are not set with any value in my local.properties

However, after performing "ant all" and restarted my local Hybris server, the encodedPassword is still obscured..

May I ask other than changing those properties above, are there other steps that needs to be done? e.g. overriding some OOTB classes.

Also, I have tried to read the Audit Report section in the SAP Commerce Documentation, I do not see the audit blacklisting part is being documented. I would appreciate if someone could also provide any links that relates to this topic.

0 投票
1 回答
369 浏览

hybris - 尝试在调试模式下启动 hybrisserver 时在上下文初始化期间遇到异常

我最近在我的机器上安装了 Hybris 2005。服务器运行良好,直到昨天,但在今天早上尝试重新启动时,我遇到了一个异常并且我的包装器已停止。绝对没有进行任何更改,我试图以调试模式启动服务器。请帮助我解决这个问题,我是 Hybris 的新手,找不到任何导致此问题的原因。以下是 hybrisserver.bat 调试的相关日志:

请帮忙。