$(document).ready(function () { let hoverTimeout; $('.bb-product-attribute-swatch-item').on('mouseenter', function () { let $this = $(this); // Retrasa la ejecución para evitar selecciones accidentales hoverTimeout = setTimeout(function () { $this.find('input[type="radio"]').trigger('click'); }, 500); // 300ms de espera antes de hacer clic }); $('.bb-product-attribute-swatch-item').on('mouseleave', function () { // Cancela el clic si el usuario mueve el mouse antes del tiempo clearTimeout(hoverTimeout); });});
Your experience on this site will be improved by allowing cookies Cookie Policy
These cookies are essential for the website to function properly.
These cookies help us understand how visitors interact with the website.
These cookies are used to deliver personalized advertisements.