Stocking Stuffers
Little gifts that spread lots of cheer.
{
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 = ""
}
} else {
console.error("Element not found!")
}
}
}, 5)
'
>
Botanic Buzz Hand Wash
A bright botanical hand wash for clean, comfortable hands.
A bright botanical hand wash for clean, comfortable hands.
Rated 4.8 out of 5 stars
4.8 Stars (34 Reviews)
10 FL OZ
Ursa Major Tumbler
A sleek 8-oz insulated mug for at home or on the go.
A sleek 8-oz insulated mug for at home or on the go.
A sleek 8-oz insulated mug for at home or on the go.
Rated 5.0 out of 5 stars
5.0 Stars (5 Reviews)
8 OZ
Essential Face Wipes
Individually-wrapped bamboo face wipes to refresh skin on the go.
Individually-wrapped bamboo face wipes to refresh skin on the go.
Rated 4.8 out of 5 stars
4.8 Stars (751 Reviews)
Morning Mojo Bar Soap
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 (240 Reviews)
5 OZ
Hoppin' Fresh Deodorant
A crisp, cooling aluminum and baking soda-free stick deodorant.
A crisp, cooling aluminum and baking soda-free stick deodorant.
Rated 4.4 out of 5 stars
4.4 Stars (449 Reviews)