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
25 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
0answers
15 views

How to Sortable custom columns in magento 2

I want to Sortable custom columns in Product listing Grid. But custom columns not exit in DB.So i want to sortable columm but not exits in DB.
0
votes
1answer
33 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 ...
0
votes
0answers
11 views

Magento 2 How to set up restrictive attributes?

I would like to know how I can set up an attribute that would filter the items listed with multiple values selected. For example if I offer rings and I set a material attribute. I would have among ...
0
votes
0answers
33 views

Magento 2 infinite scroll on custom page instead of pagination

I am using an extension for deals page. The page has pagination and pagination is called with this code $block->getToolbarHtml() . How can I change this to infinite ajax scroll? Also I only want to ...
1
vote
1answer
47 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 ?
0
votes
0answers
18 views

Magento 2: extending ListProduct

I have created a custom controller that should show a list of products in the account area. For this purpose I added a custom block that extends the ListProduct block via layout. The basic idea is to ...
0
votes
0answers
22 views

Check if product allow backorder in category list slow - Magento 2.4

How can we check in the category list page, if a specific product is allowed for backorders? We only allow this on product level, so I want to check if this product can be ordered as backorder. Edit: ...
0
votes
0answers
34 views

Magento 2.3.2 does not show Thumbnail in other store views (language)

I'm using Magento 2.3.2 with 3 store views for languages and Porto Smartwave Theme. All Products are created as Simple Product for "All Store Views", the Thumbnails have roles assigned, but ...
0
votes
1answer
81 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
18 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
21 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
18 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
128 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
49 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
51 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
56 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
13 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
63 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
78 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
34 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
164 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
405 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
93 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
49 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
0answers
34 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
30 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
1answer
20 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
77 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
32 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
247 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
179 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
347 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
632 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
62 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
133 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
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
43 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
432 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
0answers
97 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
28 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
87 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
65 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
82 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
841 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
513 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
153 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 ...

1
2 3 4 5
12