当前位置:网站首页>Introduction to the extension implementation of SAP Spartacus checkout process
Introduction to the extension implementation of SAP Spartacus checkout process
2022-07-07 05:56:00 【Wang Zixi】
Spartacus Medium checkout Characteristic is CMS Driven , It means checkout Every page in the stream is based on CMS page 、slots and Component. therefore , Development can change the content of each page 、 Add new components 、 take checkout Convert to single step checkout , Or you can create a very complex multi-step application with only a small amount of configuration in the storefront Application checkout workflow .
stay checkout In the process , There are usually links from one step to another , This is to put each checkout The page is registered as semantic page Why .
checkout The default routing configuration of is as follows :
provideConfig({
routing: {
routes: {
checkout: {
paths: ['checkout'],
},
checkoutShippingAddress: {
paths: ['checkout/shipping-address']
},
checkoutDeliveryMode: {
paths: ['checkout/delivery-mode']
},
checkoutPaymentDetails: {
paths: ['checkout/payment-details']
},
checkoutReviewOrder: {
paths: ['checkout/review-order']
}
},
},
}),
Location of the above code :default-routing-config.ts
Although the default checkout There are four steps , But the default configuration defines five semantic pages . This additional page has a general checkout route , It links to each that should be redirected to checkout The components of . From this routine checkout page ,Spartacus Redirect to Specific and correct Of checkout step step .
If you want to link to checkout, Then whatever your checkout How is the process specifically designed , Point to this general checkout page . such as , For multi-step checkout, have access to CheckoutGuard To redirect to the correct checkout step .
Through one step checkout, You can set all components on this checkout route , And delete from the component configuration CheckoutGuard.
In addition to routing configuration , You can also define the responsibilities of each step 、 The route to the page and the sequence of steps are configured checkout. The default configuration is as follows :

id Attribute should have a unique value . When a specific step in the configuration needs to be identified , have access to id.
stay
CheckoutProgressUsed in components name Property to indicate which checkout steps have been completed . This name is also used as a translation key .routeName Attribute specifies the semantic page for each step .
type Attribute from
checkout guardsUse .
边栏推荐
- Message queuing: how to ensure that messages are not lost
- Go语学习笔记 - gorm使用 - 原生sql、命名参数、Rows、ToSQL | Web框架Gin(九)
- An example of multi module collaboration based on NCF
- 苹果cms V10模板/MXone Pro自适应影视电影网站模板
- 往图片添加椒盐噪声或高斯噪声
- ForkJoin最全详解(从原理设计到使用图解)
- PowerPivot - DAX (function)
- bat 批示处理详解
- Reading notes of Clickhouse principle analysis and Application Practice (6)
- 每秒10W次分词搜索,产品经理又提了一个需求!!!(收藏)
猜你喜欢

Question 102: sequence traversal of binary tree

Modes of optical fiber - single mode and multimode

如果不知道这4种缓存模式,敢说懂缓存吗?

Hcip seventh operation

Randomly generate session_ id

What are the common message queues?

PowerPivot - DAX (function)

数字IC面试总结(大厂面试经验分享)

SQL query: subtract the previous row from the next row and make corresponding calculations

Red Hat安装内核头文件
随机推荐
Différenciation et introduction des services groupés, distribués et microservices
Web Authentication API兼容版本信息
How much do you know about clothing ERP?
"Multimodal" concept
Add salt and pepper noise or Gaussian noise to the picture
每秒10W次分词搜索,产品经理又提了一个需求!!!(收藏)
How to improve website weight
Flask1.1.4 werkzeug1.0.1 source code analysis: start the process
OpenSergo 即将发布 v1alpha1,丰富全链路异构架构的服务治理能力
[InstallShield] Introduction
Polynomial locus of order 5
TCC of distributed transaction solutions
Go language context explanation
老板总问我进展,是不信任我吗?(你觉得呢)
Distributed global ID generation scheme
Mysql-centos7 install MySQL through yum
Realize GDB remote debugging function between different network segments
Flask1.1.4 Werkzeug1.0.1 源码分析:启动流程
目标检测中的BBox 回归损失函数-L2,smooth L1,IoU,GIoU,DIoU,CIoU,Focal-EIoU,Alpha-IoU,SIoU
SAP webservice 测试出现404 Not found Service cannot be reached