2015-07-28 175 views
0

在magento我重寫產品list.phtml,其工作正常,但傳呼機沒有顯示。我已經在xml和list.phtml中包含了代碼,但沒有顯示。請幫忙。Magento Pager沒有顯示在產品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

它看起來像你缺少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> 
相關問題