Questions tagged [list.phtml]

The tag has no usage guidance.

6
votes
2answers
13k views

show products of a category on home page in magento 1.9.2.2

i'm getting crazy right now. I'm setting up a template and this easy thing which was done in 5 minutes took my last 3 hours. I can't figure out why this simple block thing for showing a category on ...
1
vote
3answers
2k views

Remove Add To Cart Button in product List page magento2 without using template file

I want to remove Add To Cart button at category page. but I don't want to use template file. I did it for product view page using event. $layout = $observer->getEvent()->getLayout(); $...
4
votes
2answers
2k views

modify list.phtml to show only a limited number of products on home page

On the home page, I am trying to display70 only 6 random products on one row, from a category (id 24) that has 70 products. And randomly changed each time the page gets re-loaded. The only method ...
1
vote
1answer
1k views

How to Change the position of breadcrumbs in list page?

I want to display the breadcrumbs in list page alone to display inside the grid exactly just above the toolbar. So I entered this line of code: <?php echo $this->getChildHtml('breadcrumbs') ?&...
1
vote
1answer
504 views

List.phtml load external file with php does not work (missing helpers)

Inside our list view I want to load an external php file. The file is displayed, but when loading the php code, the page break down. When I place the php code inside the catalog/product/list.php it ...
0
votes
1answer
558 views

get the html of a product as it would render in category page

I need to write a controller that get a product id and return the html that this product would generate if shown in a category page. for example: To be clear I got everything working to the point ...
0
votes
2answers
72 views

How to get dropdown value Magento2.1

I want to get a dropdown attribute value on the category page, i set the show in listing to yes and added this attribute to product. then set below code to my list.phtml: ...