Walmart supplier, new templates.

This commit is contained in:
Norm Rasmussen
2025-09-08 16:47:28 -04:00
parent cb7ba76a7d
commit 183b3e82f0
5 changed files with 34 additions and 16 deletions

View File

@ -98,13 +98,13 @@ console.log(allCategoryFilters.length);
for(let i = 1; i < allProductFiltersEntry.length; i++){
allProductFiltersEntry[i].style.display = 'block';
}
if(event.target.value != 'Default'){
for(let i = 1; i < allProductFiltersEntry.length; i++){
let productFound = false;
for(let j = 0; j < allFilteredResults.length; j++){
if(allFilteredResults[j].dataset.product){
if(allFilteredResults[j].dataset.product.indexOf(allProductFiltersEntry[i].getAttribute('value')) > -1){
if(!allFilteredResults[j].classList.contains('filtered')){
@ -113,7 +113,7 @@ console.log(allCategoryFilters.length);
}
}
}
if(!productFound){
allProductFiltersEntry[i].style.display = 'none';
}
@ -146,7 +146,7 @@ console.log(allCategoryFilters.length);
// if(catFound){
// allCategoryFiltersEntry[i].style.display = 'block';
// }
// }
// }
// Last step is to return cat dropdown to always be all cats on product selection