Questions tagged [toolbar]

The tag has no usage guidance.

36 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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
1answer
689 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
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
240 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
130 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
555 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
377 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="...
1
vote
1answer
32 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. ...
1
vote
1answer
27 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 ...
1
vote
0answers
17 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')); ...
1
vote
0answers
47 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?
1
vote
0answers
226 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. ...
1
vote
0answers
377 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
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 ...
1
vote
1answer
538 views

Can't remove product list toolbar

I am using Porto Theme and I'm trying to remove product tool bar from the home page but it isn't working. My Magento version is 1.9.2.4. I'm using this method by Anders Wik My theme configuration: ...
0
votes
1answer
25 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::...
0
votes
0answers
13 views

Category Page Layout Handle Confusion

I've been working with Magento for many years now and this has me completely baffled. I recently wanted to disable parameter memorization for the toolbar, which is a method of the toolbar class and (...
0
votes
0answers
18 views

Magento 2: Add a toolbar to reviews

I'm looking to add a toolbar to reviews that is like the toolbar for Product list What is the simplest way to achieve this? by copying and modifying the product list toolbar or starting from scratch ...
0
votes
1answer
40 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: ...
0
votes
1answer
325 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
28 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
0answers
226 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
0answers
98 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
76 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:...
0
votes
1answer
354 views

Total product count display wrong in toolbar

$_productCollection = $block->getLoadedProductCollection(); $_productCollection->clear() ->addAttributeToFilter('author', array('eq' => 'Author-1')) ->load(); $this->...
0
votes
1answer
162 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
0answers
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-...
0
votes
1answer
445 views

magento 2 namespace ending with reserved keyword

How to overcome this ? This is my class path: app/code/vendor/module/Block/Catalog/Product/List/Toolbar.php namespace vendor\module\Block\Catalog\Product\List; class Toolbar {...} How to overcome ...
0
votes
0answers
123 views

Magento display empty parts in Category page when click on toolbar

I am currently working on Magento and installed one custom theme Porto. When I clicked on any option of toolbar at that time all products load using ajax but display some empty part. Here blank ...
0
votes
1answer
1k views

Change pager template

I am trying to include a different pager for the bottom toolbar. For this I have changed the template used by the bottom toolbar: <?php echo $this->getToolbarBlock()->setTemplate('catalog/...