当前位置:网站首页>Addition logic for SAP Commerce Cloud Product Review
Addition logic for SAP Commerce Cloud Product Review
2022-07-31 11:37:00 【Huawei cloud】
点了 Write Review 按钮之后,调用 ProductReviewService 的 add 方法:
该方法 dispatch 一个新的 action:
override the ProductReviewService to dispatch a custom action to an effect they would create with the logic they need.
搜索 POST_PRODUCT_REVIEW, 看看接收方是谁.
答案是 『ProductReviewsEffect:接收了该 Action 之后,调用 productReviewsConnector,消费 OCC API 添加 post,待添加成功后,返回新的 Action 对象 ProductActions.PostProductReviewSuccess,其中包含了 ReviewResponse.
同样在该 effect 内部,接收到 POST_PRODUCT_REVIEW_SUCCESS 之后,抛出 Thank you for review 的成功消息.
解答
The easiest and recommended way to override basic primary colors, as of version 4.0, is by changing the compiled values of the CSS variables. But change them inside a CSS body selector, instead of a :root selector.
Example of storefrontapp/src/styles.scss file:
/* You can add global styles to this file, and also import other style files */$styleVersion: 4.0;@import '[email protected]/styles/index';$useLatestStyles: true;@import '@spartacus/styles';@import '@spartacus/styles/scss/theme/santorini';body { --cx-color-primary: green; --cx-color-seconday: #8aa39b; --cx-color-text: #5c6f68; --cx-color-background: #95d9c3; --cx-color-dark: #a4f9c8;}
生效了:
边栏推荐
- CoCube群机器人预览→资讯剧透←
- 安装MYSQL遇到问题:write configuration file卡主
- MySQL 行级锁(行锁、临键锁、间隙锁)
- apisix-入门使用篇
- Docker installs canal and mysql for simple testing and achieves cache consistency between redis and mysql
- 关于Mysql数据库的介绍
- Service discovery of kubernetes
- Docker安装canal、mysql进行简单测试与实现redis和mysql缓存一致性
- lotus-local-net 2k v1.17.0-rc4
- If the value of the enum map does not exist, deserialization is not performed
猜你喜欢
PyQt5快速开发与实战 9.5 PyQtGraph在PyQt中的应用 && 9.6 Plotly在PyQt中的应用
5 open source Rust web development frameworks, which one do you choose?
MySQL百万数据优化总结 一
IDEA 配置方法注释自动参数
Experience innovation and iteration through the development of lucky draw mini-programs
MySQL模糊查询性能优化
Many mock tools, this time I chose the right one
文件包含漏洞
Power BI----几个常用的分析方法和相适应的视觉对象
应用层基础 —— 认识URL
随机推荐
最全phpmyadmin漏洞汇总
[Virtualization ecological platform] Raspberry Pi installation virtualization platform operation process
CWE4.8 -- 2022年危害最大的25种软件安全问题
5 个开源的 Rust Web 开发框架,你选择哪个?
关于Mysql数据库的介绍
3D激光SLAM:LeGO-LOAM论文解读---点云分割部分
keras自带数据集(横线生成器)
【虚拟化生态平台】平台架构图&思路和实现细节
Power BI----几个常用的分析方法和相适应的视觉对象
Docker搭建Mysql主从复制
应用层基础 —— 认识URL
矩形脉冲波形的占空比及脉冲和瞬态特征的测量
Experience innovation and iteration through the development of lucky draw mini-programs
「R」使用ggpolar绘制生存关联网络图
淀粉与纤维素
Redis学习笔记-3.慢查询和其他高级数据结构
SAP Commerce Cloud Product Review 的添加逻辑
Different lower_case_table_names settings for server (‘1‘) and data dictionary (‘0‘) 解决方案
Mysql环境变量的配置(详细图解)
音视频基础