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
0 answers
18 views

Product list pagination not working correctly for category with over 50 products

I have a multistore with 4 stores. Three of the 4 are working correctly as they have under 50 products in the specific category. The one with more than 50, shows next page after the final product, and ...
Marie's user avatar
  • 1
0 votes
1 answer
28 views

Customizing product listings cache in Magento 2 based on cookie value for unlogged customers

I would like to customize the product listings cache for unlogged customers in Magento 2 so that the order of products is sorted based on a value stored in a cookie. Currently, Magento uses a single ...
Estern's user avatar
  • 1
0 votes
0 answers
21 views

Layered Navigation with custom filter

I want to filter Product List Page and I'm using a plugin to filter the collection using the layer class Magento\Catalog\Model\Layer::prepareProductCollection() The products are removed but the ...
Camilo Torres's user avatar
0 votes
0 answers
15 views

Product list filter by custom attribute

In the code that I'm working has a filter by a custom attribute. When the value is true the product must disappear but there is a bug. When I go to a Product list page (grid) and there is a product ...
Camilo Torres's user avatar
0 votes
1 answer
53 views

Get parent category url in Catalog Widget template

I have a cms page that I am using to display products via CatalogWidget template. I would like to modify the template to have the title of the category link to the category page, but I have been ...
Rich D's user avatar
  • 143
0 votes
0 answers
38 views

Get swatches / filter for a custom page with product list

I have a form that i'm using to load a custom collection. That collection is properly printed on my page. But the swatches / filter are not linked to my custom collection they act like is they were ...
Claims's user avatar
  • 1,146
0 votes
1 answer
79 views

Cannot display attributes those in Used in Product Listing set to yes

I created an attribute (my_text) as a text field. In stores Attributes Product under Storefront Properties I set Used in Product Listing to Yes. However, the attribute is not displayed on the category ...
Straddi's user avatar
0 votes
1 answer
139 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 ...
Bohdan V.'s user avatar
0 votes
1 answer
510 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 ...
Chirag Prajapati's user avatar
4 votes
1 answer
4k 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 ...
Aashutosh Kumar's user avatar
2 votes
2 answers
780 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
5 votes
1 answer
2k 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 ...
rarog4k's user avatar
  • 53
1 vote
0 answers
173 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 ...
fernandus's user avatar
  • 484
1 vote
1 answer
275 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 ...
Divya Rawat's user avatar
0 votes
1 answer
85 views

Rename Shop by and clear all text in left side Magento2

I want to change the text SHOP BY and clear all from the left sidebar in the list page, Below is the screenshot
kiran's user avatar
  • 597
0 votes
2 answers
36 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
kiran's user avatar
  • 597
0 votes
0 answers
1k 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 ...
Slippy's user avatar
  • 11
0 votes
1 answer
35 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 { ...
Max's user avatar
  • 17
0 votes
1 answer
690 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?
Juan Camilo Perez Rodriguez's user avatar
0 votes
1 answer
426 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:"...
Devidas's user avatar
  • 3,348
0 votes
2 answers
1k views

Sort products by In stock in magento 2.4

Can we sort products In stock only. see the below screenshot.
kiran's user avatar
  • 597
0 votes
2 answers
35 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 ...
Jonas Lima's user avatar
0 votes
1 answer
491 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 ...
Mario's user avatar
  • 478
1 vote
1 answer
780 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 ?
sumeet bajaj's user avatar
  • 1,286
1 vote
1 answer
1k 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 ...
open-ecommerce.org's user avatar
1 vote
0 answers
16 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 ...
Hudson Alves Triunfante's user avatar
0 votes
1 answer
50 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="...
IntraPersonalLearner's user avatar
0 votes
2 answers
271 views

Redirect customer on same page instead of customer Dashboard

I am using hide price extension, After login redirect customer on same page.
gill's user avatar
  • 329
2 votes
1 answer
264 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 ...
Shaikh007's user avatar
1 vote
0 answers
139 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 ...
big ben's user avatar
  • 11
1 vote
1 answer
555 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 ...
thenightingale's user avatar
0 votes
2 answers
664 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 ...
JGeer's user avatar
  • 1,416
1 vote
1 answer
2k 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 ...
Monark Bhawani's user avatar
0 votes
1 answer
797 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:...
zekia's user avatar
  • 620
1 vote
0 answers
156 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 ...
Vinod Kumar's user avatar
  • 2,045
0 votes
1 answer
40 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 ...
Jackridder's user avatar
0 votes
1 answer
263 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\...
Enrico Thrasher Monzeglio's user avatar
0 votes
1 answer
903 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/...
Arpit Gupta's user avatar
0 votes
1 answer
49 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
Anonymous Record's user avatar
0 votes
1 answer
821 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'], ...
Arjun Soni's user avatar
1 vote
1 answer
1k 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"...
Arjun Soni's user avatar
0 votes
1 answer
874 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/...
Remco Hendriks's user avatar
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
0 answers
32 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 ...
Smicky's user avatar
  • 1
0 votes
0 answers
178 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.
Arul's user avatar
  • 309
0 votes
1 answer
833 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 ...
Nafsss's user avatar
  • 760
1 vote
0 answers
77 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 ...
Sayyed Hasan's user avatar
1 vote
1 answer
342 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-...
Tamil Selvan s's user avatar
2 votes
1 answer
2k 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 ...
Mahendra's user avatar
  • 716
2 votes
0 answers
306 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.
MichaelHa's user avatar
  • 661

1
2 3 4 5
12