SAP Commerce Cloud Product Review 的添加逻辑
生活随笔
收集整理的這篇文章主要介紹了
SAP Commerce Cloud Product Review 的添加逻辑
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
點了 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 的成功消息。
更多Jerry的原創文章,盡在:“汪子熙”:
總結
以上是生活随笔為你收集整理的SAP Commerce Cloud Product Review 的添加逻辑的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: SAP Spartacus 捕捉 Pag
- 下一篇: 饮料中喝到大蟑螂 蜜雪冰城商家回应:会给