php 在 magento 1.9.0.0 中如何启用模板路径提示?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/24273443/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 17:15:17  来源:igfitidea点击:

In magento 1.9.0.0 how can I Enable template path Hint?

phpmagentomagento-1.9

提问by Chirag Savsani

I am trying to turn on template path hint in magento 1.9.0.0 but it's not working.

我正在尝试在 magento 1.9.0.0 中打开模板路径提示,但它不起作用。

But in magento 1.8.0.0 it's fully working. How can I turn it on in magento 1.9? enter image description here

但是在 magento 1.8.0.0 中它完全正常工作。如何在 magento 1.9 中打开它? 在此处输入图片说明

回答by Krishna Sunuwar

I see that you have selected store view, Main Website. Please select website view e.g. English and enable template path.

我看到您选择了商店视图,主网站。请选择网站视图(例如英语)并启用模板路径。

回答by Andriy Leshchuk

I haven't installed any language (default was English). For me it works (for version 1.9.2) when I choose "Current Configuration Scope:" -> "Default Store View". Check a screenshot below: Magento configuration scope

我没有安装任何语言(默认是英语)。对我来说,当我选择“当前配置范围:”->“默认商店视图”时,它可以工作(对于版本 1.9.2)。检查下面的屏幕截图:Magento 配置范围

回答by suruthi

To enable template path hints follow the following steps:

要启用模板路径提示,请按照以下步骤操作:

  1. Go to Magento admin panel->systems->configuration
  2. Choose your store view on top left corner in Current Configuration Scope ex:english
  3. Go to Advanced tab. Under that click on Developer->Debug. If you want both block and view template path hints, click yes on Template path hints (phtml files) and Add Block Names to Hints.
  4. Refresh your frontend
  5. List item
  1. 转到 Magento 管理面板->系统->配置
  2. 在 Current Configuration Scope 的左上角选择您的商店视图,例如:english
  3. 转到高级选项卡。在该下单击 Developer->Debug。如果您需要块和视图模板路径提示,请单击模板路径提示(phtml 文件)和将块名称添加到提示上。
  4. 刷新你的前端
  5. 项目清单