Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [list.phtml]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
3answers
1k views

Configurable Swatches Not Showing on Category Page

I have configurable swatches working on my product page, but I can't get them to show on the category page. I am working with the grid and a custom theme. Being that RWD is the default theme that ...
0
votes
1answer
238 views

PHTML to PHP for PDF print out purpose

I have some difficulties to convert some phtml codes into php (note: simple conversion with online tools html to php does not work therefore please do not answer if it is to refer online tool). Below ...
0
votes
2answers
410 views

Price Difference In List.phtml and View.Phtml in Magento 1.9

I have a magento store running on magento 1.9 version which has 30000+ products. When i update a product and apply a rule it has to be reindexed to apply the rule. And whenever i do that ,there will ...
0
votes
1answer
333 views

How to remove Mega-Menu dropdown [closed]

I want to (Magento ver. 1.9.2.3) default menu in my other phtml file. how to call it? I want to display menu onclick
0
votes
2answers
1k views

Load pagination on list.phtml

i'm trying to create my first magento template and i'm facing problems to load the pagination toolbar. My last try was using $object = new Mage_Catalog_Block_Product_List_Toolbar(); echo $object->...
0
votes
1answer
51 views

search the text which is present in database or in template files

I want to change text in site. when i tried template path hints, it did't worked for me. the text is present in list view page, i tried in list .phtml, no luck. i searched in static blocks and cms ...
0
votes
2answers
413 views

Previous and Next Category

I have looked all over the internet but I could find only Next and Previous for products, but I want to have it at the bottom of category page where all the products (list.phtml) are listed. I have ...
0
votes
0answers
13 views

Filtering category products showing wrong count in layer navigation in Magento 2

I have used below code in, app/design/frontend/Custom/Theme/Magento_Catalog/templates/product/list.phtml <?php $_productCollection = $block->getLoadedProductCollection(); $_helper = $...
0
votes
1answer
25 views

Get Custom Category Attribute Value On List Page : Magento 2

i have created custom category attribute now i want to get the attribute value on list.phtml page i can i achieve this in magento2. <?php if($category->getColThreeCategory()): ?> <...
0
votes
1answer
107 views

Magento 2 Custom Product Collection Size Problem after Removing Products from Collection

In Category list view I want to create a custom collection where some products are not shown OR the entire collection is re-sorted. To test this I created an observer for the event ...
0
votes
1answer
30 views

How to add remove from cart button onto category page

I am currently developing Magento 1.9 (yes I know it's outdated) and they have requested remove from cart buttons on the category page (list.phtml), however, I cannot seem to find a way to add the ...
0
votes
2answers
43 views

Magento 2 How to get the configurable products related all child products in list page using object manager?

Magento 2 in how to get the configurable products related all child (simple products QTY) in list page using object manager? Please give me a solution this questions?
0
votes
1answer
89 views

magento2.1 dropdown attribute list.phtml

How to get a dropdown attribute value on the category page, i set the show in listing to yes and added this attribute to product. any suggestion?
0
votes
0answers
91 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
2answers
150 views

Magento 2 make new method available in list.phtml

If I need to create a method under Magento\Catalog\Test\Block\Product\ListProduct Class This class has methods such as: getProductItem,getProductNames,getProductsCount,getSortByValues I Would like ...
0
votes
1answer
27 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
0answers
484 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
1answer
259 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
398 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
2answers
815 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
1answer
154 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
2answers
779 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 ...
0
votes
1answer
166 views

String Replace Product Name Breaks with '&' in Title

I have a string replace that removes the 'manufacturer' name from a product title. However, it does not work if the manufacturer name has an & (e.g. Dolce & Gabanna) in it. Can someone please ...
0
votes
1answer
277 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
174 views

Want to override special price end date in list.phtml

i am trying to override special price start/end date time. i have done in view.phtml, but in list.phtml it is not applied when i set special price end date in admin panel. What i did wrong. Can ...
0
votes
1answer
276 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
607 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
1answer
338 views

Out of Stock Configurable Products in list.phtml

I need to display a "sold out" text to all products in a list.phtml file... I'm using <?php if($_product->isSaleable()) : ?> and it's working great for simple products but it's not working ...
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 (...
0
votes
1answer
443 views

magento multi store shows only place holder of product images on list view

I have setup multi-store for magento and everything works fine except the list view page, Here I get the place holder of thumbnail images and not the actual images. In between I have chosen the ...
0
votes
1answer
289 views

How display a carousel only on the first page of the listing of product in each category [closed]

Where you are in a category you have the list of your products. I display actually a carousel a the position of a product. But my problem i don't know how display only this carousel on the first and ...
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="...
0
votes
1answer
891 views

Available Inventory not showing with product info

So I am trying to get the available inventory to show in the product info on the product list. So like it would have the price then Available inventory right below it. I was looking for solutions ...
-1
votes
1answer
48 views

How to show the count of reviews

How to show the count of product review on the category page? Now i just can get the stars, but no counts