Skip to main content

Questions tagged [layer]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer

After update Magento 2.3.5 to 2.4.2 on all category pages error: Exception #0 (RuntimeException): Catalog Layer has been already created. How fix?

After updating the version, I started getting on all category pages this error: Exception #0 (RuntimeException): Catalog Layer has been already created This is error in: vendor/magento/module-catalog/...
David Young's user avatar
0 votes
1 answer

Magento 2.3 How to show Out of Stock Products only in Search?

My site is supposed to show out of stock products in some places in the catalogue, so the Catalog > Inventory > Display Out of Stock Products setting is set to "Yes." But I do not want ...
Chloe's user avatar
  • 11
1 vote
2 answers

Magento2.3.1 How to overide Model file?

I am using Magento2.3.1 and i trying to override model in our theme. our model file path app/code/XXXX/General/Model/Layer <?php namespace XXXXX\General\Model\Layer; class FilterList extends \...
Rv Singh's user avatar
  • 1,627
0 votes
0 answers

How to Filter Current Category Layer's products colletions by instock and qty greater than zero(0) condition in List Page Magento 2

Please check below Code: di.xml <?xml version="1.0"?> <config xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/...
Hitesh Balpande's user avatar
0 votes
1 answer

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 ...
Alin Lupoiu's user avatar
  • 2,672
0 votes
1 answer

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 : ...
Shan's user avatar
  • 355
1 vote
0 answers

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?
BOES's user avatar
  • 210
1 vote
1 answer

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 ...
Wakar Ahamad's user avatar
0 votes
1 answer

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 ...
Asadov Kamran's user avatar
1 vote
0 answers

How to do Progressive Image? [closed]

My website loading image like, How can i change to, Anyone help me, Thanks.
zus's user avatar
  • 175
4 votes
0 answers

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 ...
Shell Suite's user avatar
  • 1,702
0 votes
1 answer

Magento2: Equivalent catalogsearch/layer getFilterableAttributes

What is the equivalent in magento2 of $query = Mage::getModel('catalogsearch/layer'); $filterableAttributes = $query->getFilterableAttributes();
Miguel's user avatar
  • 569
1 vote
0 answers

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 $...
Miguel's user avatar
  • 569
2 votes
2 answers

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 ...
Marc Pont's user avatar
  • 1,453
2 votes
0 answers

Digital Data Layer

I need to implement digital data layer for marketing. I already tried this tool but this produce error. So I am looking for help.
Jarnail S's user avatar
  • 4,697
0 votes
1 answer

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
Freejoy's user avatar
  • 819
0 votes
1 answer

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 ...
subhajit pattnaik's user avatar
12 votes
3 answers

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 ...
Kishor Hase's user avatar
1 vote
1 answer

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 ...
kilsen's user avatar
  • 185
8 votes
2 answers

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'); $...
Quickerz's user avatar
3 votes
0 answers

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 ...
Kshitij Awadhiya's user avatar
1 vote
1 answer

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: The issue is ...
Fra's user avatar
  • 6,985