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
0 votes
1 answer
55 views

Magento 2.4.3-p3 Load More is not working

I am trying to show products number correctly in product list, but if click Load More button, added all products = Before click Load More = After click Load More Added Extension - Infinite Scroll ...
0 votes
1 answer
87 views

Why Out of Stock Products showing at end of list in Magento 2.4.5?

We have created a category page and assigned some products to that category page. We have also assigned some out-of-stock products. But when we sort products by price the out-of-stock products show at ...
2 votes
1 answer
730 views

Uncaught TypeError: url.indexOf is not a function

After Magento Upgrade in latest version product list page showing this error, please suggest me what we can take step to solve this error. jquery.js:10363 Uncaught TypeError: url.indexOf is not a ...
1 vote
2 answers
330 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-...
3 votes
1 answer
906 views

Magento 2.4.5-p1 - no products listed in categories and search

I'm not sure, how this state was reached. I also tried one new category and added one new product. The product is definitely set to be visible in Catalogue and Search, but the category still doesn't ...
  • 33
1 vote
0 answers
62 views

Product Image not showing on listing page frontend after code migration Magento 2.4.3

I moved my project to a different directory as the memory is low in the disk, everything is working fine except the product listing page where the images are missing. Showing default image. Wrong ...
  • 454
1 vote
1 answer
71 views

What is alternative of cacheable="false"

I am developing a module i which i override the Magento\Catalog\Block\Product\ProductList\Toolbar.php by preferece and list.phtml by catalog_category_view.xml layout. Correct product listing data is ...
0 votes
1 answer
39 views

Rename Shop by and clear all text in left side Magento2

I want to change the text SHOP BY and clear all from left sidebar in list page
  • 475
0 votes
2 answers
32 views

How to move description in list page magento 2.4

I want to move the sku after description in list page. https://prnt.sc/DFlrsqO-tC4A
  • 475
0 votes
0 answers
19 views

Warning on Listing page after upgrading magento version to 2.4.3-p2

Can anyone help me in resolving this issue. I have upgraded my magento version from 2.3.5 to 2.4.3, I am getting this error on Listing page Exception #0 (Exception): Warning: Invalid argument supplied ...
0 votes
0 answers
556 views

Magento - Product Listing Sort By not working

For reference, I am working with Magento 2.4 I have tried the solutions from other posts on this forum and online and I cannot seem to get my magento app products sorted in the order I want. I have ...
  • 1
0 votes
0 answers
317 views

Magento 2 Get product (rest/V1/products) with filter Different result with Web (PLP)

I have configurable products that have variants with COLOR (RED/BLUE). In Web at PLP page when filtering with COLOR Red (value:13) But when using API rest/V1/products, the response does not same as ...
  • 161
0 votes
1 answer
28 views

How to get all Products of all Websites/Stores?

