English 中文(简体)
我如何在Magento找到一个表格?
原标题:How do I identify a tab in Magento?
  • 时间:2012-01-13 01:01:41
  •  标签:
  • magento

我想取代销售评论史表的模板——Magento s admin的命令观点部分。 我如何确定表格并正确地提到它?

我能够利用以下最新版图取代《命令》中的信息评论历史部分模板:

<adminhtml_sales_order_view>
    <reference name="order_history">
        <action method="setTemplate"><template>popcap/sales/order/view/history.phtml</template></action>
    </reference>
</adminhtml_sales_order_view>

I ve been using Alan Storm s LayoutViewer module (http://alanstorm.com/2005/projects/MagentoLayoutViewer.tar.gz) to get this far, but I just can t figure out the correct reference path.

Any help would be greatly appreciated. Thank you.

问题回答

这样做的最容易的方法是,对Magento db进行以下询问,从而在行政区的模板背面上进行。

INSERT INTO core_config_data (scope, scope_id, path, value) VALUES ( default , 0,  dev/debug/template_hints , 1), ( default , 0,  dev/debug/template_hints_blocks , 1);

然后,你能够确定相关模板,以压倒一切。

在本案中,它有:

Don t forget to turn the hints off...it makes it quite hard to navigate around the admin area

UPDATE core_config_data SET value = 0 WHERE path like  dev/debug/template_hints% ;




相关问题
Magento addFieldToFilter allow NULLs

When using the Magento collection method addFieldToFilter is it possible to allow filtering by NULL values? I want to select all the products in a collection that have a custom attribute even if no ...

Get product link from Magento API

I am new to Magento and using their API. I need to be able to get the product url from the API call. I see that I can access the url_key and url_path, but unfortunately that s not necessarily what ...

magento extension installation

I want to install a Magento extension in WAMP, but not from the Magento connect system. How can I do this? I have the module (extension) code and I already installed the sample data in the Magento ...

Link to a specific step in onepage checkout

Is it possible to redirect the browser to nth step in the onepage checkout? If so, how would one go about doing it? I m working on a payment module and have a sort of "cancel" action that i would ...

How do I filter a collection by a YesNo type attribute?

I have a ‘featured’ attribute, which has a Yes/No select-list as the admin input. I presume that the values for Yes and No are 1 and 0, as they are for every other Yes/No list. However, if I try and ...

热门标签