Include Toolbar Pager in custom product collection in custom page
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I have a custom page where I am listing the custom product collection. I am using the default catalog/product/list.phtml as template to display the page. It's listing fine like the category page. But it's missing the toolbar pager. I tried the code in the following way
<reference name="content">
<block type="customization/product_searchbycity" name="searchbycity" as="searchbycity" template="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>
<action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
<action method="addColumnCountLayoutDepend"><layout>empty</layout><count>6</count></action>
<action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>5</count></action>
<action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>4</count></action>
<action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>4</count></action>
<action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>3</count></action>
<action method="setColumnCount"><count>4</count></action>
</block>
</reference>
And in the block
class Probytes_Customization_Block_Product_Searchbycity extends Mage_Catalog_Block_Product_Abstract
{
public function getLoadedProductCollection() {
$data['address'] = $this->getRequest()->getParam('city-to-search');
$model = Mage::getModel('customization/citysearch');
$collection = Mage::getModel('catalog/product')->getCollection()->addAttributeToSelect('*');
$collection->addAttributeToFilter('status',1)
->addFieldToFilter('visibility', Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH);
$collection = $model->searchResult($data,$collection);
return $collection;
}
}
It's not showing the toolbar pager in the custom page. I need the page like the category page. Please anyone help on this.
magento-1.9 custom product-collection toolbar pager
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I have a custom page where I am listing the custom product collection. I am using the default catalog/product/list.phtml as template to display the page. It's listing fine like the category page. But it's missing the toolbar pager. I tried the code in the following way
<reference name="content">
<block type="customization/product_searchbycity" name="searchbycity" as="searchbycity" template="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>
<action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
<action method="addColumnCountLayoutDepend"><layout>empty</layout><count>6</count></action>
<action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>5</count></action>
<action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>4</count></action>
<action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>4</count></action>
<action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>3</count></action>
<action method="setColumnCount"><count>4</count></action>
</block>
</reference>
And in the block
class Probytes_Customization_Block_Product_Searchbycity extends Mage_Catalog_Block_Product_Abstract
{
public function getLoadedProductCollection() {
$data['address'] = $this->getRequest()->getParam('city-to-search');
$model = Mage::getModel('customization/citysearch');
$collection = Mage::getModel('catalog/product')->getCollection()->addAttributeToSelect('*');
$collection->addAttributeToFilter('status',1)
->addFieldToFilter('visibility', Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH);
$collection = $model->searchResult($data,$collection);
return $collection;
}
}
It's not showing the toolbar pager in the custom page. I need the page like the category page. Please anyone help on this.
magento-1.9 custom product-collection toolbar pager
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Check this link if you can helpful: magento.stackexchange.com/questions/221785/…
– Kirti Nariya
Dec 1 '18 at 4:30
add a comment |
I have a custom page where I am listing the custom product collection. I am using the default catalog/product/list.phtml as template to display the page. It's listing fine like the category page. But it's missing the toolbar pager. I tried the code in the following way
<reference name="content">
<block type="customization/product_searchbycity" name="searchbycity" as="searchbycity" template="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>
<action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
<action method="addColumnCountLayoutDepend"><layout>empty</layout><count>6</count></action>
<action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>5</count></action>
<action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>4</count></action>
<action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>4</count></action>
<action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>3</count></action>
<action method="setColumnCount"><count>4</count></action>
</block>
</reference>
And in the block
class Probytes_Customization_Block_Product_Searchbycity extends Mage_Catalog_Block_Product_Abstract
{
public function getLoadedProductCollection() {
$data['address'] = $this->getRequest()->getParam('city-to-search');
$model = Mage::getModel('customization/citysearch');
$collection = Mage::getModel('catalog/product')->getCollection()->addAttributeToSelect('*');
$collection->addAttributeToFilter('status',1)
->addFieldToFilter('visibility', Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH);
$collection = $model->searchResult($data,$collection);
return $collection;
}
}
It's not showing the toolbar pager in the custom page. I need the page like the category page. Please anyone help on this.
magento-1.9 custom product-collection toolbar pager
I have a custom page where I am listing the custom product collection. I am using the default catalog/product/list.phtml as template to display the page. It's listing fine like the category page. But it's missing the toolbar pager. I tried the code in the following way
<reference name="content">
<block type="customization/product_searchbycity" name="searchbycity" as="searchbycity" template="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>
<action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
<action method="addColumnCountLayoutDepend"><layout>empty</layout><count>6</count></action>
<action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>5</count></action>
<action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>4</count></action>
<action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>4</count></action>
<action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>3</count></action>
<action method="setColumnCount"><count>4</count></action>
</block>
</reference>
And in the block
class Probytes_Customization_Block_Product_Searchbycity extends Mage_Catalog_Block_Product_Abstract
{
public function getLoadedProductCollection() {
$data['address'] = $this->getRequest()->getParam('city-to-search');
$model = Mage::getModel('customization/citysearch');
$collection = Mage::getModel('catalog/product')->getCollection()->addAttributeToSelect('*');
$collection->addAttributeToFilter('status',1)
->addFieldToFilter('visibility', Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH);
$collection = $model->searchResult($data,$collection);
return $collection;
}
}
It's not showing the toolbar pager in the custom page. I need the page like the category page. Please anyone help on this.
magento-1.9 custom product-collection toolbar pager
magento-1.9 custom product-collection toolbar pager
asked Nov 30 '16 at 5:44
SIBHI SSIBHI S
1,11711536
1,11711536
bumped to the homepage by Community♦ yesterday
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♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Check this link if you can helpful: magento.stackexchange.com/questions/221785/…
– Kirti Nariya
Dec 1 '18 at 4:30
add a comment |
Check this link if you can helpful: magento.stackexchange.com/questions/221785/…
– Kirti Nariya
Dec 1 '18 at 4:30
Check this link if you can helpful: magento.stackexchange.com/questions/221785/…
– Kirti Nariya
Dec 1 '18 at 4:30
Check this link if you can helpful: magento.stackexchange.com/questions/221785/…
– Kirti Nariya
Dec 1 '18 at 4:30
add a comment |
1 Answer
1
active
oldest
votes
I followed this link. It's working fine.
http://navaneeth.me/add-toolbar-pager-custom-product-collection-magento/#.WD6xaHV9601
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f148135%2finclude-toolbar-pager-in-custom-product-collection-in-custom-page%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
I followed this link. It's working fine.
http://navaneeth.me/add-toolbar-pager-custom-product-collection-magento/#.WD6xaHV9601
add a comment |
I followed this link. It's working fine.
http://navaneeth.me/add-toolbar-pager-custom-product-collection-magento/#.WD6xaHV9601
add a comment |
I followed this link. It's working fine.
http://navaneeth.me/add-toolbar-pager-custom-product-collection-magento/#.WD6xaHV9601
I followed this link. It's working fine.
http://navaneeth.me/add-toolbar-pager-custom-product-collection-magento/#.WD6xaHV9601
answered Nov 30 '16 at 11:07
SIBHI SSIBHI S
1,11711536
1,11711536
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f148135%2finclude-toolbar-pager-in-custom-product-collection-in-custom-page%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
Check this link if you can helpful: magento.stackexchange.com/questions/221785/…
– Kirti Nariya
Dec 1 '18 at 4:30