Questions tagged [toolbar]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
56 views

Magento 2 sort by price ASC not working

Magento 2 sort by price not working. DESC order working fine but ASC order, not getting the order for configurable products. One more is like catalog_product_index_price in this table showing zero for ...
user avatar
0 votes
0 answers
20 views

Customize Sortby in PLP page with remember category pagination

I have a custom module for custom sortby in the toolbar of the PLP page. I do this process by getting the values from the parameter. eg: page-name.html?product_list_dir=desc&product_list_order=...
user avatar
  • 148
0 votes
0 answers
10 views

Magento 2 - _paramsMemorizeAllowed - Deprecated - Alternative Solution

$_paramsMemorizeAllowed has been deprecated. What would the best way to implement disableParamsMemorizing to make the sort by reset when you visit another category?
user avatar
  • 616
0 votes
0 answers
37 views

Magento 2.3.5: Creating a custom category bottom toolbar

I'm trying to create a custom category bottom toolbar without the h1 title. I've done the following. Created a module with the following structure /app/code/Vendor/ToolbarBottom /app/code/Vendor/...
user avatar
0 votes
1 answer
113 views

Change toolbar text only for order history page

I need to change text of toolbar amount just in order history page in customer dashboard and show only 5 items per page without displaying limiter. Help please
user avatar
0 votes
1 answer
231 views

Magento 2.3.5: Remove category page bottom toolbar title and filters and keep only pagination

I want to remove the title, filter and sort from the bottom toolbar on the category page and leave only the pager (pagination). My toolbar phtml is located at vendor/vendor_child/Magento_Catalog/...
user avatar
0 votes
1 answer
2k views

How to include Toolbar in my custom module in magento2 [closed]

I want to add toolbar in my custom collection which are comes from database , How to call toolbar in my custom Module any one have an idea in magento2. I want to show toolbar as same like display in ...
user avatar
0 votes
1 answer
176 views

How is params p added in product listing url on click of pagination? [closed]

I Need to know how www.example.com?p=5 added in magento2 URL ?
user avatar
  • 561
1 vote
0 answers
213 views

How to add custom pagination in default toolbar magento 2?

I have custom pagination for my custom product collection. I am using Magento's default toolbar on my custom product list page. I want to add my custom pagination in Magento's default product toolbar. ...
user avatar
  • 509
1 vote
1 answer
355 views

Magento2.3: item count is not updating in category page

We have added some of the products in one of the category. When we go to that category page, the item count is not updating. It always showing "1 Total Result". Please see the below screenshot once. ...
user avatar
  • 480
1 vote
1 answer
273 views

Category Toolbar Showing Incorrect Count and Paging Not Working

I've got a problem with a live site where the toolbar is showing the incorrect product count, not changing sort direction or filter nor is it changing the product on pagination change. You can see it ...
user avatar
  • 320
1 vote
1 answer
520 views

Magento 2 get Block Toolbar custom module gives Error

In catalog_category_view.xml <referenceContainer name="content"> <block class="Magento\Catalog\Block\Product\ProductList\Toolbar" name="my-block-name" template="Vendor_Module::...
user avatar
2 votes
1 answer
32 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
user avatar
  • 181
0 votes
1 answer
1k views

How to move product_list_toolbar magento 2?

I want to move toolbar above column. I am using this code: <move element="product_list_toolbar" destination="columns.top" before="-" /> I am getting the getSize() error: Fatal error: ...
user avatar
  • 1,967
2 votes
0 answers
21 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() ...
user avatar
  • 561
0 votes
2 answers
1k 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 ...
user avatar
0 votes
1 answer
154 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 ...
user avatar
0 votes
1 answer
182 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 ...
user avatar
1 vote
0 answers
36 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')); ...
user avatar
  • 3,572
2 votes
0 answers
25 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 ...
user avatar
2 votes
0 answers
1k 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 ...
user avatar
2 votes
1 answer
65 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 ...
user avatar
  • 561
2 votes
0 answers
263 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 ...
user avatar
0 votes
0 answers
697 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\...
user avatar
  • 183
2 votes
3 answers
2k 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 ...
user avatar
1 vote
1 answer
610 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....
user avatar
  • 1,598
0 votes
0 answers
184 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/...
user avatar
  • 1,729
0 votes
1 answer
164 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:...
user avatar
  • 409
1 vote
0 answers
86 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?
user avatar
8 votes
7 answers
10k 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.
user avatar
0 votes
1 answer
1k 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\...
user avatar
  • 335
0 votes
1 answer
635 views

Total product count display wrong in toolbar

$_productCollection = $block->getLoadedProductCollection(); $_productCollection->clear() ->addAttributeToFilter('author', array('eq' => 'Author-1')) ->load(); $this->...
user avatar
0 votes
1 answer
297 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 ...
user avatar
  • 73
0 votes
1 answer
32 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 ...
user avatar
  • 3
3 votes
1 answer
2k 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? ...
user avatar
0 votes
2 answers
683 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
user avatar
1 vote
0 answers
278 views

Product list page Toolbar issue

I have issue regarding category page. While I click on mode switcher in grid view to list view its not working. and also try to change Sort by value and Show number of product its not working. ...
user avatar
3 votes
1 answer
856 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"&...
user avatar
2 votes
0 answers
1k 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\...
user avatar
0 votes
2 answers
406 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 ...
user avatar
  • 860
2 votes
0 answers
463 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 ...
user avatar
1 vote
3 answers
527 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><?= /* @...
user avatar
  • 2,066
3 votes
2 answers
2k 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
user avatar
  • 2,066
1 vote
2 answers
762 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" ...
user avatar
  • 191
4 votes
2 answers
5k 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 ...
user avatar
0 votes
0 answers
1k 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-...
user avatar
0 votes
1 answer
909 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
user avatar
  • 976
0 votes
1 answer
2k views

How to 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?
user avatar
  • 327
0 votes
1 answer
382 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 ...
user avatar
  • 757
0 votes
2 answers
2k 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 ...
user avatar