SAP Spartacus footer区域的一些常见错误

简介: SAP Spartacus footer区域的一些常见错误

问题:footer 根本没有显示


image.png

原因

The footer-related issue you are seeing is caused by a missing CMS layout configuration for the footer. It can be resolved by adding the following configuration to the “layoutSlots” configuration in your “app.module.ts”:

image.png

If you are referring to items such as the Header or Footer that are present on every page it is advised against lazy loading them. Since they will always need to be loaded there is no gain made in code splitting them. On the contrary, it will cause the total size of the main.js plus the lazy-loaded chunks to be greater than if these items were eagerly loaded.


如果 footer 只在 home 页面出现,但是 PDP 和 checkout 页面消失了。可能的原因:


This was most likely caused by not using the B2C recipe anymore (B2cStorefrontModule). It can

be fixed by adding the following in your app.module.ts providers:


image.png

image.png

相关文章
|
6月前
|
缓存 负载均衡 前端开发
SAP Spartacus 和 Sticky session 相关的话题
SAP Spartacus 和 Sticky session 相关的话题
38 0
|
3月前
|
存储 缓存 前端开发
关于 SAP Spartacus Optimization Engine 里的 cache 参数使用注意事项
关于 SAP Spartacus Optimization Engine 里的 cache 参数使用注意事项
20 0
|
3月前
|
JSON 开发者 数据格式
关于 SAP Spartacus LandingPage2Template 区域的 layout 设计实现
关于 SAP Spartacus LandingPage2Template 区域的 layout 设计实现
26 0
|
3月前
|
搜索推荐 开发者 UED
关于 SAP Spartacus 层的 UI 设计
关于 SAP Spartacus 层的 UI 设计
40 0
|
3月前
|
开发者 UED
SAP Spartacus BREAKPOINT 枚举类型在 Spartacus layout 实现中的作用
SAP Spartacus BREAKPOINT 枚举类型在 Spartacus layout 实现中的作用
24 0
|
6月前
|
前端开发 搜索推荐 JavaScript
什么是 SAP Spartacus 的 CMS Page Connector
什么是 SAP Spartacus 的 CMS Page Connector
46 0
|
6月前
|
JavaScript 容器
关于 SAP Spartacus generic-link component 的模板代码
关于 SAP Spartacus generic-link component 的模板代码
41 2
|
6月前
|
前端开发
SAP Commerce Cloud 的 Footer 区域设计
SAP Commerce Cloud 的 Footer 区域设计
48 0
|
6月前
|
JavaScript 前端开发 搜索推荐
SAP 电商云 footer 区域 Link Component HTML 源代码的详细讲解
SAP 电商云 footer 区域 Link Component HTML 源代码的详细讲解
69 0
|
6月前
|
前端开发 JavaScript API
SAP Commerce Accelerator Storefront 到 Spartacus 的 page by page migration 策略
SAP Commerce Accelerator Storefront 到 Spartacus 的 page by page migration 策略
31 0