当前位置:网站首页>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 .
边栏推荐
- Dynamic memory management
- 404 not found service cannot be reached in SAP WebService test
- What is message queuing?
- Industrial Finance 3.0: financial technology of "dredging blood vessels"
- Data storage 3
- zabbix_ Get test database failed
- SAP webservice 测试出现404 Not found Service cannot be reached
- PTA ladder game exercise set l2-004 search tree judgment
- Pytorch builds neural network to predict temperature
- Go语学习笔记 - gorm使用 - gorm处理错误 | Web框架Gin(十)
猜你喜欢
随机推荐
PTA 天梯赛练习题集 L2-002 链表去重
SQL query: subtract the previous row from the next row and make corresponding calculations
搞懂fastjson 对泛型的反序列化原理
Red hat install kernel header file
一个简单的代数问题的求解
数字IC面试总结(大厂面试经验分享)
C. colonne Swapping [tri + Simulation]
[shell] clean up nohup Out file
Harmonyos practice - Introduction to development, analysis of atomized services
Go 語言的 Context 詳解
【已解决】记一次EasyExcel的报错【读取xls文件时全表读不报错,指定sheet名读取报错】
集群、分布式、微服務的區別和介紹
驱动开发中platform设备驱动架构详解
Why does the data center need a set of infrastructure visual management system
上海字节面试问题及薪资福利
目标检测中的损失函数与正负样本分配:RetinaNet与Focal loss
Lombok plug-in
爬虫练习题(三)
SAP ABAP BDC (batch data communication) -018
毕业之后才知道的——知网查重原理以及降重举例