I have a map and the products displayed on the list page. Each product has a text attribute to fill pin code.
on selecting the location in the text box, it has to search the products which match the location pin code.
note: I can't keep the drop-down or multiple for the pin code attribute because I can't add all the pin codes over the country in the options.
Now i need something like this
$collection->addAttributeToFilter('pincode', array('like' => '%560102%'));
but I don't know where to add this code, I need layered navigation filter too