Tägliche Sendungen von Montag bis Freitag bis 14:00 Uhr.
Rücksendungen werden akzeptiert
Wir akzeptieren Rücksendungen bis zu 7 Tage nach dem Kauf Käufer zahlt Versand und Bearbeitung
Diskrete Lieferung
Keine Gerüche, keine Markierungen, keine Logos
Abonnieren Sie unseren Newsletter
Sie werden über alle Angebote und Aktionen unseres Online-Shops bei Iberohemp auf dem Laufenden gehalten.
(function() {
// Evita mostrar el popup si ya se cerró en la sesión
if (sessionStorage.getItem('promoGwpClosed')) return;
// IDs de productos de la colección de la promo
const promoProductIds = [
8921870074147, 8937435169059, 9341089743139, 9554318950691, 8937434251555, 9327016706339, 9585476796707, 9201001005347, 9501847748899, 9822837211427, 8978768232739, 9501817733411, 9775024341283, 9854708056355, 9496780177699, 8978764824867, 9554497995043, 9778000199971, 9775022571811, 9585475289379, 9853317808419, 9525619753251, 9585479811363, 9778003444003, 9757954507043, 9853390487843, 9853377478947, 9775023358243, 9853396418851
];
// Función para obtener el carrito y contar productos de la colección
function checkPromoGwp() {
fetch('/cart.js')
.then(res => res.json())
.then(cart => {
if (!cart.items || !cart.items.length) return;
let count = 0;
cart.items.forEach(item => {
if (promoProductIds.includes(item.product_id)) {
count += item.quantity;
}
});
if (count >= 5) {
showPromoGwp();
}
});
}
function showPromoGwp() {
const popup = document.getElementById('promo-popup-gwp');
if (!popup) return;
popup.style.display = 'flex';
document.body.style.overflow = 'hidden'; // Evita scroll de fondo
// Cerrar popup
popup.querySelector('.promo-popup-gwp__close').onclick = function() {
popup.style.display = 'none';
document.body.style.overflow = '';
sessionStorage.setItem('promoGwpClosed', '1');
};
// Cerrar al hacer click fuera del contenido
popup.onclick = function(e) {
if (e.target === popup) {
popup.style.display = 'none';
document.body.style.overflow = '';
sessionStorage.setItem('promoGwpClosed', '1');
}
};
}
// Ejecuta al cargar la página y cada vez que se actualice el carrito (AJAX)
document.addEventListener('DOMContentLoaded', checkPromoGwp);
document.addEventListener('cart:updated', checkPromoGwp); // Si tu tema lanza este evento
// Si tu tema no lanza 'cart:updated', puedes observar cambios en el carrito con un MutationObserver o re-ejecutar tras añadir al carrito.
})();
¡Promoción especial!
¡Has añadido 5 o más productos de la colección packs de 10/30g! ¡Puedes reclamar tu regalo en el checkout!