We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [toolbar]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
8
votes
7answers
4k views

Magento2 How to move toolbar

Anyone have any idea about How to move toolbar before left and right sidebar in magento2 using XML? Currently it is showing in Right side-bar.
7
votes
1answer
3k views

Different toolbars on the product page

How to have different toolbars for top and bottom of products page?
5
votes
2answers
1k views

View All Products only shows 3 products

I´m having the issue that if I click "View all" products in my toolbar then what I get back is a category page with the limit of 3 products instead of all. I have checked and I think I know where the ...
5
votes
0answers
1k views

Magento 2 - Move Category Page Toolbar/Sorting Options Above Both Columns

What I'm trying to do is move the toolbar/sorting options on the category page above the left column and right column so it spans the full width of my content area. I'm trying everything and nothing ...
4
votes
1answer
645 views

Custom category collection not rendering correct results in layered navigation and toolbar in magento 2

I am displaying a custom product collection in a block that extends the category block. I have overriden catalog_category_view in my custom module. The custom filter yields renders proper ...
4
votes
1answer
2k views

magento 2: Customize collection of product not effecting in layer & toolbar area

I extend the collection query using event 'catalog_block_product_list_collection'. Query displaying proper data, as well as showing proper record in product list page. But same collection is not ...
3
votes
2answers
1k views

Magento 2 - How I can move the limiter at the top

how I can move limiter from bottom to top toolbar. I check the code in console and at the top toolbar already exist but is hidden, how I can do to see this at the top. Thanks
3
votes
3answers
5k views

How to add custom sort by option filter in tool bar in magento2

I want to custom sort by option filter attribute add in tool bar section. Currently Magento 2 provide Position , Product Name , Price And Sorting option to low to high. But i need to change all ...
3
votes
1answer
430 views

Pagination not showing on any page with products

I'm at a loss as to what to do next, I've reviewed all of the posts on the site and tried every solution, but still I am unable to see pagination of the products, the toolbar is simply not displaying? ...
3
votes
1answer
947 views

Catalog Page - Replace Filter Dropdown by Simple Links

I wish to replace the drop-down (position, name, price) on the catalog page by simple links. www\app\design\frontend\base\default\template\catalog\product\list\toolbar.html
3
votes
2answers
2k views

How to add Page Action Custom Button on Magento 2 admin pages

I am developing one module in which I need to add a custom buttons on Magento 2 admin pages(Like: category Page, Product Grid Page, Orders Grid Page). I need to add button on the below bar, which is ...
3
votes
1answer
1k views

Re-Write Toolbar for grid on front side magento

I want to override the Product grid tool-bar for custom work in my module.I inlcude my filters in the filters array but the product grid is not executing my code when i select my filter like , i want ...
3
votes
1answer
676 views

Add filter toolbar to advanecd search page

How I can add filter toolbar to advanced search page. I created catalog_category_view.xml and added the XML below but it does not change the template. <referenceBlock name="product_list_toolbar"&...
3
votes
1answer
167 views

toolbar sortby price in custom phtml

I have created a custom module. The custom.phtml file lists all the products of a category and subcategory. I want to place toolbar with sort by price on the top of the category. I have included the ...
2
votes
4answers
18k views

How can I disable/remove the pager in toolbar above my product-grid?

How can I remove the "pager" above the Product-Grid Page catalog/view.phtml from "toolbar"? I need the sorter above and below the products, but the "pager" only at page-bottom. It must be in catalog....
2
votes
3answers
7k views

How to remove tool bar in Magento 2

I would like to remove the tool bar from my theme since I don't have that many products. So far I have tried this in my /app/design/frontend/VENDORNAME/THEME/Magento_Theme/layout/default.xml <...
2
votes
2answers
1k views

Magento 2 Developer Toolbars [closed]

When developing themes and modules for Magento 2 I came across a barrier, how can I debug better? So I come here to ask, what are the best developer toolbars for Magento 2?
2
votes
1answer
9k views

Display Sort by option on Top and Pagination at bottom

