如何使用模板框架在 Cornerstone 主题中创建新模板

How to create new template in Cornerstone theme using stencil framework

我是 Bigcommerce 的新手,我需要在我的 Bigcommerce 主题 (Cornerstone) 中创建一个页面模板。

我已按照文档进行操作,但它被重定向到 404 页面。请帮助我。

我也试过下面的 link 但 Url 重定向到 404 页面

注意:我已经在本地环境中安装了模板框架并进行了尝试

https://developer.bigcommerce.com/stencil-docs/template-files/custom-templates/about-custom-templates

在本地使用自定义模板时出现 404 错误的一个常见原因是自定义模板映射到的页面不是实时商店中存在的页面。例如,如果您在 .stencil 文件中映射 "custom-product.html":"/my-product/",则需要在您的实时商店中使用 URL /my-product 创建一个产品页面/.该模板需要映射到相同类型的实时页面:如果您正在创建网页,则需要映射到真实网页;如果您要创建类别页面,您会将自定义模板映射到现有类别 URL 之一。希望这对您有所帮助!