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 [product-list]

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

1
vote
0answers
14 views

Use ProductList widget

I try to display list of products with the widget ProductsList, without success. I have the following code : $block = $this->_view->getLayout()->createBlock('\Magento\CatalogWidget\Block\...
3
votes
0answers
25 views

How to display products on a homepage in a list mode in Magento 2?

I tried to use Catalog Products list to display products on my homepage (not category page). By default, all products are shown in grid mode. And I see that there is only one option of grid mode in ...
1
vote
0answers
12 views

How to configure Category product listings in Mobile?

We knew the steps to configure the product listings in Magento 2 on Desktop view and done successfully as per our need. Now, we wanted to show 2 products per row in portrait mode and 3 products per ...
0
votes
4answers
6 views

How to set qty number to add to cart on product page

How to set certain number when the product page loads up. Default level when you click on a product the add to basket quarry is always one how to change that to different value for each store. I know ...
0
votes
1answer
29 views

Magento 2.2.4 ,how to show 3 products per row insteadd of 4 on category list page?

Magento 2 , how to show 3 products per row instead of 4 on category list page?
1
vote
0answers
14 views

Magento 1.9.2. - Filter products on the list page starting from the last tier price

I would like to be able to filter the products on the list page not for the final price but for the last tier price. How could I do? Thanks
0
votes
0answers
18 views

For heavier category(having 2000 products) ,category page takes 4-5 min to load, while for a small category( few products) it's working properly

I've used following two joins on product listing page due to which heavier category page taking 4-5 minutes to load:- Class:- vendor/magento/module-catalog/Block/Product/ProductList/Toolbar.php ...
0
votes
1answer
30 views

How can get custom table columns on product listing page using product_id of the custom table

On product listing page, I need to show visitor nearest product first. I've a marketplace site and each product have different seller and there is a custom table having seller_id and product_id ...
3
votes
1answer
24 views

Notify me when this product is in stock on product listing page in magnento 2.2.5

I want to add "Notify me when this product is in stock" on product listing page in magento 2 . by default if product is out of stock this comes in the product detail page. but i want in the product ...
3
votes
1answer
137 views

Attribute filter with checkboxes , Magento2

Has an product attribute filter with checkboxes by default for category view ? For example
1
vote
2answers
35 views

How to add Listmodes in Magento 2?

How to add the list modes in magento 2 custom module. I need list modes like below image. http://prntscr.com/mwrq23 and my productlist.phtml file is <div class="container-list container"> ...
3
votes
1answer
35 views

Magento 2: Product List Not Showing in Catalog and Search

I am having a problem with the product list when adding new products. It was working properly until I added a new product. Then, the product list stopped being visible in the catalog pages and search ...
1
vote
2answers
52 views

Magento 2 : How to change the currency symbol wise price in list.phtml page?

I will trying but its not working ? <?php $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); // Instance of Object Manager $currencyModel = $objectManager->create('...
1
vote
0answers
101 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 ...
0
votes
1answer
75 views

How can I edit files like frontend/…/category/view.phtml?

I have been trying to edit some files from the frontend folder. On this folder I have the following folders: base, default, rwd and typologancee. I have to create a specific filter which is going ...
0
votes
1answer
14 views

Magento 2.2.7. Best way -according to the Magento guidelines- to apply some custom javascript to specific products

At app/design/frontend/Custom/Theme/Magento_Catalog/templates/product/list.phtml I'm trying to apply a javascript for certain products (not all of them) as follows: <?php foreach ($...
1
vote
1answer
120 views

How to re init ajax add to cart inside the response in magento2

I have installed third-party module Infinite scroll for the lazy load(Lof_Ajaxscroll). The problem I am facing is Once the page loads new HTML content is generated from ajax. So add to cart is not ...
0
votes
1answer
60 views

Add Product Description on Simple Product Page Magento 2

I'm having difficulty figuring out how to add a description to a Simple Product that will subsequently be displayed on the Simple Product Details Page. Everywhere I have looked discusses using code to ...
0
votes
0answers
37 views

How do I better improve the performance of my search function in my Magento 2 website

How do I better improve the performance of my search function in my Magento 2 website. Every time i try searching a key word, such as Mi 8, it doesn't show results with the searched keyword in the ...
0
votes
0answers
21 views

add configurable swatches and add to cart button to product list

Im on magento 1.9.2.4 and I need to display the product swatches and the add to cart button to the configurable products in the product list (catalog_category_layered). After doing some research I ...
0
votes
0answers
88 views

Magento2.1 wishlist on category page

How to set an active class to magento2.1 wish-list button on list page? I mean that, when i go to product page, if marked that product to my wish-list before, just shows already added to wish-list or ...
0
votes
1answer
17 views

How can i create a custom page for product listing in magento 2

i have created a module and i got the respone in phtml but dont know how to design it same as listing help me to create a custom page for product listing in magento 2
0
votes
0answers
20 views

Magento 2: Get category in product list

In my product list template I need the current category. I was searching around and the recommended way is to inject the registry into the current block's constructor. Example: https://magento....
0
votes
0answers
100 views

Magento 2.2 Display Product Custom Attribute in products in Home Page

