@@ -234,7 +234,7 @@ public function setSettings($storeId)
234234
235235 $ suffix_index_name = 'group_ ' . $ group_id ;
236236
237- $ sort_attribute = strpos ($ values ['attribute ' ], 'price ' ) !== false ? $ values ['attribute ' ].'. ' .$ suffix_index_name : $ values ['attribute ' ];
237+ $ sort_attribute = strpos ($ values ['attribute ' ], 'price ' ) !== false ? $ values ['attribute ' ].'. ' .$ currencies [ 0 ]. ' . ' . $ suffix_index_name : $ values ['attribute ' ];
238238
239239 $ mergeSettings ['ranking ' ] = array ($ values ['sort ' ].'( ' .$ sort_attribute .') ' , 'typo ' , 'geo ' , 'words ' , 'proximity ' , 'attribute ' , 'exact ' , 'custom ' );
240240
@@ -244,7 +244,7 @@ public function setSettings($storeId)
244244 }
245245 else
246246 {
247- $ sort_attribute = strpos ($ values ['attribute ' ], 'price ' ) !== false ? $ values ['attribute ' ].'. ' .'default ' : $ values ['attribute ' ];
247+ $ sort_attribute = strpos ($ values ['attribute ' ], 'price ' ) !== false ? $ values ['attribute ' ].'. ' .$ currencies [ 0 ]. ' . ' . 'default ' : $ values ['attribute ' ];
248248
249249 $ mergeSettings ['ranking ' ] = array ($ values ['sort ' ].'( ' .$ sort_attribute .') ' , 'typo ' , 'geo ' , 'words ' , 'proximity ' , 'attribute ' , 'exact ' , 'custom ' );
250250
@@ -258,7 +258,7 @@ public function setSettings($storeId)
258258 }
259259 }
260260
261- private function getFields ($ store )
261+ protected function getFields ($ store )
262262 {
263263 $ tax_helper = Mage::helper ('tax ' );
264264
@@ -271,7 +271,7 @@ private function getFields($store)
271271 return array ('price ' => false , 'price_with_tax ' => true );
272272 }
273273
274- private function formatPrice ($ price , $ includeContainer , $ currency_code )
274+ protected function formatPrice ($ price , $ includeContainer , $ currency_code )
275275 {
276276 if (!isset (static ::$ _currencies [$ currency_code ]))
277277 {
@@ -286,7 +286,7 @@ private function formatPrice($price, $includeContainer, $currency_code)
286286 return $ price ;
287287 }
288288
289- private function handlePrice (&$ product , $ sub_products , &$ customData )
289+ protected function handlePrice (&$ product , $ sub_products , &$ customData )
290290 {
291291 $ fields = $ this ->getFields ($ product ->getStore ());
292292 $ customer_groups_enabled = $ this ->config ->isCustomerGroupsEnabled ($ product ->getStoreId ());
@@ -371,7 +371,7 @@ private function handlePrice(&$product, $sub_products, &$customData)
371371 }
372372 }
373373
374- if ($ type == 'configurable ' || $ type == ' grouped ' || $ type == 'bundle ' )
374+ if ($ type == 'grouped ' || $ type == 'bundle ' )
375375 {
376376 $ min = PHP_INT_MAX ;
377377 $ max = 0 ;
@@ -383,7 +383,7 @@ private function handlePrice(&$product, $sub_products, &$customData)
383383 list ($ min , $ max ) = $ _priceModel ->getTotalPrices ($ product , null , $ with_tax , true );
384384 }
385385
386- if ($ type == 'grouped ' || $ type == ' configurable ' )
386+ if ($ type == 'grouped ' )
387387 {
388388 if (count ($ sub_products ) > 0 )
389389 {
@@ -508,6 +508,7 @@ public function getObject(Mage_Catalog_Model_Product $product)
508508 $ categoryCollection = Mage::getResourceModel ('catalog/category_collection ' )
509509 ->addAttributeToSelect ('name ' )
510510 ->addAttributeToFilter ('entity_id ' , $ _categoryIds )
511+ ->addAttributeToFilter ('include_in_menu ' , '1 ' )
511512 ->addFieldToFilter ('level ' , array ('gt ' => 1 ))
512513 ->addIsActiveFilter ();
513514
0 commit comments