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
0answers
25 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
18 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
27 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
19 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
25 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
14 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
35 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
31 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
21 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
30 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
19 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
49 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
21 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
12 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
53 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
105 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
50 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
46 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
20 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
10 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
23 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
264 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
56 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
137 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
230 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
127 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
40 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
32 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
32 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
28 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
41 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
29 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
47 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
17 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
23 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 ...
0
votes
1answer
64 views

Magento 2.2.4 ,how to show 3 products per row insteadd of 4 on category list page?

Magento 2 , how to show 3 products per row instead of 4 on category list page?
1
vote
0answers
17 views

Magento 1.9.2. - Filter products on the list page starting from the last tier price

I would like to be able to filter the products on the list page not for the final price but for the last tier price. How could I do? Thanks
0
votes
0answers
18 views

For heavier category(having 2000 products) ,category page takes 4-5 min to load, while for a small category( few products) it's working properly

I've used following two joins on product listing page due to which heavier category page taking 4-5 minutes to load:- Class:- vendor/magento/module-catalog/Block/Product/ProductList/Toolbar.php ...
0
votes
1answer
33 views

How can get custom table columns on product listing page using product_id of the custom table

On product listing page, I need to show visitor nearest product first. I've a marketplace site and each product have different seller and there is a custom table having seller_id and product_id ...
3
votes
1answer
193 views

Notify me when this product is in stock on product listing page in magnento 2.2.5

I want to add "Notify me when this product is in stock" on product listing page in magento 2 . by default if product is out of stock this comes in the product detail page. but i want in the product ...
3
votes
1answer
690 views

Attribute filter with checkboxes , Magento2

Has an product attribute filter with checkboxes by default for category view ? For example
1
vote
2answers
39 views

How to add Listmodes in Magento 2?

How to add the list modes in magento 2 custom module. I need list modes like below image. http://prntscr.com/mwrq23 and my productlist.phtml file is <div class="container-list container"> ...
2
votes
1answer
681 views

Magento2 : Pagination - jump to top of page [closed]

I have problem with next/prev Buttons in Pagination. If user clicks button, it reloads the page (i think) in Ajax at the current page scroll position. Is there any method to force the reload jump to ...
3
votes
1answer
46 views

Magento 2: Product List Not Showing in Catalog and Search

I am having a problem with the product list when adding new products. It was working properly until I added a new product. Then, the product list stopped being visible in the catalog pages and search ...
1
vote
2answers
135 views

Magento 2 : How to change the currency symbol wise price in list.phtml page?

I will trying but its not working ? <?php $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); // Instance of Object Manager $currencyModel = $objectManager->create('...
1
vote
0answers
260 views

Conflict in layer navigation and infinite scroll extension magento2

I have Installed above BSS_layeredNavigation & Lof_Ajaxscroll extensions. Both of them are working fine if used individually. If both extensions are enabled there is a conflict. To avoid ...
0
votes
1answer
171 views

How can I edit files like frontend/…/category/view.phtml?

I have been trying to edit some files from the frontend folder. On this folder I have the following folders: base, default, rwd and typologancee. I have to create a specific filter which is going ...
0
votes
1answer
15 views

Magento 2.2.7. Best way -according to the Magento guidelines- to apply some custom javascript to specific products

At app/design/frontend/Custom/Theme/Magento_Catalog/templates/product/list.phtml I'm trying to apply a javascript for certain products (not all of them) as follows: <?php foreach ($...

1 2 3 4 5 12