Skip to content

Commit

Permalink
Fixed facet search title translations
Browse files Browse the repository at this point in the history
  • Loading branch information
CasperKN committed Jan 27, 2020
1 parent d9fdb03 commit 33daf37
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion code/Block/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,15 @@ public function getSpanAttributes()
return $a['sort_order'] > $b['sort_order'];
});

$spanAttributes['data-facets-titles'] = json_encode(array_filter(array_combine(array_keys($titles), $titles['label'])));
$labels = [];

foreach ($titles as $title) {

array_push($labels, $title['label']);

}

$spanAttributes['data-facets-titles'] = json_encode(array_filter(array_combine(array_keys($titles), $labels)));
$spanAttributes['data-facets-attributes'] = json_encode(array_keys($titles));

if ($multiselectAttributes = Mage::getStoreConfig(Clerk_Clerk_Model_Config::XML_PATH_FACETED_SEARCH_MULTISELECT_ATTRIBUTES)) {
Expand Down

0 comments on commit 33daf37

Please sign in to comment.