2026 Executive BenchmarkMid-Market Enterprise Modernization: How leaders across unify Commerce, Odoo ERP & AI in 90 days.
MAGENTO COMMERCE

Show product filter by attribute value

-Get prodects by attribute value wais -Inset attribute name and Value to filter your prodect -Show prodect of attribute waise $collection->addAttributeToSelect('*'); //all attribut...

Akshar Group Technologies
Dec 25, 2020
1 min read
Verified Source

-Get prodects by attribute value wais -Inset attribute name and Value to filter your prodect -Show prodect of attribute waise

php
<?php
getCollection();
$_helper = $this->helper('catalog/output');
$collection->addAttributeToSelect('*'); //all attribute swlected hear
$collection->addAttributeToFilter('your attibute name', '1'); //attribute name and Value

foreach($collection as $_product)
{
//get product collection
}
?>
Share this playbook
LET'S BUILD WHAT'S NEXT

What's Holding Your Business Back?

Tell us where you want to go, what's getting in the way, and we'll help you figure out the technology to get there.

No sales pitch. Confidential strategic advisory.