在magento中我覆盖了产品list.phtml,它工作正常但是寻呼机没有显示。我已经在xml以及list.phtml中包含了寻呼机的代码,但没有显示。请帮忙。
提前致谢
下面是list.phtml的代码
$this->getToolbarHtml()
对于xml代码
<catalog_category_default translate="label">
<reference name="head">
<action method="addJs"><script>varien/product.js</script></action>
<action method="addJs"><script>varien/configurable.js</script></action>
<action method="addItem"><type>js_css</type><name>calendar/calendar-win2k-1.css</name><params/><!--<if/><condition>can_load_calendar_js</condition>--></action>
<action method="addItem"><type>js</type><name>calendar/calendar.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
<action method="addItem"><type>js</type><name>calendar/calendar-setup.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
<action method="addItem"><type>skin_js</type><name>js/bundle.js</name></action>
</reference>
<reference name="content">
<block type="catalog/product_list" name="product_list" template="quickview/catalog/product/list.phtml">
<block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
<block type="page/html_pager" name="product_list_toolbar_pager"/>
</block>
</block>
</reference>
答案 0 :(得分:0)
您似乎错过了catalog/category_view
阻止。
试试这个:
<catalog_category_default translate="label">
<reference name="head">
<action method="addJs"><script>varien/product.js</script></action>
<action method="addJs"><script>varien/configurable.js</script></action>
<action method="addItem"><type>js_css</type><name>calendar/calendar-win2k-1.css</name><params/><!--<if/><condition>can_load_calendar_js</condition>--></action>
<action method="addItem"><type>js</type><name>calendar/calendar.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
<action method="addItem"><type>js</type><name>calendar/calendar-setup.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
<action method="addItem"><type>skin_js</type><name>js/bundle.js</name></action>
</reference>
<reference name="content">
<block name="category.products" template="catalog/category/view.phtml" type="catalog/category_view">
<block name="product_list" template="catalog/product/list.phtml" type="catalog/product_list">
<block name="product_list_toolbar" template="catalog/product/list/toolbar.phtml" type="catalog/product_list_toolbar">
<block name="product_list_toolbar_pager" type="page/html_pager" />
</block>
</block>
</block>
</reference>
</catalog_category_default>