当前位置:网站首页>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
CheckoutProgress
Used 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 guards
Use .
边栏推荐
- Web Authentication API兼容版本信息
- 老板总问我进展,是不信任我吗?(你觉得呢)
- linear regression
- EMMC打印cqhci: timeout for tag 10提示分析与解决
- Différenciation et introduction des services groupés, distribués et microservices
- PTA ladder game exercise set l2-002 linked list de duplication
- Mysql-centos7 install MySQL through yum
- 高级程序员必知必会,一文详解MySQL主从同步原理,推荐收藏
- Lombok plug-in
- Go语学习笔记 - gorm使用 - 原生sql、命名参数、Rows、ToSQL | Web框架Gin(九)
猜你喜欢
ForkJoin最全详解(从原理设计到使用图解)
What is message queuing?
Distributed global ID generation scheme
【FPGA教程案例13】基于vivado核的CIC滤波器设计与实现
绕过open_basedir
Three level menu data implementation, nested three-level menu data
Red Hat安装内核头文件
[云原生]微服务架构是什么?
An example of multi module collaboration based on NCF
【SQL实战】一条SQL统计全国各地疫情分布情况
随机推荐
On the difference between FPGA and ASIC
CTFshow--常用姿势
一个简单的代数问题的求解
关于服装ERP,你知道多少?
OpenSergo 即将发布 v1alpha1,丰富全链路异构架构的服务治理能力
[InstallShield] Introduction
Introduction to distributed transactions
Type de texte de commutation d'entrée et de mot de passe de l'applet natif
Flinksql 读写pgsql
Dynamic memory management
Why does the data center need a set of infrastructure visual management system
An example of multi module collaboration based on NCF
ForkJoin最全详解(从原理设计到使用图解)
Modes of optical fiber - single mode and multimode
Realize GDB remote debugging function between different network segments
Reptile exercises (III)
Web authentication API compatible version information
盘点国内有哪些EDA公司?
【SQL实战】一条SQL统计全国各地疫情分布情况
Flask1.1.4 Werkzeug1.0.1 源碼分析:啟動流程