【发布时间】:2019-09-26 00:40:35
【问题描述】:
我正在学习 BigCommerce 和 Stencil 的技巧。我正在关注 YouTube 上相当过时的教程以及这里的开发文档https://developer.bigcommerce.com/stencil-docs/storefront-customization/custom-templates
我正在努力将自定义页面映射到 URL。我在.stencil 文件中有这个:
{
"normalStoreUrl": "https://abc.mybigcommerce.com",
"accessToken": "xyz",
"port": 3000,
"customLayouts": {
"brand": {},
"category": {},
"page": {},
"product": {
"product-chart": "/new_one/"
}
}
}
我有product-chart.html 位于templates/pages/custom/product/
我已尝试像文档中所说的那样包含 .html,而没有像 YouTube 教程中所说的那样包含,但没有一个有效并导致 404 错误。我已重新启动开发服务器以使对 .stencil 文件的所有更改生效并加载 locahost:3000/new_one 但没有任何更改。
我做错了什么?
【问题讨论】:
标签: bigcommerce