当前位置:网站首页>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;}生效了:
边栏推荐
- VBA输出日志到工作簿demo
- 下课看着文档走回实验室,我重新拾起了遗忘的SQL运算符
- Distributed id solution
- 关于Mysql数据库的介绍
- 7 天学个Go,Go 结构体 + Go range 来学学
- 关于IDEA开发工具的介绍
- ApiPost is really fragrant and powerful, it's time to throw away Postman and Swagger
- 分布式事务——分布式事务简介、分布式事务框架 Seata(AT模式、Tcc模式、Tcc Vs AT)、分布式事务—MQ
- 基于C51实现按键控制
- SAP Commerce Cloud Product Review 的添加逻辑
猜你喜欢

Android studio connects to MySQL and completes simple login and registration functions

Obsidian设置图床

MySQL index usage and optimization

《MySQL高级篇》五、InnoDB数据存储结构

deeplab implements its own remote sensing geological segmentation dataset

Many mock tools, this time I chose the right one

Distributed Transactions - Introduction to Distributed Transactions, Distributed Transaction Framework Seata (AT Mode, Tcc Mode, Tcc Vs AT), Distributed Transactions - MQ

mysql根据多字段分组——group by带两个或多个参数

PyQt5快速开发与实战 9.5 PyQtGraph在PyQt中的应用 && 9.6 Plotly在PyQt中的应用

线程池 ThreadPoolExecutor 详解
随机推荐
kubernetes之服务发现
mpu9150(driverack pa简明教程)
Unix知识:shell详细解读
安装MYSQL遇到问题:write configuration file卡主
Life is endless, there are more questions, simple questions to learn knowledge points
LeetCode 1161.最大层内元素和:层序遍历
【软件工程之美 - 专栏笔记】33 | 测试工具:为什么不应该通过QQ/微信/邮件报Bug?
ApiPost is really fragrant and powerful, it's time to throw away Postman and Swagger
7 天能找到 Go 工作吗?学学 Go 数组和指针试试
502 bad gateway causes and solutions
结构化查询语言SQL-关系数据库标准语言
学自动化测试哪个培训机构好 试听课程后就选了这个地方学习
矩形脉冲波形的占空比及脉冲和瞬态特征的测量
How MySQL's allowMultiQueries flag relates to JDBC and jOOQ
lotus-local-net 2k v1.17.0-rc4
VBA实现双击单元格自动输出对号再次双击取消对号
[Go Affair] See through Go's collections and slices at a glance
第十二章 使用中的 OpenAPI 属性
Cloudera Manager —— 端到端的企业数据中心管理工具
LeetCode - 025. 链表中的两数相加