Walmart supplier, new templates.
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user