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 [layer]

The tag has no usage guidance.

0
votes
1answer
40 views

Could not filter product collection in Mage_Catalog_Block_Product_List by a custom attribute in magento 1.9

I have an issue similar to this question , and i checked the 'Already answered link' too. But my issue is bit different. The error is similar in the above link but with my custom attribute : ...
0
votes
1answer
11 views

Filter Price now showing on multiple websites using elastic search 6 +

Currently after 2.3.1 magento upgrade I start to use elastic search 6. On my magento application i have multiple websites and for some reason, except the default website the price filter was not ...
0
votes
1answer
132 views

Layer Navigation on attribute

I want to display color,fabric,size,discount,Brand search/Filter options in products page. So customer can search a tshirt like color-Blue,Fabric-Cotton,Size-XL,Discount 50-60%,Brand-Pepe. How to ...
7
votes
2answers
995 views

Get empty result when trying to get filterable attribute for particular category

I need to retrieve all filterable attributes for category. I'm using that snippet: $category = Mage::getModel('catalog/category')->load($categoryId); $layer = Mage::getModel('catalog/layer'); $...
1
vote
0answers
8 views

Custom Layer with custom template

I would like to create a custom layer to filter products by price. This specific layer should therefore have a dedicated, specific TPL, which is the best way to do it?
0
votes
1answer
108 views

Get collection of filtered products (layered navigation)

I am trying to get a collection of products according to filters applied in layered navigation. I thought, that layer model's getProductCollection will do it for me, but as long as i see, it ...
0
votes
0answers
32 views

Search is not working for some products with magento 1.9.3.7

I know there is already asked this type of question but it does not work for me. I am using magento 1.9.3.7 version when I am going to search products, for some products it is working and for some ...
1
vote
1answer
186 views

Magento 2 Equivalent for Mage::getModel('catalog/layer')

For Magento1, On:- app/design/frontend/Mypackage/Mytheme/template/catalog/product/view.phtml I'm using following code:- Mage::getModel('catalog/layer')->getCurrentCategory()->getId() Same code I ...
1
vote
0answers
40 views

How to do Progressive Image? [closed]

My website loading image like, How can i change to, Anyone help me, Thanks.
12
votes
3answers
2k views

Magento 1.9.2 Add layer navigation to advance search

I have followed following 3 steps for advanced search layer navigation, but it is not working. Any idea/suggestion OR How to implement layer navigation in advanced search? 1) In our local.xml under ...
4
votes
1answer
354 views

Override core model not working

I tried to override Magento core model which located in vendor/magento/module-catalog/Model/Layer.php, but it doesn't work at all, here's my code: app/code/Vendor/Module/etc/di.xml <preference ...
2
votes
1answer
320 views

Magento2: Add pricing logic layer at the end

Before moving to Magento, I had a princing logic inside a table that involved (customer, customer group, item, item group, etc) There are some native features that I will take advantage of such as ...
0
votes
1answer
34 views

Magento2: Equivalent catalogsearch/layer getFilterableAttributes

What is the equivalent in magento2 of $query = Mage::getModel('catalogsearch/layer'); $filterableAttributes = $query->getFilterableAttributes();
1
vote
1answer
475 views

Removing Item from collection and update toolbar - [Hide out of stock item in layer navigation ( configurable )]

I'm trying to hide out of stock products in layer navigation. This can be done using this code: http://colin.mollenhour.com/2009/07/14/hiding-out-of-stock-items-in-layered-navigation/ The issue is ...
1
vote
0answers
432 views

Magento2: Search products using filterable Attributes

I'm trying to make a product search engine and i need add a filter attribute option. (i am using \Magento\Catalog\Model\Layer\Category\FilterableAttributeList) i obtain the list of attributes $...
2
votes
0answers
97 views

Digital Data Layer

I need to implement digital data layer for marketing. I already tried this tool https://github.com/digitalDataLayer/magento2 but this produce error. So I am looking for help.
0
votes
1answer
85 views

How to remove Quote Marks From Product Name

I'm need to remove the quote marks from the product name because it is messing up the Data Layer. $product['name'] = $item->getName(); How can I do it in the above code? Thanks
1
vote
1answer
568 views

get min/max value from active filters

I'm getting my active filters like this: $filters = Mage::getSingleton('catalog/layer')->getState()->getFilters(); When $filters[0]->debug() I can tell the information I want, min/max ...
3
votes
0answers
634 views

Layered Navigation for Custom Product Collection filtered via Custom Attribute [duplicate]

I have a filtered product collection using custom attribute. How do I implement layered navigation for the same? I have extended Mage_Catalog_Block_Product_List in my block to and override ...