当前位置:网站首页>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 .
边栏推荐
- Go language context explanation
- What is message queuing?
- Three level menu data implementation, nested three-level menu data
- Flinksql 读写pgsql
- Nvisual network visualization
- Mysql-centos7 install MySQL through yum
- 【FPGA教程案例13】基于vivado核的CIC滤波器设计与实现
- Forkjoin is the most comprehensive and detailed explanation (from principle design to use diagram)
- 980. Different path III DFS
- ML之shap:基于adult人口普查收入二分类预测数据集(预测年收入是否超过50k)利用shap决策图结合LightGBM模型实现异常值检测案例之详细攻略
猜你喜欢
目标检测中的BBox 回归损失函数-L2,smooth L1,IoU,GIoU,DIoU,CIoU,Focal-EIoU,Alpha-IoU,SIoU
Distributed global ID generation scheme
I didn't know it until I graduated -- the principle of HowNet duplication check and examples of weight reduction
Web Authentication API兼容版本信息
产业金融3.0:“疏通血管”的金融科技
Web architecture design process
Introduction to distributed transactions
[daily training -- Tencent selected 50] 235 Nearest common ancestor of binary search tree
PowerPivot——DAX(函数)
驱动开发中platform设备驱动架构详解
随机推荐
【已解决】记一次EasyExcel的报错【读取xls文件时全表读不报错,指定sheet名读取报错】
Nvisual network visualization
Digital IC interview summary (interview experience sharing of large manufacturers)
Message queue: how to handle repeated messages?
Pytorch builds neural network to predict temperature
Reptile exercises (III)
Red Hat安装内核头文件
[云原生]微服务架构是什么?
【SQL实战】一条SQL统计全国各地疫情分布情况
三级菜单数据实现,实现嵌套三级菜单数据
每秒10W次分词搜索,产品经理又提了一个需求!!!(收藏)
An example of multi module collaboration based on NCF
随机生成session_id
make makefile cmake qmake都是什么,有什么区别?
上海字节面试问题及薪资福利
PTA ladder game exercise set l2-002 linked list de duplication
PTA 天梯赛练习题集 L2-002 链表去重
Wechat applet Bluetooth connects hardware devices and communicates. Applet Bluetooth automatically reconnects due to abnormal distance. JS realizes CRC check bit
STM32按键状态机2——状态简化与增加长按功能
cf:C. Column Swapping【排序 + 模拟】