Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [list.phtml]

The tag has no usage guidance.

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(); $...
0
votes
2answers
740 views

magento 2 custom attributes value frontend return No value of select

I have a problem in retrieving the value of custom attribute of type select, it returns a value No I try this code in list.phtml: <span class="product_badge_value"> <?php /* @...
0
votes
2answers
684 views

Magento 2 Invalid Block Type in Custom Module?

How can I Rectify Invalid Block Type Error in my custom module. I created a custom module in magento 2 for overriding default product list page with separate phtml file I am calling them in category ...
2
votes
1answer
1k views

How to override price html on product list page

I am writing a custom module for magento 2 i.e "call for price" and I want to override price html on product list page. I have follow the following scenario: 1.etc/di.xml <?xml version="1.0"?...
2
votes
1answer
277 views

Magento 2: Custom block in list.phtml

I have created a custom block in my module to show the quantity of each product in list.phtml file. I modify in my custom template list.phtml with the code below <?php $myBlock= $block->...
2
votes
1answer
428 views

Magento 2 Create Product Details pdf?

How can I create a pdf file with Product details and download it by clicking on download image in product list page in magento 2.Can anybody Help me on this.
1
vote
1answer
263 views

Helper function calling issue in magento1

When I call my custom module's helper function in catalog/product/list.phtml file my list page is gonna black. In phtml : $helperToday = Mage::helper('today_special/data'); $arr = $helperToday->...
0
votes
1answer
24 views

Magento 2 - language override phtml

Is there a way to override a .phtml file on language level? I have 4 stores (language dependency) and i want to make some changes in the code for these different countries. I this possible through, ...
0
votes
1answer
247 views

want to replace select button with add to cart button in product list

Currently when I click onto a category and see a list of products, it puts a select button next to each product in list mode. Select brings you to the product page. I would like to replace that ...
0
votes
1answer
341 views

Different list.phtml for categorys in the backend of Magento 2.1.7

I try to switch the list.phtml for 4 categorys. Each category should have his own list.phtml. The problem: I don't want to call it by the category id directly. I know I can easy do this directly in ...
0
votes
1answer
139 views

Check if attribute equals specific value

I want to check that a product attribute equals a specified value in the product/view/list.phtml template and if so, display some html. The current code gives no result. Can an edit be suggested to ...
0
votes
1answer
250 views

After Login Redirect to List Page

I have create Custom login form. Copy default login.phtml file and create other login-details.phtml file. Now in Product List page i want to Login Form After login Customer see products in listing. ...
0
votes
1answer
273 views

Why? Can't call custom file phtml to list.phtml?

In controller .... $this->_initAction(); // $this->loadLayout(); $update = $this->getLayout()->getUpdate(); $update->addHandle('default'); $this-&...
0
votes
1answer
71 views

Magento fronted “shop not available” when trying to render pagination in list.phtml

I wanted to display all products from my store on homepage, to do that I used this piece of code in my CMS Home Page item. {{block type="catalog/product_list" name="home.catalog.product.list" alias="...
3
votes
0answers
28 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

Webkul Layerednavigation

I just installed Magento 2 webkul advanced layered navigation. but wen I use it as composer, I get below error: [RuntimeException] Source class "\Webkul\AdvancedLayeredNavigation" for "\Webkul\...
1
vote
0answers
87 views

Magento2: custom javascript not called when using with text/x-magento-init

In list.phtml (product listing) I am showing requistition lsit for every product using type="text/x-magento-init" in loop as: <script type="text/x-magento-init"> { "*": { "...
1
vote
0answers
191 views

swatches with infinite scroll for category pages

I am creating an infinite scroll for category pages in magento 1.9.2. the crux of it is jQuery.ajax({ url: pageurl+'p='+next, success: function(result){ jQuery('#...
1
vote
0answers
323 views

Issue with implementing Ajax Buy Now button to Magento List.phtml

I am trying to add a "Buy now" button to the category page of my store. I have followed the following guide; http://www.ifuelinteractive.com/jquery-magento-and-ajax-add-to-cart-redux/ Making a few ...
0
votes
0answers
48 views

magento2.1 bottom pagination when there is no page

When i set pagination to 60 and i have 55 items, so shows 55 items and it is nice, but still shows a bar of pagination on the bottom of the page. how can i remove it when there is no pagination page ...
0
votes
0answers
402 views

Magento 2 : How to show add to cart button in out of stock?

I want to show add to cart button block in my list.phtml even a product is out of stock. I do not want to enable back orders too. How can i do this? OR May i know from which file checking the stock ...
0
votes
0answers
168 views

swatches.phtml taking over list.phtml

Using the paths inspector, I realize that swatches.phtml is taking over list.phtml in our category pages, even if we have it disabled in Configuration > Settings > Catalog > Configuration Swatches (...