I tried getting all products of all websites via the ProductCollection like this: $stores = $this->storeManager->getStores(); foreach ($stores as $store) { try { ...
  • 17
0 votes
0 answers
61 views

Magento 2: Product image label can not be removed for Product Listing page

I have added alt text for the product and it shows correctly on the product detail page as well as a listing page but then I want to remove alt text and want to show default alt text as per Magento ...
0 votes
1 answer
441 views

Add custom template in listing page - Magento2

[![enter image description here][2]][2] How can I remove the attributes that appear for each product and add a new template which contains different styles and content?
0 votes
1 answer
314 views

graphql product query huge perfomance hit when filtering with multiple attributes

I have used the below GRAPHQL query to get the product list. { products(filter: {category_id: {eq: "77"},color:{in:["5437","5438","5449"]}, price:{from:"...
  • 3,243
0 votes
2 answers
781 views

Sort products by In stock in magento 2.4

Can we sort products In stock only. see the below screenshot.
  • 475
0 votes
2 answers
32 views

How to make a list of products from a custom variable?

I have a customized variable called "brand" and I want to show all products with the same value as this variable. It is possible to do this with the advanced search. but the look is not very ...
0 votes
1 answer
206 views

Add additional information to product list item in widget

I was able to add some additional information to the products in the category and the search-result page with a plugin. Unfortunately it doesn't work for the widgets (product list widgets, related ...
  • 423
1 vote
1 answer
559 views

Magento 2 how to show catalog/product/list.phtml in Custom Module collection

Magento 2 how to show catalog/product/list.phtml in Custom Module popup with custom filter product collection Anyone know how to do this ?
  • 1,185
0 votes
1 answer
915 views

Magento 2.4 with luma showing correct placeholder instead of small_image

I am workin in a magento 2.4 with luma as a vendor so the list.phtml come directly untouched from the core of magento. I can see the images in the admin and in the product view gallery but at the ...
1 vote
0 answers
15 views

My Catalog list has no effect on the home page

I have a personalized list.phtml within the "Magento_Catalog" module of my theme, the changes there take effect on the category page, but not on the "Catalog products list" widget ...
0 votes
1 answer
43 views

Magento-1.9: How to manage products as per my wish in owl corousel slider for my home page slider?

I'm trying to set up a category products list on my homepage following this tutorial. <div class="hide-ratting owl-top-narrow" id="featured_product"> {{block type="...
0 votes
2 answers
57 views

Redirect customer on same page instead of customer Dashboard

I am using hide price extension, After login redirect customer on same page.
  • 319
2 votes
1 answer
211 views

Magento 2.3.2 Single color variation auto selected on product list page

Magento 2.3.2 Single color variation auto selected on product list page, i have added this code in swatch-render.js after container append but it is selecting on all products instead of selecting only ...
1 vote
0 answers
123 views

Magento 1.9 | Rating not displaying at product list

Currently, on the list of products starts is displayed only when someone adds reviews. I need to display the stars and message to leave review and rating. In template found that it should've been ...
  • 11
1 vote
1 answer
316 views

What is the correct way to make the last page appear on pagination?

I need to make the pagination show some amount of pages saying 5 then show the dots and last page. Making it look like: 1 2 3 4 5 ... 20 pager.phtml already has those within the template, but they ...
0 votes
2 answers
476 views

Magento 2.3 extend product list collection in child template - error on search

We use the following method to extend the product list collection inside a child template. This works fine for the product catalog list page, but gives a error (skips the load from the element) on the ...
  • 1,434
1 vote
1 answer
1k views

Magento 2 : how to add color swatches on list page

Is it possible to add color swatches on the list page and color dropdown on the product view(detail) page?. Please check below image, I added color attribute as a dropdown: So by default on the ...
0 votes
1 answer
498 views

Set current product for custom block in category list

I have added a custom block in each product item, in category list page: catalog_category_view.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:...
  • 610
1 vote
0 answers
140 views

Magento 2.3.2 - Products with same position in category sorting issue?

We recently migrated a store from M1 to M2.3 - the site has thousands of products and hundreds of categories. Within each category, there are several instances whereby more than one product has the ...
  • 2,025
0 votes
1 answer
38 views

Dynamically generated block identical for all clients - Why?

I use PHP to create the content of a block dynamically on a CMS page (created via the admin portal). But I found out during testing that the first generated block remains active for all clients until ...
0 votes
1 answer
196 views

Get quantity of simple products in configurable products on list.phtml

I'm trying to get the qty of simple products in configurable products in the list page and it works with this code inside the product collection foreach: $objectManager = \Magento\Framework\App\...
0 votes
1 answer
617 views

Get list of products on current category page in custom block magento 2.3

I want to get the list of products currently visible on category page in a custom block. I tried using <?xml version="1.0"?> <page layout="1column" xmlns:xsi="http://www.w3.org/2001/...
0 votes
1 answer
47 views

How to enlarge product images displayed through widget( product grid template)

I want to enlarge image size I have inserted it through widget product grid template
0 votes
1 answer
689 views

Magento2 - How to change product view Grid or List without reload page?

I have search many hours to accomplish this but not get success to achieve last I tried Stack overflow link and also add my custom jQuery in list.phtml file <script> require(['jquery'], ...
0 votes
1 answer
929 views

Magento 2 override product list.phtml

I want to override product list.phtml and in my layout file catalog_category_veiw.xml i tried many methods but still not able to call my templates file <referenceBlock name="category.products.list"...
0 votes
1 answer
786 views

Magento 2 - Display all products on homepage

I'm trying to add a overview of all products with filter on the Homepage of my Magento store. I followed the following tutorial from PHP Cuong which I got up and running. https://github.com/php-cuong/...
0 votes
2 answers
2k 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/...
  • 1,421
0 votes
0 answers
29 views

Product Price + First Custom Option Price in products list?

We sell product which, for some of them, must include one option (which has a fixed price of, say, 50$) On the product list views + on the product page we would like to show the price as : "Starting ...
  • 1
0 votes
0 answers
164 views

Default sorting option not working in magento 2.2.7?

I am using the default sorting option as product name but when the page loads for first time it is not working. It's only working when selecting an option from the sorting dropdown.
  • 309
0 votes
1 answer
608 views

Show/Hide Products on Category page on button click

I want to show/hide the Product listing on Category page on button click. On my category page i am displaying one static block before products, this block contain one button. My requirement is on ...
  • 720
1 vote
0 answers
72 views

is there any way to display all my products in group product on one page in admin dashboard

Basically this is my group product and this is how we can see all of child products Now I dont want that previous and next button i just want all my products in list comes in one page or tab. help ...
1 vote
1 answer
168 views

How to add a custom product collection like cross-sell, up-sell, related products in Magento 2.3?

I'm currently working on a shopping project for a water management company using Magento 2.3. The client asking a new product collection named consumable products for each product, like related, up-...
2 votes
1 answer
1k views

How to show custom attribute value as label in magento 2 product listing page

How to show custom attribute value as label in Magento 2 product listing page. I am using helper to show custom attribute value in product listing page corner of every image as label. I get the value ...
  • 706
2 votes
0 answers
236 views

Magento 2: How to check product has video or not

In the product list.phtml I want to check if(product has video) { show button video }else { not show button video } Any way to solve it? Thank in advance.
  • 661
1 vote
0 answers
63 views

Magento 2: Modal video in product list

In the product list, I want to check if product video exists show button video like this: and when I click on the button video will be played like modal. Any way to solve it? Thank in ...
  • 661
0 votes
1 answer
584 views

Magento 2 function to get a list of products (simple and configurable) with special price on a given date

I have the following function which gives me a list of simple products which are on special at the moment: public function getSpecialProducts($config = []) { /** @var $collection \...
  • 115
0 votes
0 answers
394 views

Get visibility of product in product list

Within a product list, I would like to access $product->getVisibility() for each product of the collection. However, this is always null instead of either of the 4 states. I have already added &...
  • 707
2 votes
1 answer
269 views

How to execute custom controller action for product in magento2?

I would like to write some custom code product actions in a controller is executed. When I have click on the product than showing multiple brands and after that click on brand then show product ...
  • 3,243

1
2 3 4 5
12