File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,17 @@ public function getProductCollection()
2020 return parent ::getProductCollection ();
2121 }
2222
23- if (isset ($ this ->_productCollections [$ this ->getCurrentCategory ()->getId ()])) {
24- $ collection = $ this ->_productCollections [$ this ->getCurrentCategory ()->getId ()];
25- } else {
26- $ collection = Mage::getModel ('integernet_solr/result_collection ' );
27- $ this ->_productCollections [$ this ->getCurrentCategory ()->getId ()] = $ collection ;
23+ $ category = $ this ->getCurrentCategory ();
24+
25+ if ($ category ->getData ('solr_exclude ' )) {
26+ return parent ::getProductCollection ();
2827 }
29- return $ collection ;
28+
29+ if (! isset ($ this ->_productCollections [$ category ->getId ()])) {
30+ $ this ->_productCollections [$ category ->getId ()] = Mage::getModel ('integernet_solr/result_collection ' );
31+ }
32+
33+ return $ this ->_productCollections [$ category ->getId ()];
3034 }
3135
3236 /**
@@ -52,4 +56,4 @@ public function getFilterableAttributes()
5256 return $ collection ;
5357 }
5458
55- }
59+ }
You can’t perform that action at this time.
0 commit comments