I have custom attribute called "hasgift" and its Boolean (yes, No), and trying to display it's value in products tab Module in homepage. But Its Only Give Me (No) Vaue. I have Used Same Code in ...
0
votes
1answer
77 views

Magento2 : How to override any product custom option price sorting in list page

I have one simple product it's price zero(0). it has a custom option with name and price like: ------------------------- Name Price ------------------------- product A 10 ...
0
votes
2answers
98 views

Category filter in list page magento2

I am trying to filter products by category as below in the screenshot. Once the category selected from the drop down the products belongs to that category should populate in the products section. I ...
3
votes
1answer
178 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 ...
0
votes
0answers
20 views

Magento 2.2.5: Order products prioritising in stock items first

We are trying to get out In stock products to show before our out of stock products on our site. There appears to be no options for this in the magento settings so I thought of looking in the code ...
2
votes
0answers
190 views

Show all categories and sub category name in sidebar on product listing page

I'm using a custom theme in Magento 2. How can I display listing of categories and sub categories in the side bar of a product listing page.
0
votes
0answers
30 views

Magento 2: Some of the Products image disapper in list page

I am working in Magento ver. 2.1.6 facing the issue in thumbnail images disappears in list page for some of the products. And showing placeholder image instead of the product image. But that disappear ...
0
votes
1answer
238 views

Magento 2 product list widget, randomize

How can I change the sort order of the product list widget to random()? I am talking about the Product list widget you can insert on CMS pages. Thank you.
1
vote
1answer
57 views

Change text and Relink the “Add To Cart” button in the product list page (list.phtml)

Do you know how to Change text and Relink the "Add To Cart" button in the product list page (need to change code in the file list.phtml). In my magento server, the list.phtml file is located in the ...
1
vote
1answer
596 views

Magento2 Add dropdown option in product listing page for configurable product

I want to change text-swatch to dropdown in category page. I want here drop down instead swatch
3
votes
2answers
98 views

Move Sort By and Per Page section in Magento 2

How can I move these two sections in breadcrumbs?
0
votes
1answer
247 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?
3
votes
4answers
350 views

Category product count not showing properly in magento2

I have assigned more than 30k products to one category in my website, but when i visit that category on frontend it is shwoing only 10000 products on the category list page. In admin panel the count ...
0
votes
1answer
91 views

Desperately need Help with a task for a test in Magento 1.9.3

So guys, I'm doing this task for something very important to me but now I'm completely stuck. I need to fulfill this task: Create a module to output a nice list of the products that have a value ...
0
votes
1answer
151 views

How can modify method initializeProductCollection() without changing in core file

In the class Magento\Catalog\Block\Product\ListProduct, how can we modify private method "initializeProductCollection()" without changing anything in this core file? Please help!!!
0
votes
1answer
36 views

Product List Issue

I'm having a problem with the product list in Magento 2. For the most part everything is working properly, but occasionally when I change the sort order to 'desc' or change the sort criteria to 'name' ...
1
vote
0answers
34 views

Pricing condition not working in widget section for Product showing from Backend

I'm trying to create widget from backend for showing the particular some product list in home page. But when i'm giving pricing condition like below, the condition is not working and the UI portion ...
1
vote
0answers
131 views

override getLoadedProductCollection of \Magento\Catalog\Block\Product\ListProduct

I am overriding getLoadedProductCollection() in my block where performing some custom query public function getLoadedProductCollection() { $myCategory = $this->...
5
votes
2answers
815 views

In magento2,Category Sorting Product list: How to remove position from attributes?

I have sorted products in categories by: price (default) name position I need to remove the position from the menu leaving only price and name I don't want to edit every single category view from ...
5
votes
1answer
199 views

Price change for Configurable products in list

Scenario: I have a configurable product with the price X (no special price). One (or more but not all) of the simple products attached to the configurable products has a special price Y (lower than X)....
0
votes
1answer
328 views

Magento2: position in category in product's list.phtml

Magento can sort products by a manually set position in a category. When I echo the select of a collection (echo $productCollection->getSelect()) it shows as cat_index`.`position` AS `...
0
votes
0answers
73 views

How to Show product tiered prices in category list in Magento2

How to show product tiered prices in category list page for configurable products in Magento2
0
votes
1answer
30 views

What steps/tasks are invloved in displaying the products list page

I am a complete newbie in magento. My site uses magento 1. There are n number pf tasks that happen when we display products on products list page or when we filter the products(on the frontend part). ...
4
votes
2answers
627 views

How to customize product list page in Magento 2

I am new to Magento and want to customize the product list page. I want to add some text on the product if that product is available in more options(already configured this in admin). Something like ...
0
votes
0answers
172 views

Override Toolbar.php having issue for catalog page magento2

I have done the following: registration.php <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, '...
0
votes
2answers
184 views

Modifying product collection for list page not working in magento 2

I am trying to Modify Product collection which provides collection for product listing page aka category page. For this I have overridden _getProductCollection function of Magento\Catalog\Block\...
1
vote
1answer
141 views

Magento 1.9.2 - Display 6 or 8 products in the same row

I declared a specific category in the dashboard of account in Magento but the list shows only 4 products for row. How can I display 6 or 8 products for row? This is my code echo $this->getLayout()...