How to add toolbar and pager to new.phtml?












0















How to add toolbar and pager to new.phtml ? I tried this code below but the toolbar/pager doesn't show up. Thankyou!!



<reference name="head">
<action method="addItem">
<type>skin_js</type>
<name>js/jquery.elevateZoom-3.0.8.min.js</name>
</action>
<action method="addItem">
<type>skin_js</type>
<name>js/product-custom-list.js</name>
</action>
<action ifconfig="spp/setting/enableModule" method="addItem">
<type>skin_js</type>
<name>js/simple_product_pricing_quickview.js</name>
</action>
</reference>
<reference name="root">
<action method="setTemplate">
<template>page/category-layered.phtml</template>
</action>
</reference>
<reference name="content">
<block type="catalog/product_new" name="just.catalog.product.new" template="catalog/product/new.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>
<action method="setCategoryId">
<category_id>2</category_id>
</action>
<action method="setToolbarBlockName"><name>product_list_toolbar</name </action>
<action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>4</count></action>
</block>
</reference>
<reference name="left">
<block type="amshopby/catalog_layer_view" name="amshopby.navleft" before="-" template="catalog/layer/view.phtml"/>
</reference>
<cms_page_view>
<update handle="infinitescroll"/>
</cms_page_view>
<reference name="before_body_end">
<block type="infinitescroll/init" name="infinitescroll_init">
<action method="setTemplate">
<template>strategery/infinitescroll/init_notoolbar.phtml</template>
</action>
</block>
</reference>









share|improve this question
















