@@ -16,6 +16,7 @@ $isConfig = [
16
16
'indexDataByStoreIds ' => $ block ->getCoreHelper ()->getIndexDataByStoreIds (),
17
17
'routing ' => false ,
18
18
'facets ' => $ configHelper ->getFacets (),
19
+ 'currencyCode ' => $ configHelper ->getCurrencyCode (),
19
20
'maxValuesPerFacet ' => (int ) $ configHelper ->getMaxValuesPerFacet (),
20
21
'landingPageConfig ' => json_decode ($ landingPage ->getConfiguration ()),
21
22
'searchParameters ' => [
@@ -31,7 +32,6 @@ $isConfig = [
31
32
32
33
?>
33
34
34
-
35
35
<input type="hidden" name="algolia_merchandising_positions" value="" data-form-part="algolia_algoliasearch_landingpage_form" />
36
36
<input type="hidden" name="algolia_query" value="<?php echo htmlentities ($ landingPage ->getQuery ()) ?> " data-form-part="algolia_algoliasearch_landingpage_form" />
37
37
<input type="hidden" name="algolia_configuration" value="<?php echo htmlentities ($ landingPage ->getConfiguration ()) ?> " data-form-part="algolia_algoliasearch_landingpage_form" />
@@ -530,6 +530,24 @@ $isConfig = [
530
530
531
531
window.getFacetWidget = function (facet, templates) {
532
532
533
+ if (facet.type === 'priceRanges') {
534
+ delete templates.item;
535
+
536
+ return ['priceRanges', {
537
+ container: facet.wrapper.appendChild(createISWidgetContainer(facet.attribute)),
538
+ attributeName: facet.attribute,
539
+ labels: {
540
+ currency: config.currencyCode,
541
+ separator: 'to',
542
+ button: 'go'
543
+ },
544
+ templates: templates,
545
+ cssClasses: {
546
+ root: 'facet conjunctive'
547
+ }
548
+ }];
549
+ }
550
+
533
551
if (facet.type === 'conjunctive') {
534
552
var refinementListOptions = {
535
553
container: facet.wrapper.appendChild(createISWidgetContainer(facet.attribute)),
0 commit comments