当前位置:网站首页>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 .
边栏推荐
- 成为资深IC设计工程师的十个阶段,现在的你在哪个阶段 ?
- 每秒10W次分词搜索,产品经理又提了一个需求!!!(收藏)
- Opensergo is about to release v1alpha1, which will enrich the service governance capabilities of the full link heterogeneous architecture
- 高级程序员必知必会,一文详解MySQL主从同步原理,推荐收藏
- Web architecture design process
- ML之shap:基于adult人口普查收入二分类预测数据集(预测年收入是否超过50k)利用shap决策图结合LightGBM模型实现异常值检测案例之详细攻略
- 数字IC面试总结(大厂面试经验分享)
- STM32 key state machine 2 - state simplification and long press function addition
- Polynomial locus of order 5
- SAP ABAP BDC(批量数据通信)-018
猜你喜欢
随机推荐
STM32 key state machine 2 - state simplification and long press function addition
cf:C. Column Swapping【排序 + 模擬】
nVisual网络可视化
SAP webservice 测试出现404 Not found Service cannot be reached
《ClickHouse原理解析与应用实践》读书笔记(6)
Win configuration PM2 boot auto start node project
随机生成session_id
成为资深IC设计工程师的十个阶段,现在的你在哪个阶段 ?
Question 102: sequence traversal of binary tree
Hcip seventh operation
Detailed explanation of platform device driver architecture in driver development
Nvisual network visualization
What are the common message queues?
CTFshow--常用姿势
EMMC print cqhci: timeout for tag 10 prompt analysis and solution
How much do you know about clothing ERP?
Distributed global ID generation scheme
驱动开发中platform设备驱动架构详解
谈fpga和asic的区别
Interview skills of software testing