Stack Exchange Network

Stack Exchange network consists of 174 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

0
votes
1answer
12 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
16 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
31 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
25 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
40 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
70 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
15 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
56 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
22 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
72 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
37 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
226 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
42 views

Move Sort By and Per Page section in Magento 2

How can I move these two sections in breadcrumbs?
0
votes
0answers
17 views

Responsive column number in magento 1 default rwd theme

I use magento 1.9.3 and default rwd theme; I changed the $max-content-width: 1400px; in _var.scss because I want a wider website. Now I have 3 columns in product list display if width is > 479px and 4 ...
0
votes
1answer
57 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?
2
votes
3answers
168 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
0answers
24 views

Return to save product list page, after saving product

In magento administration Catalog Products List, follow these steps: 1) Browse 5th page of products list 2) Enter a product and click "Save and Close" You'll notice that you have returned to ...
0
votes
1answer
86 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
76 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
33 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
32 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
53 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
348 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
83 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
155 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
39 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
22 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
289 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
111 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
119 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
114 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()...
0
votes
0answers
7 views

Magento get a product collection in an arbitrary order for Product List Page for default sort order in Magento2

I want to show default product list page with my arbitrary entity_id for products, Like the default collection will show with entity_id 3,15,9,12,6 etc as the default product is sorted by Name.
2
votes
0answers
105 views

Magento 2 get catalog price rule Action applied and Discount Amount on product list page

I would like to display text for each product on product list page for a e.g on a category all product with discount but there are 4 options which consist of percentage or fixed : So if Apply is ...
0
votes
1answer
201 views

How to change price on product filter result page?

I've created a custom module to show the installments price, and it is working OK in the product page and category page, for this, I've created a plugin, my di.xml: <?xml version="1.0"?> <...
0
votes
0answers
40 views

How to add multiple quantities of a single product to cart in product list view page of Magento 2?

Currently the functionality is no matter how much quantity you enter in qty field, only one quantity gets added/updated to cart
2
votes
0answers
319 views

Magento 2 How to add Magnifier to product list page?

I have enabled Magnifier to product detail page from theme etc/view.xml <var name="magnifier"> <var name="fullscreenzoom">20</var> <!-- Zoom for fullscreen (integer)--> ...
0
votes
1answer
210 views

Magento 2 : Get Customer logged in details not Working on list.phtml

The code bellow isn't working on product listing page: $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $customerSession = $objectManager->get('Magento\Customer\Model\...
0
votes
0answers
33 views

Using product list widget to just show price? [duplicate]

How can I use a product list widget to just show the price of the product on an cms page.
0
votes
1answer
54 views

Inject ListProduct not working on M2.2

I have codes below to get the products listed on Category page: <?php namespace Vendor\Module\Block; class Category extends \Magento\Framework\View\Element\Template { protected $_listProduct;...
0
votes
1answer
333 views

how to change the product list Date 'asc >> desc'

how to change the product list Date 'asc >> desc' Now is showing asc. I want to change is desc is default >> ?product_list_dir=desc using Magento Version 2.2.4 thank you!
0
votes
0answers
13 views

How to display design of product list page on custom page in Magento 2?

I have created a custom phtml file. Now I want to display my collection in same design of product list page. Can anyone help me in this. I am new to design in magento 2.
0
votes
1answer
61 views

How to change the product list 'desc' direction

How to change the product list 'desc' direction? Now Old product is default. I want to change is new product position is default > ?product_list_dir=desc using Magento Version 2.2.4 thank you!
0
votes
1answer
168 views

how to get virtual product data in product listing page and show in configurable product in magento 2?

I need to get all the child products details like id, name, sizes attribute from a configurable product id in a product listing page(list.phtml) page. <?php $objectManager = \Magento\Framework\...
2
votes
1answer
293 views

Change Default to sort by descending not ascending

I have searched for how to change the default sort order by descending and found this answer here Magento2: Default to sort by price descending not ascending, but when i load my category pages, i get ...
0
votes
2answers
112 views

Limit the Products for Particular Category?

I have a "New Arrival" Category. I need to show the Latest product of the top level category ( Mens->New arrival) and limit the products. I have tried to override the below category block. But not ...
1
vote
1answer
407 views

Magento2 - include possible tier price in getProductPrice() product list

Our customer would like to display lowest possible price in product list pages. All visible products in website are bundle products This is the function which displays the price Magento\Catalog\...
1
vote
1answer
43 views

Edit product list template

I need add block div into tag a like on image, it is desirable programmatically. Any help would be greatly appreciated
0
votes
1answer
30 views

Magento 2 - Updating Product list page Layout

So, I'm trying to update the product list page to my own custom layout inside of Magento 2. Files I've made inside of my theme are as follows: /app/design/frontend/Theme/default/Magento_Catalog/...
1
vote
1answer
606 views

Change images on hover in product list page

I need to add the image change on hover functionality into the product list page in Magento 2. When user is in product list page, when he/she hovers mouse over the displayed product, it should show ...
0
votes
0answers
95 views

Layered navigation not working with product_list block in CMS page, Magento 1.9.3.2

I'm using Magento 1.9.3.2, I have a problem with the Layered navigation block in CMS page. I created a new CMS page, 2 columns template, and put this in the layout xml: <reference name="left"> ...