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
1answer
18 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
0answers
12 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
1answer
13 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
0answers
15 views

magento 2: get product name, price in product linked list in :sku/product endpoint rest api

In default api product links details are like product_links": [ { "sku": "02247", "link_type": "related", "...
0
votes
0answers
12 views

How to create custom index to store data from product collection?

I want to create a custom index where to store data based on this flow: Get all active products - filter on attribute (select type attribute from product) => "cases" Foreach product get ...
0
votes
2answers
28 views

Redirect customer on same page instead of customer Dashboard

I am using hide price extension, After login redirect customer on same page.
0
votes
0answers
35 views

Magento 2 REST API V1/products list all inactive Tier Prices

I am using /V1/products API Call to get the product list. It contains the inactive tier prices (means expired tier prices). Either I need to get the tier price from and tier price to or I need to get ...
0
votes
0answers
16 views

How to get last number of page in category?

I want to show last number of page in pagination only. The code of pagination comes from below path. /var/www/html/magento/vendor/magento/module-theme/view/frontend/templates/html/pager.phtml I'm ...
2
votes
1answer
34 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
0answers
36 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 ...
0
votes
0answers
12 views

Color swatch option in magento 2

For Color attribute. i have choosed visual swatch option. See https://nimb.ws/5uShaj On frontend, it shows color for the one whoose color image is added. but it shows blank when no color image is ...
1
vote
0answers
28 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
0answers
42 views

Magento 2.3 - Force (product list) grid view for mobile users (no list view)

I want to force mobile users to use "Grid view" only for the Magento 2.3 catalog products page/search results page (no possiblity to switch to list view - but I want to remain list view for desktop ...
0
votes
0answers
23 views

Show related products with list style on product page in Magento 2?

I was able to show the related products on the product page inside the 'related product' tab. However, it is in grid style. I'm wondering if there is a way to show them with "list style" ( like the ...
0
votes
2answers
67 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
1answer
130 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
52 views

Magento 2.3 - List getProductUrl 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
25 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
55 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.
1
vote
0answers
22 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
23 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
12 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
19 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
63 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
21 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
95 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
49 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
139 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
2answers
417 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
0answers
23 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
52 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
54 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
52 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
38 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
246 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
28 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
69 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
27 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
60 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
36 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 &...
2
votes
1answer
69 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
335 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
272 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
98 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
28 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 ...
1
vote
0answers
27 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
292 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
63 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(); ...

1
2 3 4 5
12