【问题标题】:Create 404 page in SuiteCommerce在 SuiteCommerce 中创建 404 页面
【发布时间】:2018-12-08 01:01:59
【问题描述】:

如何在 SuiteCommerce 中创建 404 页面?

我要创建404页面模板和路由正则表达式。

【问题讨论】:

    标签: netsuite suitecommerce


    【解决方案1】:

    按照以下步骤创建自定义 404 页面:

  • 创建一个新的 html 文件,当购物者遇到 404 错误时将显示该文件
  • 导航到Documents > Files > File Cabinet
  • 点击网站托管Files > Live Hosting Files > Site
  • 点击添加文件按钮上传 html 文件
  • 导航到Setup > Site Builder > Domains
  • 对于要重定向到此页面的每个域,从 Not-Found Page 下拉列表中选择文件
  • 保存
  • 【讨论】:

      【解决方案2】:

      他询问的是 SuiteCommerce 而不是 SiteBuilder。 在 SuiteCommerce 中,您只需覆盖由 ErrorManagement 模块调用的模板 error_management_page_not_found.tpl(包括 ErrorManagement.PageNotFound.View)。

      至于你想显示的正则表达式,你能描述一下它应该如何工作吗?目前它是由名为 control_valid_navigation 的方法中的 ErrorManagement.js 控制的,这是在

      中触发的
      jQuery(window).on('hashchange', control_valid_navigation);
      application.once('afterStart', control_valid_navigation);
      

      我希望这能回答您的问题或为您提供从哪里开始的线索。

      【讨论】:

        猜你喜欢
        • 2017-07-30
        • 1970-01-01
        • 1970-01-01
        • 2018-01-22
        • 2022-11-13
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多