Deodorant
{
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)
'
>
Hoppin' Fresh Deodorant
Forest Fix Deodorant
Sublime Sage Spray Deodorant
Hoppin’ Fresh Deodorant Three-Pack
![Ursa Major Hoppin' Fresh Deodorant](http://www.ursamajorvt.com/cdn/shop/products/1544FKO43BURSAMAJORUM_ECOM_191212_TravelSize_Deodorant_HoppinFresh_wCap.jpg?v=1586545995)
A crisp, cooling aluminum and baking soda-free stick deodorant.
A crisp, cooling aluminum and baking soda-free stick deodorant.
Rated 4.3 out of 5 stars
4.3 Stars (415 Reviews)
![Ursa Major Forest Fix Deodorant](http://www.ursamajorvt.com/cdn/shop/products/1544_FKO_08C_URSA_MAJOR_UM_ECOM_191212_FullSize_Deodorant_ForestFix_wCap.jpg?v=1586545972)
A forest-fresh aluminum and baking soda-free stick deodorant.
A forest-fresh aluminum and baking soda-free stick deodorant.
Rated 4.5 out of 5 stars
4.5 Stars (55 Reviews)
![Sublime Sage Spray Deodorant](http://www.ursamajorvt.com/cdn/shop/files/UM_FullSize_Deodorant_SublimeSageSpray_WhiteBG_2000x2000_PCP_1.jpg?v=1720643309)
An aluminum-free spray deodorant with a bright, herbaceous scent.
An aluminum-free spray deodorant with a bright, herbaceous scent.
Rated 4.4 out of 5 stars
4.4 Stars (121 Reviews)
![Hoppin’ Fresh Deodorant Three-Pack](http://www.ursamajorvt.com/cdn/shop/products/Untitleddesign_12.png?v=1668117027)
MADE TO:
Keep you fresh all day long!
A stash of freshness to keep or share.
CONTAINS:
Three Hoppin’ Fresh Deodorants
Three Hoppin’ Fresh Deodorants
Rated 4.4 out of 5 stars
4.4 Stars (401 Reviews)
3 items