Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [toolbar]

The tag has no usage guidance.

2
votes
0answers
13 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() ...
0
votes
0answers
12 views

How to move sorter block from toolbar to filters?

I want to move "sort by" block from toolbar to filters? How can i do that? I tried to: <move element="product_list_toolbar" destination="sidebar.main" after="catalog.navigation.renderer"/>
0
votes
0answers
41 views

Magento2 Catalog search result and product listing grid only sort by product name set

I need below condition to my website. Magento2 Catalog search result and product listing grid only sort by product name to be set. I have also back-end configuration done but issue is like product ...
0
votes
1answer
21 views

Display On Sale Product On Top Sorting Magento 2

I have added a custom sorting option in default sorting menu by overriding toolbar.php file I want to display products with the highest discount on top using sorting and product with no discount ...
0
votes
1answer
15 views

Wrong number of result in toolbar after overriding ListProduct

I've overrided the ListProduct.php file for the catalog, to show product based on customer attribute. But now I have the wrong number of element in the toolbar (I have 3 products displayed but still ...
1
vote
0answers
7 views

Magento 2 add body class into as per current page using toolbar.php plugin for category and search results page

I have created plugin for toolbar.php \Magento\Catalog\Block\Product\ProductList\Toolbar protected function _prepareLayout() { $this->pageConfig->getTitle()->set(__('Category Page')); ...
2
votes
0answers
23 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 ...
1
vote
0answers
55 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
30 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
63 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 ...
0
votes
0answers
97 views

Override Magento 2 Catalog Bock Toolbar.php

I'm trying to change change the default "sorter by" I can't override Magento\Catalog\Block\Product\ProductList\Toolbar I created a custom module, set the di.xml with <preference for="Magento\...
0
votes
2answers
255 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
1answer
98 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....
0
votes
0answers
71 views

Move tool bar in category page to the top in magento2

I need to move toolbar section to the column.top, I have used below code in my catalog_category_view.xml file. <?xml version="1.0"?> <page layout="1column" xmlns:xsi="http://www.w3.org/...
0
votes
1answer
43 views

Extend customer grid using customer_listing.xml issue

I'm using magento v2.2.5 and i tried to add new column in magento 2 grid by extending customer_listing.xml like this: <listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
1
vote
0answers
33 views

How to move product toolbar in breadcrumbs section on product listing page magento 2?

How to move product toolbar in breadcrumbs Section in magento 2 product Listing page?
8
votes
7answers
3k 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.
0
votes
1answer
188 views

Product List Toolbar for Wishlist

I want to add the toolbar from the product list to my wishlist to have the pagination and the sorter element. So in my wishlist_index_index.xml I added the block Magento\Catalog\Block\Product\...
-1
votes
1answer
255 views

Total product count display wrong in toolbar

$_productCollection = $block->getLoadedProductCollection(); $_productCollection->clear() ->addAttributeToFilter('author', array('eq' => 'Author-1')) ->load(); $this->...
0
votes
1answer
112 views

Magento 2: toolbar url problems in custom module with custom router

I have the custom module with product collection and custom router. for example i want to have link https://domain.com/gaires/something Router code: namespace UseApp\Gaires\Controller; class Router ...
0
votes
1answer
26 views

Magento 2.1.7 New Sort Options Have Appeared by Themselves

We have recently noticed that two new sort options have appeared in our Sort By field. The options are "Discontinued Product" and "Product Name". I cannot find where in the code base these options ...
2
votes
1answer
369 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? ...
0
votes
2answers
221 views

HOW TO HIDE TOOLBAR IN MAGENTO 2?

SOLUTION : user this code what is the best solution : for that is this correct or is there any other solution
1
vote
0answers
153 views

Product list page Toolbar issue

I have issure regarding category page. While i click on mode switcher of grid view to list view its not working. and also try to change Sort by value and Show number of product its not working. ...
3
votes
1answer
606 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"&...
2
votes
0answers
421 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\...
0
votes
2answers
282 views

Toolbar.php collection filtering using getCollection and addCategoryFilter not working

I am using Magento 1.9.3.6 CE I want to add a select dropdown on the toolbar of product lists on category pages to filter the collection by a subcategory. (sidenote: I can't use the normal catalog ...
1
vote
0answers
346 views

Toolbar is not displaying in category list and search result page Magento 2

Toolbar is not displaying in list page. There is no any changes in layout file catalog_category_view.xml and phtml file toolbar.phtml, these files are unchange. And there is no any module that ...
1
vote
2answers
244 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><?= /* @...
3
votes
2answers
805 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
0
votes
2answers
318 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" ...
3
votes
2answers
1k 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 ...
0
votes
0answers
820 views

how to add toolbar in magento2 custom product listing page?

I have created a custom product listing page and add toolbar in the custom layout,it throws an error Call to a member function getSize() on null in /opt/lampp/htdocs/setec/vendor/magento/module-...
0
votes
1answer
415 views

How to change toolbar limiter dropdown to links

How i can change the product toolbar limiter dropdown to links, like: 9 | 15 | 30 | All
0
votes
1answer
771 views

Howto remove the sorting and positioning tools from the category page in frontend?

How do I remove the sorting and positioning tools from the category page in frontend? Can I remove them in a way that I only disable them from one category?
0
votes
1answer
229 views

Get Child Categories in catalog toolbar.phtml?

I'm trying to get a list of child categories within the toolbar.phtml but unsure how I can achieve this? I have tried to use the category helper but this stops the category pages from loading and ...
0
votes
2answers
570 views

How to remove the bottom toolbar using css in mobile view?

In product listing page there are two toolbars one at the top of list as shown below: another toolbar at bottom of list as shown below: Both of them are has outer div as: <div class="toolbar ...
0
votes
2answers
215 views

Display toolbar options on breadcrumbs

Is there a way to get Product List Toolbar into breadcrumbs.phtml? All I want to do is display toolbar options inside the breadcrumbs wrapper.
1
vote
2answers
276 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 ...
3
votes
3answers
3k 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 ...
1
vote
1answer
242 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/...
0
votes
1answer
592 views

Custom toolbar block has no collection

I've attempted to create a template with the block type "catalog/product_list_toolbar" so that I can get the number of products currently in the category collection, in the same way as in toolbar....
1
vote
1answer
1k views

Include Toolbar Pager in custom product collection in custom page

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 ...
2
votes
0answers
293 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
841 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"...
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="...
0
votes
1answer
93 views

What does “_current_limit” or “_current_grid_direction” do?

I'm in app/code/core/Mage/Catalog/Block/Product/List/Toolbar.php and I see lines like the following: $dir = $this->_getData('_current_grid_direction'); $limit = $this->_getData('_current_limit'...
5
votes
0answers
900 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 ...
2
votes
3answers
2k 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 ...
0
votes
1answer
447 views

Add product count to toolbar.phtml

I want to add product count to the toolbar.phtml. The current code results in a blank page. Can anyone suggest an edit to get it working? <?php <p class="amount"> <?...