Shower Essentials
{
const children = Array.from($el.children)
const children_products = children.filter((child) => child.classList.contains("filter__product"))
let order = 0
for (let i = 0; i < children_products.length; i++) {
if (children_products[i].dataset.show == "false") {
children_products[i].style.display = "none"
} else {
children_products[i].style.display = ""
children_products[i].style.order = order
order++
}
}
const children_promos = children.filter((child) => child.classList.contains("filter__promo"))
for (let i = 0; i < children_promos.length; i++) {
const index = children.indexOf(children_promos[i])
if (index > -1) {
const next_children_products = children.filter((child) => child.classList.contains("filter__product") && child.dataset.show != "false" && parseInt(child.style.order) > parseInt(children_promos[i].style.order))
if (next_children_products.length > 0) {
children_promos[i].style.display = ""
} else {
children_promos[i].style.display = "none"
}
} else {
console.error("Element not found!")
}
}
}, 5)
'
>
Fantastic Face Wash
Go Easy Shampoo
Go Easy Conditioner
Morning Mojo Bar Soap
Citrus Riot Body Wash
Stellar Shave Cream
![Fantastic Face Wash](http://www.ursamajorvt.com/cdn/shop/files/2000x2000_FaceWash_FullSize_2.jpg?v=1720645952)
A super fresh foaming face wash for clean, balanced skin.
A super fresh foaming face wash for clean, balanced skin.
Rated 4.7 out of 5 stars
4.7 Stars (1,487 Reviews)
![Go Easy Shampoo](http://www.ursamajorvt.com/cdn/shop/files/PDP_Shampoo_2000x2000_PCP_1.jpg?v=1720643344)
A luxurious, moisturizing daily shampoo for healthy hair.
A luxurious, moisturizing daily shampoo for healthy hair.
Rated 4.6 out of 5 stars
4.6 Stars (213 Reviews)
![Go Easy Conditioner](http://www.ursamajorvt.com/cdn/shop/files/PDP_Conditioner_2000x2000_PCP_1.jpg?v=1720643346)
A light, nourishing conditioner for hydration and control.
A light, nourishing conditioner for hydration and control.
Rated 4.4 out of 5 stars
4.4 Stars (108 Reviews)
![Morning Mojo Bar Soap](http://www.ursamajorvt.com/cdn/shop/files/PDP_MorningMojo_Barsoap_2000x2000_PCP_1.jpg?v=1720643327)
An energizing and exfoliating bar soap that’ll wake you right up.
An energizing and exfoliating bar soap that’ll wake you right up.
Rated 4.8 out of 5 stars
4.8 Stars (220 Reviews)
![Citrus Riot Body Wash](http://www.ursamajorvt.com/cdn/shop/files/PCP_FlipCap_BodyWash_2000x2000_PCP_1.jpg?v=1720643373)
A foaming gel body wash with a punchy, citrus-infused aroma.
A foaming gel body wash with a punchy, citrus-infused aroma.
Rated 4.1 out of 5 stars
4.1 Stars (104 Reviews)
![Stellar Shave Cream](http://www.ursamajorvt.com/cdn/shop/files/00_PDP_ShaveCream_2000x2000_PCP_1.jpg?v=1720643314)
A deeply nourishing, non-lathering shave cream.
A deeply nourishing, non-lathering shave cream.
Rated 4.6 out of 5 stars
4.6 Stars (149 Reviews)