bumped to the homepage by Community 11 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    0















    How to add toolbar and pager to new.phtml ? I tried this code below but the toolbar/pager doesn't show up. Thankyou!!



    <reference name="head">
    <action method="addItem">
    <type>skin_js</type>
    <name>js/jquery.elevateZoom-3.0.8.min.js</name>
    </action>
    <action method="addItem">
    <type>skin_js</type>
    <name>js/product-custom-list.js</name>
    </action>
    <action ifconfig="spp/setting/enableModule" method="addItem">
    <type>skin_js</type>
    <name>js/simple_product_pricing_quickview.js</name>
    </action>
    </reference>
    <reference name="root">
    <action method="setTemplate">
    <template>page/category-layered.phtml</template>
    </action>
    </reference>
    <reference name="content">
    <block type="catalog/product_new" name="just.catalog.product.new" template="catalog/product/new.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>
    <action method="setCategoryId">
    <category_id>2</category_id>
    </action>
    <action method="setToolbarBlockName"><name>product_list_toolbar</name </action>
    <action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>4</count></action>
    </block>
    </reference>
    <reference name="left">
    <block type="amshopby/catalog_layer_view" name="amshopby.navleft" before="-" template="catalog/layer/view.phtml"/>
    </reference>
    <cms_page_view>
    <update handle="infinitescroll"/>
    </cms_page_view>
    <reference name="before_body_end">
    <block type="infinitescroll/init" name="infinitescroll_init">
    <action method="setTemplate">
    <template>strategery/infinitescroll/init_notoolbar.phtml</template>
    </action>
    </block>
    </reference>









    share|improve this question
















    bumped to the homepage by Community 11 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      0












      0








      0








      How to add toolbar and pager to new.phtml ? I tried this code below but the toolbar/pager doesn't show up. Thankyou!!



      <reference name="head">
      <action method="addItem">
      <type>skin_js</type>
      <name>js/jquery.elevateZoom-3.0.8.min.js</name>
      </action>
      <action method="addItem">
      <type>skin_js</type>
      <name>js/product-custom-list.js</name>
      </action>
      <action ifconfig="spp/setting/enableModule" method="addItem">
      <type>skin_js</type>
      <name>js/simple_product_pricing_quickview.js</name>
      </action>
      </reference>
      <reference name="root">
      <action method="setTemplate">
      <template>page/category-layered.phtml</template>
      </action>
      </reference>
      <reference name="content">
      <block type="catalog/product_new" name="just.catalog.product.new" template="catalog/product/new.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>
      <action method="setCategoryId">
      <category_id>2</category_id>
      </action>
      <action method="setToolbarBlockName"><name>product_list_toolbar</name </action>
      <action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>4</count></action>
      </block>
      </reference>
      <reference name="left">
      <block type="amshopby/catalog_layer_view" name="amshopby.navleft" before="-" template="catalog/layer/view.phtml"/>
      </reference>
      <cms_page_view>
      <update handle="infinitescroll"/>
      </cms_page_view>
      <reference name="before_body_end">
      <block type="infinitescroll/init" name="infinitescroll_init">
      <action method="setTemplate">
      <template>strategery/infinitescroll/init_notoolbar.phtml</template>
      </action>
      </block>
      </reference>









      share|improve this question
















      How to add toolbar and pager to new.phtml ? I tried this code below but the toolbar/pager doesn't show up. Thankyou!!



      <reference name="head">
      <action method="addItem">
      <type>skin_js</type>
      <name>js/jquery.elevateZoom-3.0.8.min.js</name>
      </action>
      <action method="addItem">
      <type>skin_js</type>
      <name>js/product-custom-list.js</name>
      </action>
      <action ifconfig="spp/setting/enableModule" method="addItem">
      <type>skin_js</type>
      <name>js/simple_product_pricing_quickview.js</name>
      </action>
      </reference>
      <reference name="root">
      <action method="setTemplate">
      <template>page/category-layered.phtml</template>
      </action>
      </reference>
      <reference name="content">
      <block type="catalog/product_new" name="just.catalog.product.new" template="catalog/product/new.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>
      <action method="setCategoryId">
      <category_id>2</category_id>
      </action>
      <action method="setToolbarBlockName"><name>product_list_toolbar</name </action>
      <action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>4</count></action>
      </block>
      </reference>
      <reference name="left">
      <block type="amshopby/catalog_layer_view" name="amshopby.navleft" before="-" template="catalog/layer/view.phtml"/>
      </reference>
      <cms_page_view>
      <update handle="infinitescroll"/>
      </cms_page_view>
      <reference name="before_body_end">
      <block type="infinitescroll/init" name="infinitescroll_init">
      <action method="setTemplate">
      <template>strategery/infinitescroll/init_notoolbar.phtml</template>
      </action>
      </block>
      </reference>






      magento-1.9 xml new-products






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jul 6 '17 at 0:40









      PЯINCƏ

      8,21831143




      8,21831143










      asked Jul 5 '17 at 21:29









      KaraKara

      56212




      56212





      bumped to the homepage by Community 11 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 11 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          Go to app/design/frontend/{package}/{theme}/layout/local.xml then add this one :



          <your_layout_handle>
          <reference name="root">
          <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>
          </reference>
          </your_layout_handle>


          Then go to your new.phtml and add this code where you want to display the toolbar :



          <?php echo $this->getBlockHtml('product_list_toolbar'); ?>


          Clear your Magento and browser cache.






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "479"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f182238%2fhow-to-add-toolbar-and-pager-to-new-phtml%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Go to app/design/frontend/{package}/{theme}/layout/local.xml then add this one :



            <your_layout_handle>
            <reference name="root">
            <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>
            </reference>
            </your_layout_handle>


            Then go to your new.phtml and add this code where you want to display the toolbar :



            <?php echo $this->getBlockHtml('product_list_toolbar'); ?>


            Clear your Magento and browser cache.






            share|improve this answer




























              0














              Go to app/design/frontend/{package}/{theme}/layout/local.xml then add this one :



              <your_layout_handle>
              <reference name="root">
              <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>
              </reference>
              </your_layout_handle>


              Then go to your new.phtml and add this code where you want to display the toolbar :



              <?php echo $this->getBlockHtml('product_list_toolbar'); ?>


              Clear your Magento and browser cache.






              share|improve this answer


























                0












                0








                0







                Go to app/design/frontend/{package}/{theme}/layout/local.xml then add this one :



                <your_layout_handle>
                <reference name="root">
                <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>
                </reference>
                </your_layout_handle>


                Then go to your new.phtml and add this code where you want to display the toolbar :



                <?php echo $this->getBlockHtml('product_list_toolbar'); ?>


                Clear your Magento and browser cache.






                share|improve this answer













                Go to app/design/frontend/{package}/{theme}/layout/local.xml then add this one :



                <your_layout_handle>
                <reference name="root">
                <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>
                </reference>
                </your_layout_handle>


                Then go to your new.phtml and add this code where you want to display the toolbar :



                <?php echo $this->getBlockHtml('product_list_toolbar'); ?>


                Clear your Magento and browser cache.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jul 5 '17 at 22:15









                PЯINCƏPЯINCƏ

                8,21831143




                8,21831143






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Magento Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f182238%2fhow-to-add-toolbar-and-pager-to-new-phtml%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    What other Star Trek series did the main TNG cast show up in?

                    Berlina muro

                    Berlina aerponto