Skip to content
document.addEventListener('rebuy:cart.ready', function() {
if (customer && customer.tags && customer.tags.includes('EGG')) {
const items = SmartCart.items();
items.forEach(item => {
if (item.product.tags.includes('egg')) {
SmartCart.removeItem(item, () => console.log('Gift removed'));
}
});
}
});