Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
Use url key for attribute value
Browse files Browse the repository at this point in the history
  • Loading branch information
Edwin Jacobs committed Sep 15, 2020
1 parent 1e12153 commit 57d836e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ protected function buildAttributeUriPath(Emico_Tweakwise_Model_Catalog_Layer $st
if ($selectedFacet->isCategory() || $activeAttribute === $attribute) {
continue;
}
$facetSettings = $selectedFacet->getFacetSettings();
if ($selectedFacet->isSlider()) {
$queryParams[$selectedFacet->getFacetSettings()->getAttributeName()] = implode('-', $selectedFacet->getValue());
$queryParams[$facetSettings->getUrlKey()] = implode('-', $selectedFacet->getValue());
continue;
}
$facetSettings = $selectedFacet->getFacetSettings();
$slugs[] = [
'facet' => $facetSettings->getUrlKey(),
'value' => $slugMapper->getSlugForAttributeValue($activeAttribute->getTitle())
Expand Down Expand Up @@ -369,4 +369,4 @@ protected function buildIndexableAttributePath(Emico_Tweakwise_Model_Catalog_Lay

return $this->getPathFromSlugs($slugs, $state);
}
}
}

0 comments on commit 57d836e

Please sign in to comment.