查找Magento的主题文件
我想对 magento 主题实际上的产品详细信息页面进行一些更改,但我无法找到它是什么主题。有 4 个目录可以存放文件。
在app/design中有2个目录,default和base,还有更多 皮肤文件夹中的层次结构也是如此
,那么有没有什么地方可以让我看到正在使用哪些文件,或者magento中是否有一些变量或函数可以用来检查从哪里获取文件。我对magento和zend框架不太了解。我尝试回显 Product_controller 中的一些内容,但似乎我没有在写入文件中打印输出。那么我可以通过什么方式知道产品详细信息页面视图的文件在哪里,我可以在其中添加表单和一些链接,magento 中是否有任何类型的自定义 HTML 可以在产品详细信息页面中添加?我实际上想要其中有一个表单,将其带到我将在 magento 中创建的另一个页面,并且该页面将使用表单中的一些数据。或者是否有一些扩展?
如果您知道任何相关情况,请告诉我们,非常感激。
谢谢
I want to do some changes in magento theme actually product detail page, but I am unable to find that what theme it is. There are 4 directories where files can be.
In app/design there are 2 directories, default and base and then further more
And same is hierarchy in skin folder
So is there some place where I can see that which files are being used or is there some variables or functions in magento that I can use to check that from where it is getting file. I don't know much about magento and zend framework. I tried to echo some content in product_controller but it seems that I am not printing output in write file. So what can be the way for me to know that where is the file of product detail page view where I can add a form and some link, is there any sort of custom HTML in magento that I can add in product detail page? I actually want to have a form in it that will take it to anohter page that I will create in magento and that page will use some data from form. Or if there is some extension for it?
Please tell if you know any thing about it , that is really appreciated.
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以从“系统”>“主题设置”中找到您的主题设置位置
或者您可以在index.php末尾添加
print_r(get_included_files());
来查看当前php页面中实际使用了哪些文件You can find out where your themes set from
or you can add
print_r(get_included_files());
to the end of index.php to see what files are actually used in current php page您可以从以下位置查看设置
系统>配置>设计
系统>设计
在这里你可以看到使用布局、模板和皮肤的主题名称
然后您可以浏览与正在使用的文件夹中的文件同名的文件夹。
You can find out which is set from following place
System > Configuration > Design
System > Design
here you can see the name of theme who layout,templates and skin is used
then u can explore the folder having the same name as files from that folder are in use.