Skip to content

Commit

Permalink
Add categoryIds filter
Browse files Browse the repository at this point in the history
  • Loading branch information
herzog31 committed Mar 14, 2024
1 parent 3c33ebe commit 793494f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions blocks/product-list-page/product-list-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { loadScript, readBlockConfig } from '../../scripts/aem.js';
import { getConfigValue } from '../../scripts/configs.js';

export default async function decorate(block) {
const { urlpath, category, type } = readBlockConfig(block);
const { category, type } = readBlockConfig(block);
block.textContent = '';

const widgetProd = '/scripts/widgets/search.js';
Expand Down Expand Up @@ -44,7 +44,6 @@ export default async function decorate(block) {

if (type !== 'search') {
storeDetails.config.categoryName = document.querySelector('.default-content-wrapper > h1')?.innerText;
// storeDetails.config.currentCategoryUrlPath = urlpath;
storeDetails.config.currentCategoryId = category;

// Enable enrichment
Expand Down
2 changes: 1 addition & 1 deletion scripts/widgets/search.js

Large diffs are not rendered by default.

0 comments on commit 793494f

Please sign in to comment.