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
2answers
27 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
0answers
23 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
0answers
10 views

Magento 2.3 - List redirect with dubble slash // sign after domain

For some reason our Magento 2.3.5 store redirects the product url on the category list page, that we load using the default code <?= /* @escapeNotVerified */ $_product->getProductUrl() ?>, to ...
0
votes
0answers
18 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:...
0
votes
0answers
27 views

Laravel API integration with Magento 1.9

How can I integrate laravel api to get products from laravel site and show with magento's product list page.
0
votes
0answers
13 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
1answer
22 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
0answers
9 views

Product list pagination missing second parameter (/category1/category2.html)

I created a custom module to handle filters by 2 categories, like: https://example.com/clearance/phones.html. Clearance and phones are both categories. The router is working properly. I'm filtering ...
0
votes
1answer
13 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
1answer
29 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
1answer
20 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
1answer
52 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
1answer
27 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
1answer
43 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
0answers
20 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
0answers
39 views

How to get product stock info in product list rest API in magento 2.3?

To get product details i am using the following rest api. {{magento_base_url}}/rest/V1/products?searchCriteria[page_size]=4&searchCriteria[currentPage]=1 In default it does not return stock_item ...
0
votes
0answers
26 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
1answer
31 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 ...
0
votes
0answers
16 views

Products not showing up in category but are showing up in layered navigation drilldown

I am running into an issue where I have about 1000 products in a category. I have it sorted by price as the default. When I go to the page, it is showing the price order correctly, only, there are ...
1
vote
0answers
34 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
1answer
37 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
1answer
90 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 ...
0
votes
0answers
22 views

Magento2:How to sort by Product Name A -Z in listing page?

I have used to Magneto2.3.1 and I have to create custom plugin for sort by option there Product Name A -Z not working on it getting error like below: 2 exception(s): Exception #0 (...
2
votes
0answers
41 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
0answers
22 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 ...
0
votes
1answer
54 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 \...
0
votes
0answers
23 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 &...
0
votes
0answers
14 views

Magento 2.2 Custom Product collection for layered navigation

I changed the product collection for product list page but can not able to change product collection for layered navigation. Where to change custom product collection for Layered Navigation??
2
votes
1answer
59 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 ...
1
vote
1answer
138 views

How to change products sort order in magento 2?

In product list page I need to change the sorting order. I have a current order like: Description A-Z Price High To Low Price Low to High Description Z-A I need to change it to. Description A-Z ...
0
votes
1answer
88 views

Magento2 How to get current compare product collection on product list and product detail page?

I am using Magento2.3.1 and I need to list and detail page current product if add compare product than getting list and count on list and detail page. So I try to detail and list page checkbox with ...
1
vote
0answers
69 views

Profiler Analysis for product list page in magento 1.9

My product list page is very slow as I have customized things and use custom phtml for that, I have enabled the profiler and found this: Memory usage: real: 78643200, emalloc: 49273704 Code Profiler ...
0
votes
1answer
26 views

Magento 2.3 don't show products if price is 0

Is there a way to hide products that have the price at 0? I tried with this Plugin but it shows the same all the products even those at price 0. <?php namespace Vendor\Namespace\Plugin; use ...
0
votes
0answers
13 views

Show filters with price zero at bottom of the list page, Magento 2

We have products whose prices are zero.In list page when i use an filter by price from low to high , the product with zero price will come first.Is there any way to make them bottom of page by using ...
1
vote
0answers
26 views

Magento 1.9.x Custom attribute list in catalog/product list page

I'm definitely not a programmer, I struggle to program a television recording. However I have to see a list of attributes in the short description of the magento 1.9 product list. I created a custom ...
2
votes
5answers
272 views

Display Product collection issue in Magento 2

I have a product collection and i have used below code to display in my template file as follows. <ol class="products list items product-items"> <?php $productCollectionSku = array('111',...
3
votes
0answers
59 views

List Product Collection into template file in Magento 2

I am loading the Product Collection by calling the ajax request. Here is my code of template file. $('#modifyRecentAddSkus1').on('click',function(){ var skus = $('#skus1').val(); ...
2
votes
3answers
218 views

Magento 2 Create A custom grid for product using Ui component

I want to create a gird using the UI component in Magento. The grid must have product id and product SKU. I tried using the below code but it's not working. Here is the below code to create the grid. ...
0
votes
1answer
375 views

Magento2 : Product Updates Not Showing on Front End - store scope issue

Problem: Certain product attribute updates are not being seen on the front end. Irrespective of re-indexing, cleaning and flushing the cache, etc. If I change them via Update Mass Attributes, then ...
1
vote
0answers
193 views

Magento 2 sorting configurable products by special_price is not working

I have simple and configurable products on listing page. I am using special_price attribute for sorting. It is working for simple products but not working for configurable products. I have assigned ...
0
votes
1answer
45 views

Magento2 : Products showing “Out-of-Stock” in Frond-End and “In-Stock” in Backend

I am using Magento version 2.3.x and when I add a downloadable product, it is showing out-of-stock in the front end. but it is showing in-stock in the back end. how to fix this, I have tried my ...
0
votes
1answer
37 views

Change the Product grid view to a specific number of columns

The default number of columns is 3. How do I change it to 2? I prefer a solution that uses the admin, but I will settle for any solution. I have looked through the Magento user guide www.magento....
0
votes
1answer
33 views

How can i extend magento 2 ListProduct Block class in any Php class and how can i used that?

class My_Catalog_Block_Product_List extends \Magento\Catalog\Block\Product\ListProduct { } productTemplate = 'product.phtml'; $productList = new My_Catalog_Block_Product_List(); $productList->...
1
vote
0answers
29 views

Attribute value shows 'no' when it is 'yes' on category listing frontend Magento 2

I have a very strange issue with my store. I have an attribute (yes/no value) and when I echo the value on the listings page on the frontend of my Magento 2 store all products show the value as 'no'. ...
1
vote
0answers
44 views

stock filter is not adding to layered navigation in magento 2.2.7

Do all the setting but not get the filter in front end for stock
0
votes
0answers
24 views

How can I create category page for product listing?

Can anyone help me for create page for showing products in one or some category in magento 2.3.1 .
1
vote
0answers
31 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
54 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
20 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
27 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 ...

1
2 3 4 5
12