On my product listing page, I need to change the display of Toolbar and Pager. On top, I want to display Sort by option while on bottom I need to display Pagination How can I achieve this ? Please ...
2
votes
3answers
3k views

Magento toolbar in custom module

How to include toolbar.phtml in my custom module How to call toolbar in my custom Module Feature.php <?php class MPS_AllProduct_Block_Categoryid_List extends ...
2
votes
2answers
2k views

Toolbar not displaying with overridden Mage_Catalog_Block_Product_List

I am banging my head against the wall on the following problem: To get a product list that is sorted by the subcategory string, an product attribute and finally by the product name I have overridden ...
2
votes
1answer
874 views

Remove toolbar from specific category products added as a block in cms page?

I added below line in CMS Home Page to display products of a certain category in Magento 1. {{block type="catalog/product_list" column_count="4" category_id="179" template="catalog/product/list.phtml"...
2
votes
1answer
23 views

Apply Check on default sort by options

I just need to apply a check on the default Sort By options. Not on all. only one. That when the user is not login, he cannot sort products by price. Anyone having any idea how to do it. Thanks
2
votes
0answers
17 views

Product page count and record count issue on listing page

Unable to change the record on listing page it shows static number for all listing page as shown in the image It display 10000 for all listing page using $this->_productCollection()->getSize() ...
2
votes
0answers
24 views

Finding source of a div “toolbar-top” on inhereted Magento 1.9 Project

I am working on a relatively complicated Ecommerce store on Magento 1.9. I need to add some very simple paragraph text above a toolbar header that floats in the category navigation section of the ...
2
votes
0answers
172 views

Magento 2 : search into category name

When a user is making a search on my website I would like to search into categories name, for example if the user is searching for "house" I would like to display all products containing "house" in ...
2
votes
1answer
37 views

Magento2: How product per page option working?

Issue: Can any explain me regarding how the url is created on change of product per page option in magento2. You can check in image on change of limit the value is binded to url I want to know ...
2
votes
0answers
119 views

Magento 1.9 pagination not working

Pagination is not working in Magento 1.9, I have checked pagination setting in admin, everything is okay there. The toolbar is showing with "sorter" and "pager" but pagination is not showing. On ...
2
votes
0answers
532 views

Magento 2 : Sort By block is missing after override the toolbar for search page?

I want to add custom sort by options , I have override the toolbar block as follows My di.xml file as <preference for="\Magento\Catalog\Block\Product\ProductList\Toolbar" type="Custom\Product\...
2
votes
0answers
367 views

Fatal error: Uncaught Error: Call to a member function getSize() on null - product\list\toolbar.phtml on line 18

In Magento 2 I just want to move toolbar before breadcrumbs so to do so I've placed following code in my custom theme catalog_category_view.xml <move element="product_list_toolbar" destination="...
2
votes
1answer
41 views

Enabling debug toolbar and toggle status caused HTTP error

I had enabled a Debug Toolbar. Got a menu on the right side, where you could toggle the status of modules installed. Now I just wanted to see what it would show, and clicked the first one, I think it ...
1
vote
2answers
285 views

Magento 2 - Add 'per page' text inside option tag

I want to change the toolbar limiter and to insert "per page" text inside <option> tag. <div class="limiter"> <label class="label" for="limiter"> <span><?= /* @...
1
vote
1answer
248 views

Why registry and setter values are cleared in toolbar block?

My task is to show sort by panel on top and list pager at the bottom. I tried that in the file app/design/frontend/project/default/template/catalog/product/list/toolbar.phtml echo '<pre><br/...
1
vote
1answer
1k views

Unset magento toolbar-bottom in local.xml

Is it possible to remove only the bottom toolbar of a category page using the local.xml file without editing the template files? I want to keep the top toolbar.. Maybe something along these lines? &...
1
vote
1answer
967 views

Remove grid view from catalogsearch

I know how to manage the grid/list view in the back end, and set pager limits via the XML but is it possible to remove the grid view from just the catalogsearch result page preferably via the XML? I'...
1
vote
2answers
621 views

Change 'Sort by Position' text to 'Sort by New' Magento 2.2.6

This must/should be easily achieved...I am simply hoping to change the 'Sort By Position' text to 'Sort by New' in the Magento category list toolbar. I have attempted to do this by creating the ...
1
vote
2answers
408 views

Adding toolbar to magento CMS page product listing

I have created a CMS page in Magento 2.1.7 back end, and added the following widget: {{widget type="Magento\CatalogWidget\Block\Product\ProductsList" show_pager="1" products_per_page="9" ...
1
vote
2answers
386 views

My toolbar is not relate with my product list

I have a custom product list page that contains 55 products. But now I have problem. Look at this pictures below : In page one it shows 55 items, but i've chose the limit is 24. In page two, it ...
1
vote
1answer
269 views

Change icon color of the grid or list mode buttons in the Category toolbar

I have my own child-theme based on the Luma parent theme. How do I change icon color of the grid or list mode buttons in the Category toolbar? In /vendor/magento/theme-frontend-luma/Magento_Catalog/...
1
vote
1answer
39 views

get how many products per row from event

I'm listening to the catalog_product_collection_load_after event to add some code when the category products grid / list is loaded, and from the observer code I want to get the following data: is it ...
1
vote
2answers
5k views

Drop Down Filter by Attribute in Products List toolbar

friends, I create custom pages for mobile Products list. I added a filter in the form of drop down on the top toolbar, there is Filter by Category, Filter by Attribute and Sort By (Position, Name, ...
1
vote
2answers
694 views

magento show filters in toolbar

I would like to show the brand, discount and category filters in the toolbar. I want to show it like this - Sort by - category - Brand - Discount - in the toolbar above the category products. Please ...
1
vote
1answer
249 views

magento 2 move product_list_toolbar after category.cms or category.view.container

I like to move the product_list_toolbar element after the category.cms or category.view.container, for that have tried the following code <move element="product_list_toolbar" destination="category....
1
vote
2answers
3k views

How I can change configuration of toolbar in catalog?

I have a catalog_category_view.xml and I try to change the toolbar. <referenceBlock name="category.products.list"> <action method="setDefaultListPerPage"> <argument name="...
1
vote
1answer
807 views

How to limit the search result in Magento 2 with query string

How can I limit the search results in Magento 2 with query string, we have something like this to perform the search http://domain.com/catalogsearch/result/?q=search_term Is there any query string ...
1
vote
1answer
2k views

Magento 2: get Nextpage, Lastpage Url in list.phtml file

How to get Next page, Last Page url in magento 2? I have try in template file with below codes, <?php $_productCollection = $block->getLoadedProductCollection(); $_helper = $this->helper(...
1
vote
1answer
90 views

Magento how to add new select box in product view toolbar section without change .phtml file

Hi i have a toolbar like below image. I want to add new "Show" select box like below image. For this i have added select box code directly into the toolbar.phtml file. But I don't like to update ...
1
vote
1answer
860 views

Change sorting order to descending

In my website, sorting is in asc for all sorting option but if I select "Sort By Date" (created_at) I want it go sort on desc order. How do I do it? Also I have a theme installed. Below is the code ...
1
vote
3answers
2k views

Trouble removing pager from toolbar in Magento 2

Having trouble removing the pager from the category pages within Magento 2. I extended the catalog module and placed the removal reference inside catalog_category_view.xml. This however does not work, ...
1
vote
2answers
718 views

How to Add sorter in my custom product collection page

my block is public function getPagerHtml() { return $this->getChildHtml('pager'); } public function getToolbarHtml() { return $this->getChildHtml('toolbar'); } <?php echo $this-&...
1
vote
1answer
480 views

Removing Item from collection and update toolbar - [Hide out of stock item in layer navigation ( configurable )]

I'm trying to hide out of stock products in layer navigation. This can be done using this code: http://colin.mollenhour.com/2009/07/14/hiding-out-of-stock-items-in-layered-navigation/ The issue is ...