Abrazadera Unicanal de 4" (101 mm).
- Versatilidad de montaje: suspendido o fijado a pared
- Compatible con gama de abrazaderas del catálogo
- Galvanizado para corrosión moderada, uso interior y exterior
- Calibre 13, espesor 2.3 mm
- Diámetro exterior del tubo: 114.3 mm
Especificaciones del Producto
Características:
- Permite gran versatilidad en el montaje: suspendido, fijado directamente a la pared, fijado a otras guías, etc.
- Compatible con la gama de abrazaderas del catálogo
- Acabado en:
- Galvanizado: para soportación de instalaciones eléctricas o instalaciones sencillas de fluidos en interiores o exteriores con corrosión moderada
- Accesorio básico complementario de la gam de soportación.
- Calibre 13, 2.3 mm (A)
- Tornillo / Tuerca: 1/4' x 1 1/4'
- Diámetro exterior tubo: 114.3 mm
- Dimensiones: 162 x 32 mm (B x C)
{
thumb.classList.remove('active');
});
// Agregar clase activa a la miniatura seleccionada
element.classList.add('active');
// Quitar zoom si estaba activo
document.getElementById('mainImageContainer').classList.remove('zoomed');
}
// Alternar zoom al hacer clic en la imagen principal
document.getElementById('mainImageContainer').addEventListener('click', function() {
this.classList.toggle('zoomed');
});
// Actualizar cantidad
function updateQuantity(change) {
const input = document.getElementById('quantity');
let value = parseInt(input.value) || 1;
const max = parseInt(input.max) || 1;
value += change;
if (value < 1) value = 1;
if (value > max) value = max;
input.value = value;
}
// Mostrar alerta personalizada
function showAlert(message, isSuccess = true) {
const alertMsg = $('#alertMessage');
alertMsg.text(message);
alertMsg.css('background-color', isSuccess ? '#28a745' : '#dc3545');
// Cambiar icono según el tipo de mensaje
const icon = isSuccess ? 'fa-check-circle' : 'fa-exclamation-circle';
alertMsg.html(`${message}`);
alertMsg.fadeIn();
setTimeout(() => {
alertMsg.fadeOut();
}, 3000);
}
// Añadir al carrito con loader y mensaje
function addToCart(productId, quantity, checkout = false) {
quantity = parseInt(quantity) || 1;
if (quantity < 1) quantity = 1;
// Mostrar loader
$('#loaderOverlay').fadeIn();
$.post('controller/carro/functions.php', {
ppo: 'add',
id: productId,
cant: quantity
}, function(response) {
// Ocultar loader
$('#loaderOverlay').fadeOut();
try {
const data = typeof response === 'object' ? response : JSON.parse(response);
if (data.success) {
updateCartCount();
showAlert('Producto agregado correctamente');
if (checkout) {
setTimeout(() => {
window.location.href = 'envio.php'
}, 500);
}
} else {
showAlert(data.message || 'Error al agregar el producto', false);
}
} catch (e) {
updateCartCount();
showAlert('Producto agregado correctamente');
if (checkout) {
setTimeout(() => {
window.location.href = 'envios.php'
}, 500);
}
}
}).fail(function(xhr, status, error) {
$('#loaderOverlay').fadeOut();
showAlert('Error de conexión al servidor', false);
console.error('Error al agregar al carrito:', error);
});
}
// Actualizar contador del carrito
function updateCartCount() {
$.post('controller/carro/functions.php', { ppo: 'count' }, function(count) {
$('.cart-count').text(count);
});
}
// Scroll to top
document.querySelector('.scroll-to-top').addEventListener('click', function(e) {
e.preventDefault();
window.scrollTo({
top: 0,
behavior: 'smooth'
});
});
// Mostrar/ocultar botón de scroll
window.addEventListener('scroll', function() {
const scrollBtn = document.querySelector('.scroll-to-top');
if (window.scrollY > 300) {
scrollBtn.style.display = 'flex';
} else {
scrollBtn.style.display = 'none';
}
});
// Inicializar contador del carrito
$(document).ready(function() {
updateCartCount();
});