Skip to content

Commit

Permalink
Add categoryContext to PLP
Browse files Browse the repository at this point in the history
  • Loading branch information
herzog31 committed Mar 14, 2024
1 parent b47e843 commit 826d2ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions blocks/product-list-page/product-list-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ 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
block.dataset.category = category;
Expand Down
2 changes: 1 addition & 1 deletion scripts/widgets/search.js

Large diffs are not rendered by default.

0 comments on commit 826d2ca

Please sign in to comment.