Virto Commerce - 主题与 Shopify 主题的兼容性

Virto Commerce - Themes compatibility with Shopify Themes

Virto Commerce 的 Doco 说是兼容的,但是无论是使用导入工具从 Shopify 导入主题还是直接将 Shopify 主题上传到商店,我都会收到以下错误。

FileNotFoundException: The template 'content_header' was not found. The following locations were searched:<br/>Themes\Electronics\Debut\templates<br/>Themes\Electronics\Debut\snippets<br/>Themes\Electronics\Debut\layout<br/>Themes\Electronics\Debut\assets

Shopify 主题是否可以在 Virto Commerce 中使用或是否需要开发? 谢谢

Virto Commerce Storefront Theming 仅 partially 与 Shopify Liquid Themes 兼容,并且有一些限制和主题适配所需的开发工作,更重要的是,这个过程对于某些人来说可能并不简单案例,需要熟悉Virto店面应用和主题开发的关键原则。

遗憾的是,我们没有关于如何将 Shopify 主题转换为 Virto 的手册,但我可以为您提供一些可能对您有所帮助的兼容性和相似性列表:

  • Virto 使用 Liquid 作为最终用户模板的主要语法
  • Virto 使用与 Shopify Liquid 对象和变量基本相同的 Shopify Cheat Sheet but with some limitations and incompatibilities. Here it is not completed list of incompatibles of Virto Liquid objects with Shopify
  • Virto 在其自己的主题中使用现代 JS 网络框架(Angular、VueJS、AngularJS)来实现 Shopify 主题中缺少的购物体验所需的功能,例如作为结帐、帐户管理等

以下是示例 Virto 主题的一些链接,可用作自定义主题开发的起点:

  • ODT-MPA starter theme - VueJs MPA 主题。它可能被认为是一个很好的起点,但它仍在开发中。
  • Procurement portal theme - Angular 混合主题利用了 SPA 和 SSR 方法的优点。它实现了非常基本的功能。
  • Virto default theme - AngularJS 主题。最全功能的主题,但它使用过时的 JS 框架 AngularJS 1.4。

我认为问题,与这段代码有关 https://github.com/VirtoCommerce/vc-storefront-core/blob/ff774a1e318d702a5203ae5aaa6ef1a5c7a499da/VirtoCommerce.LiquidThemeEngine/LiquidThemedView.cs#L88

我觉得应该是content_for_header.

作为解决方法,我可以提供创建空的 content_header.liquid 代码段。