Questions tagged [product-list]
Questions about the product list blocks, used in categories, search results, upsell and so on
589
questions
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 ...
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 ...
0
votes
0
answers
23
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 ...
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 ...
0
votes
1
answer
56
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 ...
0
votes
1
answer
83
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 ...
0
votes
1
answer
150
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
575
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 ...
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 ...
2
votes
2
answers
860
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-...
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 ...
1
vote
0
answers
175
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 ...
1
vote
1
answer
312
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
88
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
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
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 ...
0
votes
1
answer
36
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 {
...
0
votes
1
answer
715
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
431
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:"...
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.
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 ...
0
votes
1
answer
522
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 ...
1
vote
1
answer
800
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
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 ...
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 ...
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="...
0
votes
2
answers
347
views
Redirect customer on same page instead of customer Dashboard
I am using hide price extension, After login redirect customer on same page.
2
votes
1
answer
270
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
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 ...
1
vote
1
answer
581
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
672
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
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 ...
0
votes
1
answer
827
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:...
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 ...
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 ...
0
votes
1
answer
266
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
932
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
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
0
votes
1
answer
837
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'], ...
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"...
0
votes
1
answer
876
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
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/...
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 ...
0
votes
0
answers
180
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.
0
votes
1
answer
850
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 ...
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 ...
1
vote
1
answer
355
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
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 ...
2
votes
0
answers
313
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.
1
vote
0
answers
75
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 ...