Questions tagged [product-list]

Questions about the product list blocks, used in categories, search results, upsell and so on

Filter by
Sorted by
Tagged with
11 votes
3 answers
10k views

Add custom block on listing page : Magento2

I want to add my custom block on listing page[Magento-2] but without any modification on list.phtml or any .phtml file. Is there any possibility by using xml file ? Any help will be appreciated.
Keyur Shah's user avatar
7 votes
3 answers
10k views

Four Random Products on Homepage

I'm trying to get 4 random products on the homepage using PHP within a TPL file I've created. I'd like to be able to format the products in a foreach loop as I'm using some formatting in the code seen ...
Brian Schroeter's user avatar
8 votes
3 answers
15k views

Magento 2 - catalog product list widget product order

The homepage of my magento website is showing a product list. This product list was made with the catalog product list widget configured to show the products which are in the homepage category. ...
PierreGriffon's user avatar
0 votes
1 answer
427 views

exclude previously displayed products on product page

exclude previously displayed products while sorting random and navigating to next page i m using if($this->getCurrentOrder() != 'price'){ if($this->getCurrentOrder() != 'created_at') {...
Vishwas Bhatnagar's user avatar
23 votes
1 answer
39k views

Show products on homepage magento 1.9

Just installed magento 1.9 and have fallen on the first hurdle. I've created a product and have used suggestions from previous versions to display the product on the homepage but am getting the ...
rufus's user avatar
  • 233
12 votes
2 answers
26k views

Select more than one item in layered navigation (multiple select/checkboxes)

How do you convert the standard layered navigation to use checkboxes or multiple select inputs for attributes of type dropdown or multiselect? For example if a user selects blue and red for the ...
Alizain Prasla's user avatar
3 votes
2 answers
2k views

Product List Page Sort by Most View ( can we sort this by page views/hits)

I Want To Sort By Product Listing Page using Most View. Most View means highest Product visited Display First. means highest show product to Lowest Product. What Can Change i Don't Understand. Can You ...
coder's user avatar
  • 713
19 votes
1 answer
26k views

How to disable "Add to Cart" on specific products, and instead display "View Details" button in category list view?

I was wondering how to disable Add to Cart button on a few specific products, and I found an abandoned guide on how to do this, which worked, but it was somewhat incomplete, as it only was just a ...
stephen wise's user avatar
4 votes
1 answer
9k views

Product list by category in CMS page

I have 5 stores, each store with 3 categories. Every store has it's own CMS page. I want to show the products of a given category of those 3 categories in store's CMS page (e.g. categories 12, 13, 27,...
Carlos Eduardo Santos's user avatar
3 votes
1 answer
2k views

On Search Result: Group Products by Category

I need the search result page to list products grouped by category name. Example: When searching for nike the result should be viewed like this: Category "Shoes": - some nike shoe - another nike ...
mnp's user avatar
  • 630
2 votes
3 answers
11k views

how to use different template file for category magento 2

I want to customize the design of the catalog list page. I want to use different layout and design for each product category. For that, I am calling different phtml files from static block. using a ...
Navin Bhudiya's user avatar
29 votes
1 answer
28k views

About Collection Model and Resource Model

I am bit confused about using resource model and collection model. Sometimes when I see examples for loading products using specific attributes, in some examples, they use collection model and ...
MagentoBoy's user avatar
14 votes
2 answers
9k views

Move out of stock products to the end of the catalog product list [closed]

I need to push out of stock products to the end of catalog list Please guide me how to solve this problem, or that file to dig so far I found Toolbar.php, and working around it
Alexandr Sopkov's user avatar
10 votes
1 answer
11k views

sort products by newest, discount, most sold, reviews" in products list page

On the products list page, we can see sort by "Position, name, price" as in default Magento. How to sort by newest products (uploaded recently) Discount (highest discount products first) Best ...
Baby in Magento's user avatar
9 votes
6 answers
14k views

How to change listing per page option?

I am trying to change per page option in magento 2 on product listing page Currently its 9, 15, 30 by default in toolbar I want to change it to 12, 24, 48, 96 etc Any help will be appreciated
user avatar
9 votes
1 answer
13k views

Adding custom attributes to product list

I'm very confused with a small issue in my catalog/product/list.phtml file. i'm trying to add the Manufacturer attribute that comes with Magento to my grid listing and have added the following code. ...
Chris Morris's user avatar
  • 1,517
5 votes
3 answers
5k views

Product List Page Sort by Most View in magento 2.1

We need to bring most viewed, most subscribed and latest options in the sort menu in product listing page of our magento 2.1 application (magento 2.1.7). I already refered the this link Product List ...
Hari's user avatar
  • 77
4 votes
3 answers
2k views

Category Product List : add a custom view mode via observer

So I'm trying to accomplish the following: I want to add a third view mode to the product listing (I called it "gridx5") using event observers. I originally did it via Blocks rewrites and it was ...
Raphael at Digital Pianism's user avatar
4 votes
1 answer
5k views

Display more than one category in the same CMS Page

I need to develop a landing page with products from different categories. Something like: Banner Products from category 1 Banner Products from category 2 I'm trying to do it like ...
Maria's user avatar
  • 177
3 votes
1 answer
294 views

Natural sort for sortby Name

I want to sort catalog products by name in natural order. In order to achieve it i created a custom module and overwrote Mage_Catalog_Block_Product_List_Toolbar. public function setCollection($...
Lakshin Karunaratne's user avatar
3 votes
1 answer
4k views

New products list dedicated page

I need to display the products marked as new in a dedicated page in my e-shop and use the same products list template I am using in the catalog_category_view page. Does Magento already provide this ...
giani.sim's user avatar
  • 1,473
3 votes
4 answers
9k views

Pagination on products page

I need to show products pagination in the file template\catalog\product\list.phtml. How can I do it? Probably I need to edit catalog.xml but what to change I don't know.
CoalaArmy's user avatar
  • 538
2 votes
1 answer
697 views

is it possible to sort products vertically in grid?(list.phtml)

I have products which they will be shown horizontally in Grid page,however I want them to be sorted vertically and I have 4 coulmns if we had a simple array the out put is 1 2 3 4 5 6 7 8 9 10 11 ...
Nickool's user avatar
  • 1,069
2 votes
1 answer
822 views

Conflict in layer navigation and infinite scroll extension magento2

I have Installed above BSS_layeredNavigation & Lof_Ajaxscroll extensions. Both of them are working fine if used individually. If both extensions are enabled there is a conflict. To avoid ...
Jafar Pinjar's user avatar
  • 1,929
2 votes
2 answers
2k views

Hide price for guest users

How to hide price for guest user with plugin functionality in product pages and category pages?
Ravindrasinh Zala's user avatar
1 vote
2 answers
7k views

Show New Products in a new page

have created a 'new page' as 'latest products' and i want to show all the products in this page but sorted 'datewise' i.e. new first .. i got from google was to use this code <reference name="...
MaX's user avatar
  • 43
1 vote
3 answers
10k views

There are no products matching the selection

I can't seem to get the products showing up on the home page. I keep getting "There are no products matching the selection." This is what I have tried so far ... Category ID is 35, Is Active = Yes,...
Rambo's user avatar
  • 13
0 votes
6 answers
1k views

If getAttributeText() not working in list.phtml

I am running an if statement on an the contents of an attribute, and if it is true I want specific text to be displayed. However, the if does not appear to work. I've tried just plain html text in the ...
YorkieMagento's user avatar
0 votes
1 answer
4k views

Sort Product List to show Out of Stock items after in stock items with magento 1.8

The product list pages are currently set to show out of stock products. I would like to show these products after the In Stock items. Thanks.
bezz's user avatar
  • 105
0 votes
2 answers
3k views

How to hide add to cart button for particular products on all page in magento 2

How to hide add to cart button for particular products on all page in magento 2 To hide add to cart button all page using a below plugin: di.xml <config xmlns:xsi="http://www.w3.org/...
Divya Sekar's user avatar
  • 1,473
0 votes
1 answer
1k views

Magento 2 Catalog Page - changing number of items per row

On Catalog/Listing page, by default, the products are showing as 4 items per row whereas I want to show 3 items per row, how can I change this?
user54226's user avatar
13 votes
4 answers
10k views

Create Category page which displays all Special Price products

Basically, I've created a category 'Products on Sale', which I would like to automatically contain all products in my catalog that have had a Special Price applied to them (via Catalog > Manage ...
rokkor's user avatar
  • 231
6 votes
5 answers
9k views

Product List - Sometimes show duplicate products

I have a problem and can't find any solution since hours. When I'm viewing a Category and click through the pages sometimes a product is showing multiple times e.g. on Page 1 and Page 2 - exactly the ...
Manuel's user avatar
  • 203
6 votes
3 answers
24k views

Display more items per row in products/category pages

I am trying to display more products on a single row. I don't know where I could do that? For now, it displays only 3 products per row and there is a lot of empty space. I would like to display 5 ...
defiant's user avatar
  • 213
6 votes
1 answer
4k views

Magento 2 > Images Background Color do not apply

On Magento 2.0.2 I edited my custom theme view.xml (app/design/frontend/XXXXX/default/etc/view.xml) and added 2 properties for each images type : transparency and background. My file now looks like ...
Dynomite's user avatar
  • 632
6 votes
5 answers
28k views

Magento 2 remove category filter from list page filters?

How can I remove Category Filter from Magento 2 Product List Page.
shankar boss's user avatar
  • 1,453
5 votes
1 answer
4k 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 ...
Praful Rajput's user avatar
5 votes
1 answer
3k views

How to get product video in product listing page in magento 2?

How to get product video as base and thumbnail in product listing page. Currently, Only Video preview image is showing in listing page. But I want to display video in listing page instead of the ...
Aniket Prajapati's user avatar
4 votes
2 answers
13k views

How to override product list page [duplicate]

I'm trying to override the list product page. My objective is add certain information on each product above the add to cart button for example. I already did with the single page product, just ...
Marc Pont's user avatar
  • 1,453
4 votes
2 answers
3k views

modify list.phtml to show only a limited number of products on home page

On the home page, I am trying to display70 only 6 random products on one row, from a category (id 24) that has 70 products. And randomly changed each time the page gets re-loaded. The only method ...
user2774042's user avatar
3 votes
1 answer
3k views

Modify Product Listing 'Add to Cart' button

I'm building a self contained module which will make modifications to the 'Add to Cart' button through Magento's listing and detail pages. I can easily modify the button on the detail page as it uses ...
Dave's user avatar
  • 872
3 votes
1 answer
3k views

Magento2 : Pagination - jump to top of page [closed]

I have problem with next/previous Buttons in Pagination on category listing page. If user click's on next/previous button, it reloads the page (I think) in Ajax at the current page scroll position. ...
Marcel's user avatar
  • 123
3 votes
2 answers
13k views

Setting columnCount in Magento 1.9 RWD

Is there an actual way to handle the columnCount in Magento's 1.9 RWD theme? It is not possible to use addColumnCountLayoutDepend in layout.xml to set the column counts depending on the page layout ...
zigojacko's user avatar
  • 1,754
3 votes
1 answer
2k views

How to get the product collection based on catalog & cart price rules?

I am trying to get all products based on catalog price rules and cart price rules under all categories which is valid for today's date in Magento 2
Balamurugan Subramanian's user avatar
2 votes
1 answer
3k views

Load catalog/product/list.phtml for Custom Module collection

I am writing a new module to get a filtered Collection. Currently I am using my own template file to show the results but I want to use directly my templates catalog/product/list.phtml file to keep ...
CntkCtn's user avatar
  • 35
2 votes
1 answer
4k views

Magento 2 - Quantity Field on Related Products Listing

I'm trying to add a quantity field to the related products section on my product page. I'm overriding module-catalog/view/frontend/templates/product/list/items.phtml in my theme. So far, here is my '...
Paul's user avatar
  • 1,501
2 votes
2 answers
826 views

Show only configurable products on product listing page in magento 2

I want to show only Configurable products on listing page in magento 2. I have used the code " $_productCollection = clone $block->getLoadedProductCollection()->clear(); $_productCollection-...
Nicola Smith's user avatar
2 votes
1 answer
14k views

Magento2 : Product list phtml file for each page

I want to change the frontend of product list page like in picture below. What file should i change? The product list i mean is each product list in each home page and category page. Product List :
Edwin Widhiyanto's user avatar
2 votes
5 answers
22k views

Product Attribute on Products Grid/List View (manufacturer)

I try to show Product-Attributes on the Grid-View (catalog(products/list.phtml). At app/code/coreMage/Catalog/Block/Product/List.php I found this public function addAttribute($code) { $this->...
user2310852's user avatar
2 votes
5 answers
15k views

Get product list by category id in view.phtml

This is a follow-up to this question: https://stackoverflow.com/questions/6748730/magento-product-listing-by-category-id How can I get product lists by categoryid from from within view.phtml, i.e. ...
blisstdev's user avatar
  • 271