Body
{
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)
'
>
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 (231 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 (436 Reviews)
Perfect Zen Body Lotion
A blissful, hydrating body lotion with an uplifting scent.
A blissful, hydrating body lotion with an uplifting scent.
A blissful, hydrating body lotion with an uplifting scent.
Rated 4.5 out of 5 stars
4.5 Stars (157 Reviews)
8 FL OZ
Citrus Riot Body Wash
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 (106 Reviews)
8 FL OZ
Go Easy Shampoo
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 (219 Reviews)
8 FL OZ
Go Easy Conditioner
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 (110 Reviews)
8 FL OZ
Stellar Shave Cream
A deeply nourishing, non-lathering shave cream.
A deeply nourishing, non-lathering shave cream.
A deeply nourishing, non-lathering shave cream.
Rated 4.7 out of 5 stars
4.7 Stars (152 Reviews)
5 FL OZ
Sublime Sage Spray Deodorant
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 (126 Reviews)
1.7 FL OZ
Forest Fix Deodorant
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 (59 Reviews)
2.6 OZ
Haircare Heroes Bundle
MADE TO:
Keep hair soft, shiny, & manageable.
Get soft, shiny, manageable hair.
CONTAINS:
Shampoo + conditioner
Shampoo + conditioner
Rated 4.5 out of 5 stars
4.5 Stars (404 Reviews)
2 items
Hoppin’ Fresh Deodorant Three-Pack
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 (422 Reviews)
3 items
Morning Mojo Three-Pack
MADE TO:
Wake you up with invigorating freshness.
Invigorating freshness to start your day.
CONTAINS:
Three Morning Mojo Bar Soaps
Three Morning Mojo Bar Soaps
Rated 4.8 out of 5 stars
4.8 Stars (248 Reviews)
3 items
Botanic Buzz Hand Care Bundle
MADE TO:
Cleanse and hydrate hands.
Cleanse and hydrate hands.
CONTAINS:
Hand wash + hand cream
Hand wash + hand cream
Rated 4.7 out of 5 stars
4.7 Stars (26 Reviews)
2 items
Botanic Buzz Hand Cream
A silky, nourishing hand cream for soft, protected hands.
A silky, nourishing hand cream for soft, protected hands.
2 FL OZ
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 (25 Reviews)
10 FL OZ