Questions tagged [toolbar]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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
107 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
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 ...
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 ...
0
votes
1answer
481 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"> <?...
1
vote
1answer
826 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 ...
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 ...
1
vote
1answer
867 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 ...
0
votes
1answer
146 views

Is it possible to use post method in catalog advanced search form?

The idea is to keep the form in catalogsearch/advanced/ and to post the result to catalogsearch/advanced/result/ without all parameters added by the get method. What are the necessary changes to ...
0
votes
1answer
444 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 ...
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?
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
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 ...
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 ...
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/...
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 <...
0
votes
1answer
594 views

Fatal error - Call to a member function count

I wish to copy this content : app\design\frontend\base\default\template\catalog\navigation\left.phtl <?php if (!Mage::registry('current_category')) return ?> <?php $_categories = $this->...
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
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 ...
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 ...
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, ...
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
696 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 ...
0
votes
1answer
1k views

overriding Magento toolbar.phtml file

I am editing the file \app\design\frontend\base\default\template\catalog\product\list\toolbar.phtml through my own module. I want to specify the available categories on the current list. Example: I ...
1
vote
2answers
719 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-&...
0
votes
1answer
506 views

Custom toolbar template - fatal error on home page

I want to have different templates for top and bottom toolbar, so in \template\catalog\product\list.phtml I use <?php echo $this->getToolbarBlock()->setTemplate('catalog/product/list/...
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? &...
0
votes
1answer
238 views

CMS page with article list showing all articles from category without toolbar or pager

I'm almost there, but still have an issue with the display in the frontend. I want to show some special products on the homepage which are linked to a certain category. These products will change ...
3
votes
1answer
948 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
0
votes
1answer
7k views

How to add toolbar and pager to custom product collection in magento?

my local/mage/catalog/prodoct/newwall.php protected function _getProductCollection() { if (is_null($this->_productCollection)) { $brand_id = $_GET['brand_id']; $collection = Mage::...
0
votes
1answer
220 views

EE - FPC and Category item count

A customer of ours has reported a "bug" that their live site works differently from the staging environment. What they see is that when a user selects "all" products on a category page, then changes ...
0
votes
1answer
219 views

Add Pagination/Toolbar using array of product ID's

I have a custom view that uses a range of conditional statements on a collection to narrow down a specific set of product ids. I then need to be able to display these with the pagination and toolbar ...
0
votes
2answers
2k views

Magento Ajax toolbar/pagination not loading correctly for root product category

I'm currently learning Magento and have a strange issue with the toolbar/pagination Ajax script. Custom theme used - BuyShop I'd usually leave code examples, however, I can't work out which code to ...
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 ...
1
vote
1answer
481 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 ...
0
votes
3answers
7k views

PAGINATION : Show First and Last Page at pager / toolbar grid view

at the moment my pager at grid view is like this " 1 2 3 4 5 >" on page 5 it's "< 5 6 7 8 9 >". See Screenshot How can I edit my pager.phtml template to get a result like this : " 1 2 3 4 5 Last >"...
1
vote
1answer
85 views

Display “Page x of x” in toolbar: category pages and search results

I'm looking for a way to display "page x of x" in the toolbar portion of category and search results pages. When the products exceed the amount specified in the "results per page" filter, an ordered ...
0
votes
1answer
822 views

add a list_mode in magento

There are basically two list_modes in product/list/toolbar . I want to add a third mode Gallery mode so that switcher can switch between 1- Grid, 2- List, 3- Gallery when products are listed. Is ...
7
votes
1answer
3k views

Different toolbars on the product page

How to have different toolbars for top and bottom of products page?
0
votes
2answers
974 views

Sort Order of Products in Category Grid View by View Count

I've been trying to create a solution to this for some time now, and have been to the ends of the internet and back, maybe I missed something. What I am trying to do is sort the product collection in ...
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 ...
0
votes
1answer
5k views

Call a pagination block in Category page [duplicate]

In the product display page(i.e., category page in catalog/product/list.phtml of grid view), before and after the product items Toolbar block is being displayed(with this <?php echo $this->...
0
votes
1answer
2k views

Magento sort by special price (disounted product) on product list page dropdown (toolbar.phtml)

I want to extend sort by drop down for special price or discounted product from toolbar.phtml <div class="sort-by" style="float:left"> <fieldset class="sort-by"> <label>&...
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....
1
vote
1answer
968 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'...
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 ...
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/...