当前位置:网站首页>SAP Commerce Cloud Product Review 的添加逻辑
SAP Commerce Cloud Product Review 的添加逻辑
2022-07-31 11:25:00 【华为云】
点了 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;}生效了:
边栏推荐
- Yarn安装配置(vsftpd安装配置)
- Insertion and deletion of doubly linked list
- xmind使用指南(XMind具有下列哪些功能)
- Distributed id solution
- 内网渗透学习(四)域横向移动——SMB和WMI服务利用
- Redis-基础
- 「MySQL」- 基础增删改查
- deeplab implements its own remote sensing geological segmentation dataset
- In half a month, MySQL has been consolidated again, and a tens of thousands of words "super hard core" article has been sorted out!
- file contains vulnerabilities
猜你喜欢

才22岁!这位'00后'博士拟任职985高校!

一、excel转pdf格式jacob.jar

The latest MySql installation teaching, very detailed

SQL - Left join, Right join, Inner join

file contains vulnerabilities

IBM SPSS Statistics 28软件安装包下载及安装教程

Usage of exists in sql

Docker build Mysql master-slave replication

Candence学习篇(11) allegro中设置规则,布局,走线,铺铜

Sql optimization summary!detailed!(Required for the latest interview in 2021)
随机推荐
strings包详细文档+示例
Initial JDBC programming
Redis缓存面临的缓存击穿问题
7 天找个 Go 工作,Gopher 要学的条件语句,循环语句 ,第3篇
矩形脉冲波形的占空比及脉冲和瞬态特征的测量
透过开发抽奖小程序,体会创新与迭代
Docker practical experience: Deploy mysql8 master-slave replication on Docker
Experience innovation and iteration through the development of lucky draw mini-programs
一文吃透接口调用神器RestTemplate
[Go Affair] See through Go's collections and slices at a glance
5 open source Rust web development frameworks, which one do you choose?
lotus-local-net 2k v1.17.0-rc4
Read through the interface to call the artifact RestTemplate
MySQL百万数据优化总结 一
使用内存映射加快PyTorch数据集的读取
淀粉与纤维素
IDEA 配置方法注释自动参数
生命不息,刷题不止,简单题学习知识点
[ 图 论 ]二分图判定及其匹配(基础+提高)
Docker安装canal、mysql进行简单测试与实现redis和mysql缓存一致性